From d16a4e5934e8ab03143d06990b61ae1858083557 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 7 Jan 2020 08:35:13 -0500 Subject: [PATCH] Implemented The First Iroan Games --- .../src/mage/cards/t/TheFirstIroanGames.java | 69 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + 2 files changed, 70 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TheFirstIroanGames.java diff --git a/Mage.Sets/src/mage/cards/t/TheFirstIroanGames.java b/Mage.Sets/src/mage/cards/t/TheFirstIroanGames.java new file mode 100644 index 0000000000..0e8a366c94 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TheFirstIroanGames.java @@ -0,0 +1,69 @@ +package mage.cards.t; + +import mage.abilities.common.SagaAbility; +import mage.abilities.condition.common.FerociousCondition; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.counter.AddCountersTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SagaChapter; +import mage.constants.SubType; +import mage.counters.CounterType; +import mage.game.permanent.token.GoldToken; +import mage.game.permanent.token.HumanSoldierToken; +import mage.target.common.TargetControlledCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TheFirstIroanGames extends CardImpl { + + public TheFirstIroanGames(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{G}"); + + this.subtype.add(SubType.SAGA); + + // (As this Saga enters and after your draw step, add a lore counter. Sacrifice after IV.) + SagaAbility sagaAbility = new SagaAbility(this, SagaChapter.CHAPTER_IV); + + // I — Create a 1/1 white Human Soldier token. + sagaAbility.addChapterEffect( + this, SagaChapter.CHAPTER_I, new CreateTokenEffect(new HumanSoldierToken()) + ); + + // II — Put three +1/+1 counters on target creature you control. + sagaAbility.addChapterEffect( + this, SagaChapter.CHAPTER_II, SagaChapter.CHAPTER_II, + new AddCountersTargetEffect(CounterType.P1P1.createInstance(3)), + new TargetControlledCreaturePermanent() + ); + + // III — If you control a creature with power 4 or greater, draw two cards. + sagaAbility.addChapterEffect( + this, SagaChapter.CHAPTER_III, new ConditionalOneShotEffect( + new DrawCardSourceControllerEffect(2), FerociousCondition.instance, + "if you control a creature with power 4 or greater, draw two cards" + ) + ); + + // IV — Create a Gold token. + sagaAbility.addChapterEffect( + this, SagaChapter.CHAPTER_IV, new CreateTokenEffect(new GoldToken()) + .setText("create a Gold token") + ); + } + + private TheFirstIroanGames(final TheFirstIroanGames card) { + super(card); + } + + @Override + public TheFirstIroanGames copy() { + return new TheFirstIroanGames(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index 83c6298875..b94afd532d 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -139,6 +139,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("The Akroan War", 124, Rarity.RARE, mage.cards.t.TheAkroanWar.class)); cards.add(new SetCardInfo("The Binding of the Titans", 166, Rarity.UNCOMMON, mage.cards.t.TheBindingOfTheTitans.class)); cards.add(new SetCardInfo("The Birth of Meletis", 5, Rarity.UNCOMMON, mage.cards.t.TheBirthOfMeletis.class)); + cards.add(new SetCardInfo("The First Iroan Games", 170, Rarity.RARE, mage.cards.t.TheFirstIroanGames.class)); cards.add(new SetCardInfo("The Triumph of Anax", 160, Rarity.UNCOMMON, mage.cards.t.TheTriumphOfAnax.class)); cards.add(new SetCardInfo("Thirst for Meaning", 74, Rarity.COMMON, mage.cards.t.ThirstForMeaning.class)); cards.add(new SetCardInfo("Thryx, the Sudden Storm", 76, Rarity.RARE, mage.cards.t.ThryxTheSuddenStorm.class));