From 38740d4f62677e9ff4a7d1c240a0ef4db2379a19 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 15 Sep 2018 21:52:23 -0400 Subject: [PATCH] Implemented Assurance // Association --- .../mage/cards/a/AssuranceAssociation.java | 56 +++++++++++++++++++ Mage.Sets/src/mage/sets/GuildsOfRavnica.java | 1 + 2 files changed, 57 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AssuranceAssociation.java diff --git a/Mage.Sets/src/mage/cards/a/AssuranceAssociation.java b/Mage.Sets/src/mage/cards/a/AssuranceAssociation.java new file mode 100644 index 0000000000..62d1a92832 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AssuranceAssociation.java @@ -0,0 +1,56 @@ +package mage.cards.a; + +import java.util.UUID; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.abilities.effects.common.counter.AddCountersTargetEffect; +import mage.abilities.keyword.IndestructibleAbility; +import mage.cards.CardSetInfo; +import mage.cards.SplitCard; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SpellAbilityType; +import mage.counters.CounterType; +import mage.game.permanent.token.ElfKnightToken; +import mage.target.common.TargetCreaturePermanent; + +/** + * + * @author TheElk801 + */ +public final class AssuranceAssociation extends SplitCard { + + public AssuranceAssociation(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{G/W}{G/W}", "{4}{G}{W}", SpellAbilityType.SPLIT); + + // Assurance + // Put a +1/+1 counter on target creature. It gains indestructible until end of turn. + this.getLeftHalfCard().getSpellAbility().addEffect( + new AddCountersTargetEffect(CounterType.P1P1.createInstance()) + ); + this.getLeftHalfCard().getSpellAbility().addEffect( + new GainAbilityTargetEffect( + IndestructibleAbility.getInstance(), + Duration.EndOfTurn + ).setText("It gains indestructible until end of turn.") + ); + this.getLeftHalfCard().getSpellAbility().addTarget( + new TargetCreaturePermanent() + ); + + // Association + // Create three 2/2 green and white Elf Knight creature tokens with vigilance. + this.getRightHalfCard().getSpellAbility().addEffect( + new CreateTokenEffect(new ElfKnightToken(), 3) + ); + } + + public AssuranceAssociation(final AssuranceAssociation card) { + super(card); + } + + @Override + public AssuranceAssociation copy() { + return new AssuranceAssociation(this); + } +} diff --git a/Mage.Sets/src/mage/sets/GuildsOfRavnica.java b/Mage.Sets/src/mage/sets/GuildsOfRavnica.java index 0db2389b51..5181588e23 100644 --- a/Mage.Sets/src/mage/sets/GuildsOfRavnica.java +++ b/Mage.Sets/src/mage/sets/GuildsOfRavnica.java @@ -27,6 +27,7 @@ public final class GuildsOfRavnica extends ExpansionSet { cards.add(new SetCardInfo("Arclight Phoenix", 91, Rarity.MYTHIC, mage.cards.a.ArclightPhoenix.class)); cards.add(new SetCardInfo("Artful Takedown", 151, Rarity.COMMON, mage.cards.a.ArtfulTakedown.class)); cards.add(new SetCardInfo("Assassin's Trophy", 152, Rarity.RARE, mage.cards.a.AssassinsTrophy.class)); + cards.add(new SetCardInfo("Assurance // Association", 221, Rarity.RARE, mage.cards.a.AssuranceAssociation.class)); cards.add(new SetCardInfo("Attendant of Vraska", 271, Rarity.UNCOMMON, mage.cards.a.AttendantOfVraska.class)); cards.add(new SetCardInfo("Aurelia, Exemplar of Justice", 153, Rarity.MYTHIC, mage.cards.a.AureliaExemplarOfJustice.class)); cards.add(new SetCardInfo("Barging Sergeant", 92, Rarity.COMMON, mage.cards.b.BargingSergeant.class));