mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
convert Greater Forgeling to AB$Pump
This commit is contained in:
@@ -3,6 +3,7 @@ ManaCost:3 R R
|
||||
Types:Creature Elemental
|
||||
Text:no text
|
||||
PT:3/4
|
||||
AB$Pump|Cost$1 R|NumAtt$+3|NumDef$-3|SpellDescription$CARDNAME gets +3/-3 until end of turn.
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://resources.wizards.com/magic/cards/rav/en-us/card87934.jpg
|
||||
SetInfo:RAV|Uncommon|http://magiccards.info/scans/en/rav/129.jpg
|
||||
|
||||
@@ -140,47 +140,6 @@ public class CardFactory_Creatures {
|
||||
//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Greater Forgeling")) {
|
||||
final Command untilEOT = new Command() {
|
||||
private static final long serialVersionUID = -4569751606008597903L;
|
||||
|
||||
public void execute() {
|
||||
if(AllZone.GameAction.isCardInPlay(card)) {
|
||||
card.addTempAttackBoost(-3);
|
||||
card.addTempDefenseBoost(3);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
SpellAbility ability = new Ability(card, "1 R") {
|
||||
@Override
|
||||
public boolean canPlayAI() {
|
||||
return MyRandom.random.nextBoolean() && CardFactoryUtil.AI_doesCreatureAttack(card)
|
||||
&& 3 < card.getNetDefense();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
if(AllZone.GameAction.isCardInPlay(card)) {
|
||||
card.addTempAttackBoost(3);
|
||||
card.addTempDefenseBoost(-3);
|
||||
AllZone.EndOfTurn.addUntil(untilEOT);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
ability.setDescription("1 R: Greater Forgeling gets +3/-3 until end of turn.");
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(card).append(" gets +3/-3 until end of turn.");
|
||||
ability.setStackDescription(sb.toString());
|
||||
|
||||
card.addSpellAbility(ability);
|
||||
}
|
||||
//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Caller of the Claw")) {
|
||||
final SpellAbility ability = new Ability(card, "0") {
|
||||
|
||||
Reference in New Issue
Block a user