- Moving EOT command inside the Resolve function to "lock in" the timestamp of each activation of color changers.

- Manlands and other color changers now change color back to colorless at the end of the turn after multiple activations.
This commit is contained in:
jendave
2011-08-06 08:20:55 +00:00
parent 3ad9ebf1c2
commit a5125dd00b
4 changed files with 259 additions and 232 deletions

View File

@@ -10354,17 +10354,7 @@ public class CardFactory implements NewConstants {
* 2: Jade Statue becomes a 3/6 Golem artifact creature until
* end of combat. Activate this ability only during combat.
*/
final Command untilEOC = new Command() {
private static final long serialVersionUID = -8432597117196682284L;
public void execute() {
Card c = card;
String[] types = { "Creature", "Golem" };
String[] keywords = { };
CardFactoryUtil.revertManland(c, types, keywords, "4");
}
};
final long[] timeStamp = new long[1];
final SpellAbility a1 = new Ability(card, "2") {
@Override
@@ -10382,8 +10372,19 @@ public class CardFactory implements NewConstants {
Card c = card;
String[] types = { "Creature", "Golem" };
String[] keywords = { };
CardFactoryUtil.activateManland(c, 3, 6, types, keywords, "4");
timeStamp[0] = CardFactoryUtil.activateManland(c, 3, 6, types, keywords, "4");
final Command untilEOC = new Command() {
private static final long serialVersionUID = -8432597117196682284L;
long stamp = timeStamp[0];
public void execute() {
Card c = card;
String[] types = { "Creature", "Golem" };
String[] keywords = { };
CardFactoryUtil.revertManland(c, types, keywords, "4", stamp);
}
};
AllZone.EndOfCombat.addUntil(untilEOC);
}
};//SpellAbility