- Bug fix for Squee. Make sure Squee is still in your grave when ability resolves to return it to hand.

This commit is contained in:
jendave
2011-08-06 05:05:52 +00:00
parent af48a45ff5
commit ca63225c86

View File

@@ -6096,23 +6096,23 @@ public class GameActionUtil {
@Override @Override
public void resolve() { public void resolve() {
PlayerZone graveyard = AllZone.getZone(Constant.Zone.Graveyard, player); PlayerZone graveyard = AllZone.getZone(Constant.Zone.Graveyard, player);
PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, player);
if(player.equals("Human")) { Card c = squees.get(index[0]);
String[] choices = {"Yes", "No"}; if(AllZone.GameAction.isCardInZone(c, graveyard)) {
Object o = AllZone.Display.getChoiceOptional( if(player.equals("Human")) {
"Return Squee from your graveyard to your hand?", choices); String[] choices = {"Yes", "No"};
if(o.equals("Yes")) { Object o = AllZone.Display.getChoiceOptional(
Card c = squees.get(index[0]); "Return Squee from your graveyard to your hand?", choices);
graveyard.remove(c); if(!o.equals("Yes")) {
hand.add(c); index[0] = index[0] + 1;
return;
}
} }
} else if(player.equals("Computer")) { PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, c.getController());
Card c = squees.get(index[0]); AllZone.GameAction.moveTo(hand, c);
graveyard.remove(c);
hand.add(c); index[0] = index[0] + 1;
} }
index[0] = index[0] + 1;
} }
};// Ability };// Ability