mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Battle support
This commit is contained in:
@@ -341,6 +341,10 @@ public class GameCopier {
|
|||||||
zoneOwner = playerMap.get(c.getController());
|
zoneOwner = playerMap.get(c.getController());
|
||||||
newCard.setController(zoneOwner, 0);
|
newCard.setController(zoneOwner, 0);
|
||||||
|
|
||||||
|
if (c.isBattle()) {
|
||||||
|
newCard.setProtectingPlayer(playerMap.get(c.getProtectingPlayer()));
|
||||||
|
}
|
||||||
|
|
||||||
newCard.setCameUnderControlSinceLastUpkeep(c.cameUnderControlSinceLastUpkeep());
|
newCard.setCameUnderControlSinceLastUpkeep(c.cameUnderControlSinceLastUpkeep());
|
||||||
|
|
||||||
newCard.setPTTable(c.getSetPTTable());
|
newCard.setPTTable(c.getSetPTTable());
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ public class GameLogFormatter extends IGameEventVisitor.Base<GameLogEntry> {
|
|||||||
Card c = ((Card)defender);
|
Card c = ((Card)defender);
|
||||||
controllerName = c.isBattle() ? c.getProtectingPlayer().getName() : c.getController().getName();
|
controllerName = c.isBattle() ? c.getProtectingPlayer().getName() : c.getController().getName();
|
||||||
} else {
|
} else {
|
||||||
controllerName= defender.getName();
|
controllerName = defender.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean firstAttacker = true;
|
boolean firstAttacker = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user