forked from External/mage
[KHM] Implemented Arni Slays the Troll
This commit is contained in:
parent
2c501fff46
commit
82a2aeb333
2 changed files with 73 additions and 0 deletions
72
Mage.Sets/src/mage/cards/a/ArniSlaysTheTroll.java
Normal file
72
Mage.Sets/src/mage/cards/a/ArniSlaysTheTroll.java
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.Mana;
|
||||
import mage.abilities.common.SagaAbility;
|
||||
import mage.abilities.dynamicvalue.common.GreatestPowerAmongControlledCreaturesValue;
|
||||
import mage.abilities.effects.Effects;
|
||||
import mage.abilities.effects.common.FightTargetsEffect;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.effects.mana.BasicManaEffect;
|
||||
import mage.constants.SagaChapter;
|
||||
import mage.constants.SubType;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.Targets;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author weirddan455
|
||||
*/
|
||||
public final class ArniSlaysTheTroll extends CardImpl {
|
||||
|
||||
public ArniSlaysTheTroll(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{R}{G}");
|
||||
|
||||
this.subtype.add(SubType.SAGA);
|
||||
|
||||
// (As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.)
|
||||
SagaAbility sagaAbility = new SagaAbility(this, SagaChapter.CHAPTER_III);
|
||||
|
||||
// I — Target creature you control fights up to one target creature you don't control.
|
||||
sagaAbility.addChapterEffect(this, SagaChapter.CHAPTER_I, SagaChapter.CHAPTER_I,
|
||||
new Effects(new FightTargetsEffect(
|
||||
"Target creature you control fights up to one target creature you don't control"
|
||||
)), new Targets(
|
||||
new TargetControlledCreaturePermanent(),
|
||||
new TargetPermanent(0, 1, StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL, false)
|
||||
)
|
||||
);
|
||||
|
||||
// II — Add {R}. Put two +1/+1 counters on up to one target creature you control.
|
||||
sagaAbility.addChapterEffect(this, SagaChapter.CHAPTER_II, SagaChapter.CHAPTER_II,
|
||||
new Effects(new BasicManaEffect(Mana.RedMana(1)),
|
||||
new AddCountersTargetEffect(CounterType.P1P1.createInstance(2))
|
||||
), new Targets(new TargetControlledCreaturePermanent(0, 1))
|
||||
);
|
||||
|
||||
// III — You gain life equal to the greatest power among creatures you control.
|
||||
sagaAbility.addChapterEffect(this, SagaChapter.CHAPTER_III,
|
||||
new GainLifeEffect(GreatestPowerAmongControlledCreaturesValue.instance,
|
||||
"You gain life equal to the greatest power among creatures you control"
|
||||
)
|
||||
);
|
||||
this.addAbility(sagaAbility);
|
||||
}
|
||||
|
||||
private ArniSlaysTheTroll(final ArniSlaysTheTroll card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ArniSlaysTheTroll copy() {
|
||||
return new ArniSlaysTheTroll(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -70,6 +70,7 @@ public final class Kaldheim extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Arachnoform", 159, Rarity.COMMON, mage.cards.a.Arachnoform.class));
|
||||
cards.add(new SetCardInfo("Arctic Treeline", 249, Rarity.COMMON, mage.cards.a.ArcticTreeline.class));
|
||||
cards.add(new SetCardInfo("Armed and Armored", 379, Rarity.UNCOMMON, mage.cards.a.ArmedAndArmored.class));
|
||||
cards.add(new SetCardInfo("Arni Slays the Troll", 201, Rarity.UNCOMMON, mage.cards.a.ArniSlaysTheTroll.class));
|
||||
cards.add(new SetCardInfo("Augury Raven", 44, Rarity.COMMON, mage.cards.a.AuguryRaven.class));
|
||||
cards.add(new SetCardInfo("Avalanche Caller", 45, Rarity.UNCOMMON, mage.cards.a.AvalancheCaller.class));
|
||||
cards.add(new SetCardInfo("Axgard Armory", 250, Rarity.UNCOMMON, mage.cards.a.AxgardArmory.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue