Fix Emblem Cards not adding Watcher to GameState

This commit is contained in:
Susucre 2024-01-26 13:38:27 +01:00
parent d923b8e32f
commit 3343aebf79
3 changed files with 46 additions and 2 deletions

View file

@ -1335,7 +1335,11 @@ public abstract class GameImpl implements Game {
for (UUID playerId : state.getPlayerList(startingPlayerId)) {
for (DeckCardInfo info : gameOptions.perPlayerEmblemCards) {
Card card = EmblemOfCard.cardFromDeckInfo(info);
addEmblem(new EmblemOfCard(card), card, playerId);
Emblem emblem = new EmblemOfCard(card);
addEmblem(emblem, card, playerId);
for (Ability ability : emblem.getAbilities()) {
state.addAbility(ability, null, emblem);
}
}
}
}
@ -1343,7 +1347,11 @@ public abstract class GameImpl implements Game {
if (!gameOptions.globalEmblemCards.isEmpty()) {
for (DeckCardInfo info : gameOptions.globalEmblemCards) {
Card card = EmblemOfCard.cardFromDeckInfo(info);
addEmblem(new EmblemOfCard(card), card, startingPlayerId);
Emblem emblem = new EmblemOfCard(card);
addEmblem(emblem, card, startingPlayerId);
for (Ability ability : emblem.getAbilities()) {
state.addAbility(ability, null, emblem);
}
}
}
}