Skip to content

Commit

Permalink
address #96
Browse files Browse the repository at this point in the history
  • Loading branch information
Lurkars committed Oct 16, 2024
1 parent dbc10cc commit 3badc50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/game/businesslogic/ChallengesManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export class ChallengesManager {
}

update() {
this.available = gameManager.fhRules() && this.game.party.buildings.find((buildingModel) => buildingModel.name == 'town-hall' && buildingModel.level && buildingModel.state != 'wrecked') != undefined;
this.enabled = settingsManager.settings.fhChallenges && this.available;
this.available = gameManager.fhRules() && this.game.party.buildings.find((buildingModel) => buildingModel.name == 'town-hall' && buildingModel.level) != undefined;
this.enabled = settingsManager.settings.fhChallenges && gameManager.fhRules() && this.game.party.buildings.find((buildingModel) => buildingModel.name == 'town-hall' && buildingModel.level && buildingModel.state != 'wrecked') != undefined;

if (this.available && this.game.edition) {
// build challenge deck if not present
Expand Down

0 comments on commit 3badc50

Please sign in to comment.