- Added a possibility to preserve human/AI life amount in the Setup Battlefield dev command.

This commit is contained in:
jendave
2011-08-07 00:42:23 +00:00
parent b067e21429
commit d4becd25d1
2 changed files with 8 additions and 4 deletions

View File

@@ -1213,8 +1213,10 @@ public class GuiDisplay3 extends JFrame implements CardContainer, Display, NewCo
if (humanDevHandSetup.size() > 0) if (humanDevHandSetup.size() > 0)
AllZone.Human_Hand.setCards(humanDevHandSetup.toArray()); AllZone.Human_Hand.setCards(humanDevHandSetup.toArray());
AllZone.ComputerPlayer.setLife(setComputerLife, null); if (setComputerLife > 0)
AllZone.HumanPlayer.setLife(setHumanLife, null); AllZone.ComputerPlayer.setLife(setComputerLife, null);
if (setHumanLife > 0)
AllZone.HumanPlayer.setLife(setHumanLife, null);
AllZone.GameAction.checkStateEffects(); AllZone.GameAction.checkStateEffects();
} }

View File

@@ -1200,8 +1200,10 @@ public class GuiDisplay4 extends JFrame implements CardContainer, Display, NewCo
if (humanDevHandSetup.size() > 0) if (humanDevHandSetup.size() > 0)
AllZone.Human_Hand.setCards(humanDevHandSetup.toArray()); AllZone.Human_Hand.setCards(humanDevHandSetup.toArray());
AllZone.ComputerPlayer.setLife(setComputerLife, null); if (setComputerLife > 0)
AllZone.HumanPlayer.setLife(setHumanLife, null); AllZone.ComputerPlayer.setLife(setComputerLife, null);
if (setHumanLife > 0)
AllZone.HumanPlayer.setLife(setHumanLife, null);
AllZone.GameAction.checkStateEffects(); AllZone.GameAction.checkStateEffects();
} }