Skip to content

Commit

Permalink
[MKC] Implement Duskana, the Rage Mother
Browse files Browse the repository at this point in the history
  • Loading branch information
PurpleCrowbar committed Feb 28, 2024
1 parent ee332cd commit 2aecc11
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
54 changes: 54 additions & 0 deletions Mage.Sets/src/mage/cards/d/DuskanaTheRageMother.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package mage.cards.d;

import mage.MageInt;
import mage.abilities.common.AttacksAllTriggeredAbility;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.*;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.mageobject.BasePowerPredicate;
import mage.filter.predicate.mageobject.BaseToughnessPredicate;

import java.util.UUID;

/**
* @author PurpleCrowbar
*/
public final class DuskanaTheRageMother extends CardImpl {

static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creature you control with base power and toughness 2/2");

static {
filter.add(new BasePowerPredicate(ComparisonType.EQUAL_TO, 2));
filter.add(new BaseToughnessPredicate(ComparisonType.EQUAL_TO, 2));
}

public DuskanaTheRageMother(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}{G}{W}");
this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.BEAR);
this.power = new MageInt(5);
this.toughness = new MageInt(5);

// When Duskana, the Rage Mother enters the battlefield, draw a card for each creature you control with base power and toughness 2/2.
this.addAbility(new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(new PermanentsOnBattlefieldCount(filter))));

// Whenever a creature you control with base power and toughness 2/2 attacks, it gets +3/+3 until end of turn.
this.addAbility(new AttacksAllTriggeredAbility(
new BoostTargetEffect(3, 3), false, filter, SetTargetPointer.PERMANENT, false
));
}

private DuskanaTheRageMother(final DuskanaTheRageMother card) {
super(card);
}

@Override
public DuskanaTheRageMother copy() {
return new DuskanaTheRageMother(this);
}
}
2 changes: 2 additions & 0 deletions Mage.Sets/src/mage/sets/MurdersAtKarlovManorCommander.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ private MurdersAtKarlovManorCommander() {
cards.add(new SetCardInfo("Dream Eater", 101, Rarity.MYTHIC, mage.cards.d.DreamEater.class));
cards.add(new SetCardInfo("Drownyard Temple", 259, Rarity.RARE, mage.cards.d.DrownyardTemple.class));
cards.add(new SetCardInfo("Duelist's Heritage", 60, Rarity.RARE, mage.cards.d.DuelistsHeritage.class));
cards.add(new SetCardInfo("Duskana, the Rage Mother", 5, Rarity.MYTHIC, mage.cards.d.DuskanaTheRageMother.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Duskana, the Rage Mother", 312, Rarity.MYTHIC, mage.cards.d.DuskanaTheRageMother.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Dusk // Dawn", 61, Rarity.RARE, mage.cards.d.DuskDawn.class));
cards.add(new SetCardInfo("Elspeth, Sun's Champion", 62, Rarity.MYTHIC, mage.cards.e.ElspethSunsChampion.class));
cards.add(new SetCardInfo("Enhanced Surveillance", 102, Rarity.UNCOMMON, mage.cards.e.EnhancedSurveillance.class));
Expand Down

0 comments on commit 2aecc11

Please sign in to comment.