- Fix the blocker targeting arrows not appearing in time because the declared blockers were not passed to the combat view until the blockers were finalized (please review).

This commit is contained in:
Agetian
2014-09-18 06:59:31 +00:00
parent 547b570406
commit 20b9b6fa17

View File

@@ -179,7 +179,7 @@ public abstract class LocalGameView implements IGameView {
for (final AttackingBand b : combat.getAttackingBands()) { for (final AttackingBand b : combat.getAttackingBands()) {
if (b == null) continue; if (b == null) continue;
final GameEntity defender = combat.getDefenderByAttacker(b); final GameEntity defender = combat.getDefenderByAttacker(b);
final List<Card> blockers = (b.isBlocked() != null && b.isBlocked()) ? combat.getBlockers(b) : null; final List<Card> blockers = combat.getBlockers(b);
combatView.addAttackingBand(getCardViews(b.getAttackers()), getGameEntityView(defender), blockers == null ? null : getCardViews(blockers)); combatView.addAttackingBand(getCardViews(b.getAttackers()), getGameEntityView(defender), blockers == null ? null : getCardViews(blockers));
} }
return combatView; return combatView;