Battle support

This commit is contained in:
tool4EvEr
2023-05-02 13:56:45 +02:00
parent de7286a580
commit 906204554a
2 changed files with 5 additions and 1 deletions

View File

@@ -341,6 +341,10 @@ public class GameCopier {
zoneOwner = playerMap.get(c.getController());
newCard.setController(zoneOwner, 0);
if (c.isBattle()) {
newCard.setProtectingPlayer(playerMap.get(c.getProtectingPlayer()));
}
newCard.setCameUnderControlSinceLastUpkeep(c.cameUnderControlSinceLastUpkeep());
newCard.setPTTable(c.getSetPTTable());

View File

@@ -271,7 +271,7 @@ public class GameLogFormatter extends IGameEventVisitor.Base<GameLogEntry> {
Card c = ((Card)defender);
controllerName = c.isBattle() ? c.getProtectingPlayer().getName() : c.getController().getName();
} else {
controllerName= defender.getName();
controllerName = defender.getName();
}
boolean firstAttacker = true;