[OTJ] Implement Resilient Roadrunner

This commit is contained in:
theelk801 2024-03-28 10:42:51 -04:00
parent 4df99b528f
commit 3ec7e040c7
2 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1,63 @@
package mage.cards.r;
import mage.MageInt;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.common.combat.CantBeBlockedByCreaturesSourceEffect;
import mage.abilities.keyword.HasteAbility;
import mage.abilities.keyword.ProtectionAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.filter.FilterCard;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.AbilityPredicate;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ResilientRoadrunner extends CardImpl {
private static final FilterCard filter = new FilterCard("Coyotes");
private static final FilterCreaturePermanent filter2
= new FilterCreaturePermanent("except by creatures with haste");
static {
filter.add(SubType.COYOTE.getPredicate());
filter2.add(Predicates.not(new AbilityPredicate(HasteAbility.class)));
}
public ResilientRoadrunner(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
this.subtype.add(SubType.BIRD);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// Haste
this.addAbility(HasteAbility.getInstance());
// Protection from Coyotes
this.addAbility(new ProtectionAbility(filter));
// {3}: Resilient Roadrunner can't be blocked this turn except by creatures with haste.
this.addAbility(new SimpleActivatedAbility(
new CantBeBlockedByCreaturesSourceEffect(filter2, Duration.EndOfTurn), new GenericManaCost(3)
));
}
private ResilientRoadrunner(final ResilientRoadrunner card) {
super(card);
}
@Override
public ResilientRoadrunner copy() {
return new ResilientRoadrunner(this);
}
}
// meep meep

View file

@ -62,6 +62,7 @@ public final class OutlawsOfThunderJunction extends ExpansionSet {
cards.add(new SetCardInfo("Plains", 272, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Plan the Heist", 62, Rarity.UNCOMMON, mage.cards.p.PlanTheHeist.class));
cards.add(new SetCardInfo("Rakish Crew", 99, Rarity.UNCOMMON, mage.cards.r.RakishCrew.class));
cards.add(new SetCardInfo("Resilient Roadrunner", 141, Rarity.UNCOMMON, mage.cards.r.ResilientRoadrunner.class));
cards.add(new SetCardInfo("Ruthless Lawbringer", 229, Rarity.UNCOMMON, mage.cards.r.RuthlessLawbringer.class));
cards.add(new SetCardInfo("Scorching Shot", 145, Rarity.UNCOMMON, mage.cards.s.ScorchingShot.class));
cards.add(new SetCardInfo("Slickshot Show-Off", 146, Rarity.RARE, mage.cards.s.SlickshotShowOff.class));