mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Eminence fix
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user