Skip to content

Commit

Permalink
[LTC] Implement Fell Beast of Mordor (#11224)
Browse files Browse the repository at this point in the history
  • Loading branch information
Susucre committed Sep 28, 2023
1 parent 78ec273 commit 4236e31
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
61 changes: 61 additions & 0 deletions Mage.Sets/src/mage/cards/f/FellBeastOfMordor.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
package mage.cards.f;

import mage.MageInt;
import mage.abilities.TriggeredAbility;
import mage.abilities.common.EntersBattlefieldOrAttacksSourceTriggeredAbility;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.CountersSourceCount;
import mage.abilities.effects.common.GainLifeEffect;
import mage.abilities.effects.common.LoseLifeTargetEffect;
import mage.abilities.keyword.DevourAbility;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.counters.CounterType;
import mage.target.common.TargetOpponent;

import java.util.UUID;

/**
* @author Susucr
*/
public final class FellBeastOfMordor extends CardImpl {

private static final DynamicValue xValue = new CountersSourceCount(CounterType.P1P1);

public FellBeastOfMordor(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}{B}");

this.subtype.add(SubType.DRAKE);
this.subtype.add(SubType.BEAST);
this.power = new MageInt(3);
this.toughness = new MageInt(3);

// Flying
this.addAbility(FlyingAbility.getInstance());

// Devour 1
this.addAbility(new DevourAbility(1));

// Whenever Fell Beast of Mordor enters the battlefield or attacks, target opponent loses X life and you gain X life, where X is the number of +1/+1 counters on it.
TriggeredAbility trigger = new EntersBattlefieldOrAttacksSourceTriggeredAbility(
new LoseLifeTargetEffect(xValue)
.setText("target opponent loses X life")
);
trigger.addEffect(new GainLifeEffect(xValue)
.setText(" and you gain X life, where X is the number of +1/+1 counters on it"));
trigger.addTarget(new TargetOpponent());
this.addAbility(trigger);
}

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

@Override
public FellBeastOfMordor copy() {
return new FellBeastOfMordor(this);
}
}
1 change: 1 addition & 0 deletions Mage.Sets/src/mage/sets/TalesOfMiddleEarthCommander.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ private TalesOfMiddleEarthCommander() {
cards.add(new SetCardInfo("Fealty to the Realm", 21, Rarity.RARE, mage.cards.f.FealtyToTheRealm.class));
cards.add(new SetCardInfo("Feasting Hobbit", 37, Rarity.RARE, mage.cards.f.FeastingHobbit.class));
cards.add(new SetCardInfo("Feed the Swarm", 200, Rarity.COMMON, mage.cards.f.FeedTheSwarm.class));
cards.add(new SetCardInfo("Fell Beast of Mordor", 513, Rarity.RARE, mage.cards.f.FellBeastOfMordor.class));
cards.add(new SetCardInfo("Fell the Mighty", 167, Rarity.RARE, mage.cards.f.FellTheMighty.class));
cards.add(new SetCardInfo("Field of Ruin", 308, Rarity.UNCOMMON, mage.cards.f.FieldOfRuin.class));
cards.add(new SetCardInfo("Field-Tested Frying Pan", 11, Rarity.RARE, mage.cards.f.FieldTestedFryingPan.class));
Expand Down

0 comments on commit 4236e31

Please sign in to comment.