mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
convert Jade statue to AF_Animate
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
Name:Jade Statue
|
Name:Jade Statue
|
||||||
ManaCost:4
|
ManaCost:4
|
||||||
Types:Artifact
|
Types:Artifact
|
||||||
Text:2: Jade Statue becomes a 3/6 Golem artifact creature until end of combat. Activate this ability only during combat.
|
Text:no text
|
||||||
|
A:AB$Animate | Cost$ 2 | Defined$ Self | Power$ 3 | Toughness$ 6 | Types$ Creature,Artifact,Golem | UntilEndOfCombat$ True | ActivatingPhases$ BeginCombat->EndCombat | SpellDescription$ becomes a 3/6 Golem artifact creature until end of combat. Activate this ability only during combat.
|
||||||
SVar:RemAIDeck:True
|
SVar:RemAIDeck:True
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/jade_statue.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/jade_statue.jpg
|
||||||
|
|||||||
@@ -136,7 +136,10 @@ public class AbilityFactory_Animate {
|
|||||||
//sb.append(types)
|
//sb.append(types)
|
||||||
//sb.append(keywords)
|
//sb.append(keywords)
|
||||||
//sb.append(triggers)
|
//sb.append(triggers)
|
||||||
if(!permanent) sb.append(" until end of turn.");
|
if(!permanent) {
|
||||||
|
if(params.containsKey("UntilEndOfCombat")) sb.append(" until end of combat.");
|
||||||
|
else sb.append(" until end of turn.");
|
||||||
|
}
|
||||||
else sb.append(".");
|
else sb.append(".");
|
||||||
|
|
||||||
Ability_Sub abSub = sa.getSubAbility();
|
Ability_Sub abSub = sa.getSubAbility();
|
||||||
@@ -281,7 +284,10 @@ public class AbilityFactory_Animate {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if(!permanent) AllZone.EndOfTurn.addUntil(unactivate);
|
if(!permanent) {
|
||||||
|
if(params.containsKey("UntilEndOfCombat")) AllZone.EndOfCombat.addUntil(unactivate);
|
||||||
|
else AllZone.EndOfTurn.addUntil(unactivate);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (af.hasSubAbility()){
|
if (af.hasSubAbility()){
|
||||||
|
|||||||
@@ -6383,65 +6383,6 @@ public class CardFactory implements NewConstants {
|
|||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
|
||||||
else if(cardName.equals("Jade Statue")) {
|
|
||||||
/*
|
|
||||||
* 2: Jade Statue becomes a 3/6 Golem artifact creature until
|
|
||||||
* end of combat. Activate this ability only during combat.
|
|
||||||
*/
|
|
||||||
final long[] timeStamp = new long[1];
|
|
||||||
|
|
||||||
final SpellAbility a1 = new Ability(card, "2") {
|
|
||||||
@Override
|
|
||||||
public boolean canPlayAI() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean canPlay() {
|
|
||||||
return Phase.canPlayDuringCombat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
Card c = card;
|
|
||||||
String[] types = { "Creature", "Golem" };
|
|
||||||
String[] keywords = { };
|
|
||||||
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
|
|
||||||
|
|
||||||
card.addSpellAbility(a1);
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append(card).append(" becomes a 3/6 Golem creature until End of Combat");
|
|
||||||
a1.setStackDescription(sb.toString());
|
|
||||||
|
|
||||||
Command paid1 = new Command() {
|
|
||||||
private static final long serialVersionUID = 1531378274457977155L;
|
|
||||||
|
|
||||||
public void execute() {
|
|
||||||
AllZone.Stack.add(a1);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
a1.setBeforePayMana(new Input_PayManaCost_Ability(a1.getManaCost(), paid1));
|
|
||||||
}//*************** END ************ END **************************
|
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if (cardName.equals("An-Zerrin Ruins")) {
|
else if (cardName.equals("An-Zerrin Ruins")) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user