Implemented Assurance // Association

This commit is contained in:
Evan Kranzler 2018-09-15 21:52:23 -04:00
parent 4f1fa6acbd
commit 38740d4f62
2 changed files with 57 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));