- Added Zombie Scavengers.

- Converted Necratog to script.
This commit is contained in:
Sloth
2011-10-01 10:00:59 +00:00
parent 2bf643e035
commit 5d09ba5af7
4 changed files with 13 additions and 77 deletions

View File

@@ -2117,82 +2117,6 @@ public class CardFactory_Creatures {
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if (cardName.equals("Necratog")) {
final Command untilEOT = new Command() {
private static final long serialVersionUID = 6743592637334556854L;
public void execute() {
if (AllZoneUtil.isCardInPlay(card)) {
card.addTempAttackBoost(-2);
card.addTempDefenseBoost(-2);
}
}
};
final SpellAbility ability = new Ability(card, "0") {
@Override
public boolean canPlayAI() {
return false;
}
@Override
public boolean canPlay() {
CardList grave = card.getController().getCardsIn(Zone.Graveyard);
grave = grave.filter(CardListFilter.creatures);
return super.canPlay() && grave.size() > 0;
}
@Override
public void resolve() {
if (AllZoneUtil.isCardInPlay(card)) {
card.addTempAttackBoost(2);
card.addTempDefenseBoost(2);
AllZone.getEndOfTurn().addUntil(untilEOT);
}
}
};
Input runtime = new Input() {
private static final long serialVersionUID = 63327418012595048L;
Card topCreature = null;
public void showMessage() {
PlayerZone grave = card.getController().getZone(Constant.Zone.Graveyard);
for (int i = grave.size() - 1; i >= 0; i--) {
Card c = grave.get(i);
if (c.isCreature()) {
topCreature = c;
break;
}
}
AllZone.getDisplay().showMessage(card.getName() + " - Select OK to exile " + topCreature + ".");
ButtonUtil.enableAll();
}
public void selectButtonOK() {
AllZone.getGameAction().exile(topCreature);
AllZone.getStack().add(ability);
stop();
}
public void selectButtonCancel() {
stop();
}
};
ability.setDescription("Exile the top creature card of your graveyard: CARDNAME gets +2/+2 until end of turn.");
StringBuilder sb = new StringBuilder();
sb.append(card).append(" gets +2/+2 until end of turn.");
ability.setStackDescription(sb.toString());
ability.setBeforePayMana(runtime);
card.addSpellAbility(ability);
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if (cardName.equals("Phyrexian Scuta")) {
Cost abCost = new Cost("3 B PayLife<3>", cardName, false);