Eminence fix

This commit is contained in:
tool4EvEr
2023-04-01 17:57:45 +02:00
parent 0954ec8149
commit eecf2890a2
4 changed files with 14 additions and 14 deletions

View File

@@ -38,18 +38,17 @@ public class InvestigateEffect extends TokenEffectBase {
// Investigate in Sequence
for (int i = 0; i < amount; i++) {
CardZoneTable triggerList = new CardZoneTable();
MutableBoolean combatChanged = new MutableBoolean(false);
for (final Player p : getTargetPlayers(sa)) {
if (sa.hasParam("Optional") && !p.getController().confirmAction(sa, null,
Localizer.getInstance().getMessage("lblWouldYouLikeInvestigate"), null)) {
continue;
}
CardZoneTable triggerList = new CardZoneTable();
MutableBoolean combatChanged = new MutableBoolean(false);
makeTokenTable(makeTokenTableInternal(p, "c_a_clue_draw", 1, sa), false, triggerList, combatChanged, sa);
triggerList.triggerChangesZoneAll(game, sa);
p.addInvestigatedThisTurn();
if (sa.hasParam("RememberInvestigatingPlayers")) {
@@ -57,11 +56,12 @@ public class InvestigateEffect extends TokenEffectBase {
}
game.fireEvent(new GameEventTokenCreated());
}
if (combatChanged.isTrue()) {
game.updateCombatForView();
game.fireEvent(new GameEventCombatChanged());
}
triggerList.triggerChangesZoneAll(game, sa);
if (combatChanged.isTrue()) {
game.updateCombatForView();
game.fireEvent(new GameEventCombatChanged());
}
}
}