[MKM] Implement Rakdos, Patron of Chaos (#11777)

This commit is contained in:
Matthew Wilson 2024-02-10 21:52:14 +02:00 committed by GitHub
parent 49b20b72f4
commit bbe2ede8dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,69 @@
package mage.cards.r;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
import mage.abilities.costs.common.SacrificeTargetCost;
import mage.abilities.effects.common.DoUnlessTargetPlayerOrTargetsControllerPaysEffect;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.TrampleAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.TargetController;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterNonlandPermanent;
import mage.filter.predicate.permanent.TokenPredicate;
import mage.target.common.TargetOpponent;
/**
*
* @author DominionSpy
*/
public final class RakdosPatronOfChaos extends CardImpl {
private static final FilterPermanent filter = new FilterNonlandPermanent("nonland, nontoken permanents");
static {
filter.add(TokenPredicate.FALSE);
}
public RakdosPatronOfChaos(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}{R}");
this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.DEMON);
this.power = new MageInt(6);
this.toughness = new MageInt(6);
// Flying
this.addAbility(FlyingAbility.getInstance());
// Trample
this.addAbility(TrampleAbility.getInstance());
// At the beginning of your end step, target opponent may sacrifice two nonland, nontoken permanents. If they don't, you draw two cards.
Ability ability = new BeginningOfEndStepTriggeredAbility(
new DoUnlessTargetPlayerOrTargetsControllerPaysEffect(
new DrawCardSourceControllerEffect(2),
new SacrificeTargetCost(2, filter))
.setText("target opponent may sacrifice two nonland, nontoken permanents. " +
"If they don't, you draw two cards."),
TargetController.YOU, false);
ability.addTarget(new TargetOpponent());
this.addAbility(ability);
}
private RakdosPatronOfChaos(final RakdosPatronOfChaos card) {
super(card);
}
@Override
public RakdosPatronOfChaos copy() {
return new RakdosPatronOfChaos(this);
}
}

View file

@ -181,6 +181,7 @@ public final class MurdersAtKarlovManor extends ExpansionSet {
cards.add(new SetCardInfo("Private Eye", 223, Rarity.UNCOMMON, mage.cards.p.PrivateEye.class));
cards.add(new SetCardInfo("Public Thoroughfare", 265, Rarity.COMMON, mage.cards.p.PublicThoroughfare.class));
cards.add(new SetCardInfo("Push // Pull", 250, Rarity.UNCOMMON, mage.cards.p.PushPull.class));
cards.add(new SetCardInfo("Rakdos, Patron of Chaos", 224, Rarity.MYTHIC, mage.cards.r.RakdosPatronOfChaos.class));
cards.add(new SetCardInfo("Rakish Scoundrel", 225, Rarity.COMMON, mage.cards.r.RakishScoundrel.class));
cards.add(new SetCardInfo("Raucous Theater", 266, Rarity.RARE, mage.cards.r.RaucousTheater.class));
cards.add(new SetCardInfo("Reasonable Doubt", 69, Rarity.COMMON, mage.cards.r.ReasonableDoubt.class));