forked from External/mage
[LTC] Implement Fell Beast of Mordor (#11224)
This commit is contained in:
parent
78ec273b24
commit
4236e31c06
2 changed files with 62 additions and 0 deletions
61
Mage.Sets/src/mage/cards/f/FellBeastOfMordor.java
Normal file
61
Mage.Sets/src/mage/cards/f/FellBeastOfMordor.java
Normal file
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
@ -106,6 +106,7 @@ public final class TalesOfMiddleEarthCommander extends ExpansionSet {
|
|||
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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue