mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- 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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user