mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
fix for issue 22 + fix for planeswalker damage redirection
This commit is contained in:
parent
c90193a4eb
commit
9c3ff863e8
49 changed files with 636 additions and 182 deletions
|
|
@ -31,7 +31,6 @@ package mage.view;
|
|||
import java.io.Serializable;
|
||||
import java.util.UUID;
|
||||
import mage.game.Game;
|
||||
import mage.game.GameState;
|
||||
import mage.game.combat.CombatGroup;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
|
|
@ -44,7 +43,7 @@ public class CombatGroupView implements Serializable {
|
|||
|
||||
private CardsView attackers = new CardsView();
|
||||
private CardsView blockers = new CardsView();
|
||||
private String defenderName;
|
||||
private String defenderName = "";
|
||||
|
||||
public CombatGroupView(CombatGroup combatGroup, Game game) {
|
||||
Player player = game.getPlayer(combatGroup.getDefenderId());
|
||||
|
|
@ -53,7 +52,8 @@ public class CombatGroupView implements Serializable {
|
|||
}
|
||||
else {
|
||||
Permanent perm = game.getPermanent(combatGroup.getDefenderId());
|
||||
this.defenderName = perm.getName();
|
||||
if (perm != null)
|
||||
this.defenderName = perm.getName();
|
||||
}
|
||||
for (UUID id: combatGroup.getAttackers()) {
|
||||
Permanent attacker = game.getPermanent(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue