GUI, game: fixed that attacking creature draws a wrong colored arrow after blocked creature removed (must be gray, close #11894)

This commit is contained in:
Oleg Agafonov 2025-04-26 00:07:28 +04:00
parent aeded36c09
commit db9bdc05c2
3 changed files with 8 additions and 1 deletions

View file

@ -19,6 +19,7 @@ public class CombatGroupView implements Serializable {
private final CardsView attackers = new CardsView();
private final CardsView blockers = new CardsView();
private final boolean isBlocked;
private String defenderName = "";
private final UUID defenderId;
@ -46,6 +47,7 @@ public class CombatGroupView implements Serializable {
blockers.put(id, new PermanentView(blocker, game.getCard(blocker.getId()), null, game));
}
}
isBlocked = combatGroup.getBlocked();
}
public String getDefenderName() {
@ -63,4 +65,8 @@ public class CombatGroupView implements Serializable {
public UUID getDefenderId() {
return defenderId;
}
public boolean isBlocked() {
return isBlocked;
}
}