Refactor how overlays are shown and hidden

This commit is contained in:
drdev
2014-03-19 23:56:02 +00:00
parent 93c02e9425
commit 2c3d96228c
15 changed files with 118 additions and 75 deletions

View File

@@ -389,17 +389,16 @@ public class Combat {
}
}
Collection<Card> toRemove = Lists.newArrayList();
for(Entry<AttackingBand, Card> be : blockedBands.entries()) {
Card blocker = be.getValue();
if ( !blocker.isInPlay() || !blocker.isCreature() ) {
missingCombatants.add(blocker);
}
}
for (Card c : missingCombatants)
for (Card c : missingCombatants) {
removeFromCombat(c);
}
}
// Call this method right after turn-based action of declare blockers has been performed
public final void fireTriggersForUnblockedAttackers() {