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