add UntilYourNextUpkeep param to AF_Animate

This commit is contained in:
slapshot5
2011-09-30 07:09:19 +00:00
parent f05e323c81
commit eefbbcdc25

View File

@@ -251,6 +251,9 @@ public final class AbilityFactory_Animate {
else if (params.containsKey("UntilHostLeavesPlay")) { else if (params.containsKey("UntilHostLeavesPlay")) {
sb.append(" until ").append(host).append(" leaves the battlefield."); sb.append(" until ").append(host).append(" leaves the battlefield.");
} }
else if (params.containsKey("UntilYourNextUpkeep")) {
sb.append(" until your next upkeep.");
}
else { else {
sb.append(" until end of turn."); sb.append(" until end of turn.");
} }
@@ -601,6 +604,9 @@ public final class AbilityFactory_Animate {
else if (params.containsKey("UntilHostLeavesPlay")) { else if (params.containsKey("UntilHostLeavesPlay")) {
host.addLeavesPlayCommand(unanimate); host.addLeavesPlayCommand(unanimate);
} }
else if (params.containsKey("UntilYourNextUpkeep")) {
AllZone.getUpkeep().addUntil(host.getController(), unanimate);
}
else { else {
AllZone.getEndOfTurn().addUntil(unanimate); AllZone.getEndOfTurn().addUntil(unanimate);
} }