forked from External/mage
[ZNR] Implemented Roost of Drakes
This commit is contained in:
parent
b188dc51b9
commit
f0750d016b
2 changed files with 58 additions and 0 deletions
57
Mage.Sets/src/mage/cards/r/RoostOfDrakes.java
Normal file
57
Mage.Sets/src/mage/cards/r/RoostOfDrakes.java
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.condition.common.KickedCondition;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.KickerAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.predicate.mageobject.KickedPredicate;
|
||||
import mage.game.permanent.token.DrakeToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RoostOfDrakes extends CardImpl {
|
||||
|
||||
private static final FilterSpell filter = new FilterSpell("a kicked spell");
|
||||
|
||||
static {
|
||||
filter.add(KickedPredicate.instance);
|
||||
}
|
||||
|
||||
public RoostOfDrakes(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{U}");
|
||||
|
||||
// Kicker {2}{U}
|
||||
this.addAbility(new KickerAbility(new ManaCostsImpl<>("{2}{U}")));
|
||||
|
||||
// When Roost of Drakes enters the battlefield, if it was kicked, create a 2/2 blue Drake creature token with flying.
|
||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(
|
||||
new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new DrakeToken())),
|
||||
KickedCondition.instance, "When {this} enters the battlefield, if it was kicked, " +
|
||||
"create a 2/2 blue Drake creature token with flying."
|
||||
));
|
||||
|
||||
// Whenever you cast a kicked spell, create a 2/2 blue Drake creature token with flying.
|
||||
this.addAbility(new SpellCastControllerTriggeredAbility(
|
||||
new CreateTokenEffect(new DrakeToken()), filter, false
|
||||
));
|
||||
}
|
||||
|
||||
private RoostOfDrakes(final RoostOfDrakes card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RoostOfDrakes copy() {
|
||||
return new RoostOfDrakes(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -276,6 +276,7 @@ public final class ZendikarRising extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Rockslide Sorcerer", 154, Rarity.UNCOMMON, mage.cards.r.RockslideSorcerer.class));
|
||||
cards.add(new SetCardInfo("Roil Eruption", 155, Rarity.COMMON, mage.cards.r.RoilEruption.class));
|
||||
cards.add(new SetCardInfo("Roiling Regrowth", 201, Rarity.UNCOMMON, mage.cards.r.RoilingRegrowth.class));
|
||||
cards.add(new SetCardInfo("Roost of Drakes", 74, Rarity.UNCOMMON, mage.cards.r.RoostOfDrakes.class));
|
||||
cards.add(new SetCardInfo("Ruin Crab", 75, Rarity.UNCOMMON, mage.cards.r.RuinCrab.class));
|
||||
cards.add(new SetCardInfo("Scale the Heights", 202, Rarity.COMMON, mage.cards.s.ScaleTheHeights.class));
|
||||
cards.add(new SetCardInfo("Scavenged Blade", 157, Rarity.COMMON, mage.cards.s.ScavengedBlade.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue