Fixed the cut to card returning back to the library if it was in the opening hand.

This commit is contained in:
jendave
2011-08-06 04:56:35 +00:00
parent 4501bbcced
commit 0bd937f40a
2 changed files with 5 additions and 2 deletions

View File

@@ -1368,6 +1368,8 @@ public class GameAction {
return;
}
Cut_Count = Cut_Count + 1;
AllZone.GameAction.moveTo(AllZone.getZone(Constant.Zone.Library, Constant.Player.Human),AllZone.GameAction.HumanCut);
AllZone.GameAction.moveTo(AllZone.getZone(Constant.Zone.Library, Constant.Player.Computer),AllZone.GameAction.ComputerCut);
StringBuilder sb = new StringBuilder();
sb.append("Human cut his / her deck to : " + HumanCut.getName() + " (" + HumanCut.getManaCost() + ")" + "\r\n");

View File

@@ -83,7 +83,8 @@ public class Input_Mulligan extends Input {
}
}
if(AllZone.GameAction.Start_Cut == true) {
if(AllZone.GameAction.Start_Cut == true && !(HHandList.contains(AllZone.GameAction.HumanCut)
|| CHandList.contains(AllZone.GameAction.ComputerCut))) {
AllZone.GameAction.moveTo(AllZone.getZone(Constant.Zone.Library, Constant.Player.Human),AllZone.GameAction.HumanCut);
AllZone.GameAction.moveTo(AllZone.getZone(Constant.Zone.Library, Constant.Player.Computer),AllZone.GameAction.ComputerCut);
}