working on quest logic
This commit is contained in:
@@ -53,7 +53,8 @@ export class BuyQuestWithGoldOperation extends AbstractGoldItemOperation { // es
|
||||
|
||||
checkPrerequisites (user, questKey) {
|
||||
const item = content.quests[questKey];
|
||||
if (questKey.startsWith('lostMasterclasser') && !this.userAbleToStartMasterClasser(user)) {
|
||||
if (questKey.startsWith('lostMasterclasser')
|
||||
&& !this.userAbleToStartMasterClasser(user)) {
|
||||
throw new NotAuthorized(this.i18n('questUnlockLostMasterclasser'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user