mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
add Leveler (from Mirrodin)
This commit is contained in:
@@ -20567,6 +20567,29 @@ public class CardFactory_Creatures {
|
||||
ability.setDescription("G: Regenerate another target Elf.");
|
||||
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Leveler")) {
|
||||
/*
|
||||
* When Leveler enters the battlefield, exile all cards from your library.
|
||||
*/
|
||||
final Ability ability = new Ability(card, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
CardList lib = AllZoneUtil.getPlayerCardsInLibrary(card.getController());
|
||||
for(Card c:lib) AllZone.GameAction.exile(c);
|
||||
}//resolve()
|
||||
};//SpellAbility
|
||||
Command intoPlay = new Command() {
|
||||
private static final long serialVersionUID = -5462488189911159119L;
|
||||
|
||||
public void execute() {
|
||||
AllZone.Stack.add(ability);
|
||||
}
|
||||
};
|
||||
ability.setStackDescription(cardName + " - exile all cards from your library.");
|
||||
card.addComesIntoPlayCommand(intoPlay);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
if(hasKeyword(card, "Level up") != -1 && hasKeyword(card, "maxLevel") != -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user