mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- 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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user