Skip to content

Commit

Permalink
hotfix scenario setup level
Browse files Browse the repository at this point in the history
  • Loading branch information
Lurkars committed Apr 15, 2024
1 parent 83be5a0 commit b104989
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gloomhavensecretariat",
"version": "0.95.12",
"version": "0.95.13",
"license": "AGPL3",
"description": "Gloomhaven Secretariat is a Gloomhaven/Frosthaven Companion app.",
"homepage": "https://gloomhaven-secretariat.de",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class ScenarioSetupComponent implements OnInit {
this.monsters = [];
this.hasSpoiler = false;
gameManager.scenarioManager.getMonsters(this.scenario, this.scenario.custom).forEach((monsterData) => {
let monster: Monster = new Monster(monsterData);
let monster: Monster = new Monster(monsterData, gameManager.game.level);
if (this.spoiler || !monster.standeeShare || gameManager.scenarioManager.openRooms().find((room) => room.initial && room.monster.find((standee) => standee.name.split(':')[0] == monster.name)) || gameManager.game.figures.some((figure) => figure instanceof Monster && figure.name == monster.name && figure.edition == monster.edition)) {
if (!this.monsters.find((m) => m.edition == monster.edition && m.name == monster.name)) {
monster.tags = [];
Expand Down

0 comments on commit b104989

Please sign in to comment.