mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Refactor how overlays are shown and hidden
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user