mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Converted Fallen Angel, Nantuko Husk, Phyrexian Ghoul, Vampire Aristocrat, Bloodthrone Vampire to AF_Pump
This commit is contained in:
@@ -12814,156 +12814,7 @@ public class CardFactory_Creatures {
|
||||
a3.setStackDescription("Saprolings get +X/+X until end of turn.");
|
||||
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Fallen Angel")) {
|
||||
final SpellAbility a2 = new Ability(card, "0") {
|
||||
final Command eot1 = new Command() {
|
||||
private static final long serialVersionUID = 8955432114774252848L;
|
||||
|
||||
public void execute() {
|
||||
card.addTempAttackBoost(-2);
|
||||
card.addTempDefenseBoost(-1);
|
||||
}
|
||||
};
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
|
||||
Card c = getTargetCard();
|
||||
|
||||
if(AllZone.GameAction.isCardInPlay(c)) {
|
||||
//AllZone.getZone(c).remove(c);
|
||||
AllZone.GameAction.sacrifice(c);
|
||||
|
||||
if(AllZone.GameAction.isCardInPlay(card)) {
|
||||
card.addTempAttackBoost(2);
|
||||
card.addTempDefenseBoost(1);
|
||||
}
|
||||
}
|
||||
AllZone.EndOfTurn.addUntil(eot1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPlayAI() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPlay() {
|
||||
SpellAbility sa;
|
||||
//this is a hack, check the stack to see if this card has an ability on the stack
|
||||
//if so, we can't use the ability: this is to prevent using a limited ability too many times
|
||||
for(int i = 0; i < AllZone.Stack.size(); i++) {
|
||||
sa = AllZone.Stack.peek(i);
|
||||
if(sa.getSourceCard().equals(card)) return false;
|
||||
}
|
||||
if(super.canPlay()) return true;
|
||||
return false;
|
||||
}
|
||||
};//SpellAbility
|
||||
|
||||
Input runtime = new Input() {
|
||||
private static final long serialVersionUID = -5917074526767992913L;
|
||||
|
||||
@Override
|
||||
public void showMessage() {
|
||||
CardList creats = new CardList(
|
||||
AllZone.getZone(Constant.Zone.Play, card.getController()).getCards());
|
||||
creats = creats.getType("Creature");
|
||||
|
||||
stopSetNext(CardFactoryUtil.input_targetSpecific(a2, creats,
|
||||
"Select a creature to sacrifice.", false, false));
|
||||
}
|
||||
};
|
||||
|
||||
card.addSpellAbility(a2);
|
||||
a2.setDescription("Sacrifice a creature: Fallen Angel gets +2/+1 until end of turn.");
|
||||
a2.setStackDescription("Fallen Angel gets +2/+1 until end of turn.");
|
||||
|
||||
a2.setBeforePayMana(runtime);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if (cardName.equals("Nantuko Husk") || cardName.equals("Phyrexian Ghoul") ||
|
||||
cardName.equals("Vampire Aristocrat") || cardName.equals("Bloodthrone Vampire")) {
|
||||
|
||||
final SpellAbility a2 = new Ability(card, "0") {
|
||||
final Command eot1 = new Command() {
|
||||
private static final long serialVersionUID = 4450272080079173250L;
|
||||
|
||||
public void execute() {
|
||||
card.addTempAttackBoost(-2);
|
||||
card.addTempDefenseBoost(-2);
|
||||
}
|
||||
};
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
|
||||
Card c = getTargetCard();
|
||||
|
||||
if(AllZone.GameAction.isCardInPlay(c)) {
|
||||
//AllZone.getZone(c).remove(c);
|
||||
AllZone.GameAction.sacrifice(c);
|
||||
|
||||
if(AllZone.GameAction.isCardInPlay(card)) {
|
||||
card.addTempAttackBoost(2);
|
||||
card.addTempDefenseBoost(2);
|
||||
}
|
||||
}
|
||||
AllZone.EndOfTurn.addUntil(eot1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPlayAI() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPlay() {
|
||||
SpellAbility sa;
|
||||
//this is a hack, check the stack to see if this card has an ability on the stack
|
||||
//if so, we can't use the ability: this is to prevent using a limited ability too many times
|
||||
for(int i = 0; i < AllZone.Stack.size(); i++) {
|
||||
sa = AllZone.Stack.peek(i);
|
||||
if(sa.getSourceCard().equals(card)) return false;
|
||||
}
|
||||
if(super.canPlay()) return true;
|
||||
return false;
|
||||
}
|
||||
};//SpellAbility
|
||||
|
||||
Input runtime = new Input() {
|
||||
private static final long serialVersionUID = 8445133749305465286L;
|
||||
|
||||
@Override
|
||||
public void showMessage() {
|
||||
CardList creats = new CardList(
|
||||
AllZone.getZone(Constant.Zone.Play, card.getController()).getCards());
|
||||
creats = creats.getType("Creature");
|
||||
|
||||
stopSetNext(CardFactoryUtil.input_targetSpecific(a2, creats,
|
||||
"Select a creature to sacrifice.", false, false));
|
||||
}
|
||||
};
|
||||
|
||||
card.addSpellAbility(a2);
|
||||
|
||||
StringBuilder sbDesc = new StringBuilder();
|
||||
sbDesc.append("Sacrifice a creature: ").append(card.getName()).append(" gets +2/+2 until end of turn.");
|
||||
a2.setDescription(sbDesc.toString());
|
||||
|
||||
StringBuilder sbStack = new StringBuilder();
|
||||
sbStack.append(card.getName()).append(" gets +2/+2 until end of turn.");
|
||||
a2.setStackDescription(sbStack.toString());
|
||||
|
||||
a2.setBeforePayMana(runtime);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Ranger of Eos")) {
|
||||
final SpellAbility ability = new Ability(card, "0") {
|
||||
|
||||
Reference in New Issue
Block a user