Implemented Integrity // Intervention

This commit is contained in:
Evan Kranzler 2018-09-12 23:19:57 -04:00
parent 1db67e8028
commit 33882c27d8
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,54 @@
package mage.cards.i;
import java.util.UUID;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.effects.common.GainLifeEffect;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.cards.CardSetInfo;
import mage.cards.SplitCard;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SpellAbilityType;
import mage.target.common.TargetAnyTarget;
import mage.target.common.TargetCreaturePermanent;
/**
*
* @author TheElk801
*/
public final class IntegrityIntervention extends SplitCard {
public IntegrityIntervention(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{R/W}", "{2}{R}{W}", SpellAbilityType.SPLIT);
// Integrity
// Target creature gets +2/+2 until end of turn.
this.getLeftHalfCard().getSpellAbility().addEffect(
new BoostTargetEffect(2, 2, Duration.EndOfTurn)
);
this.getLeftHalfCard().getSpellAbility().addTarget(
new TargetCreaturePermanent()
);
// Intervention
// Intervention deals 3 damage to any target and you gain 3 life.
this.getRightHalfCard().getSpellAbility().addEffect(
new DamageTargetEffect(3)
);
this.getRightHalfCard().getSpellAbility().addEffect(
new GainLifeEffect(3).setText("and you gain 3 life")
);
this.getRightHalfCard().getSpellAbility().addTarget(
new TargetAnyTarget()
);
}
public IntegrityIntervention(final IntegrityIntervention card) {
super(card);
}
@Override
public IntegrityIntervention copy() {
return new IntegrityIntervention(this);
}
}

View file

@ -70,6 +70,7 @@ public final class GuildsOfRavnica extends ExpansionSet {
cards.add(new SetCardInfo("Hypothesizzle", 178, Rarity.COMMON, mage.cards.h.Hypothesizzle.class));
cards.add(new SetCardInfo("Impervious Greatwurm", 273, Rarity.MYTHIC, mage.cards.i.ImperviousGreatwurm.class));
cards.add(new SetCardInfo("Inescapable Flame", 107, Rarity.UNCOMMON, mage.cards.i.InescapableFlame.class));
cards.add(new SetCardInfo("Integrity // Intervention", 227, Rarity.UNCOMMON, mage.cards.i.IntegrityIntervention.class));
cards.add(new SetCardInfo("Invert // Invent", 228, Rarity.UNCOMMON, mage.cards.i.InvertInvent.class));
cards.add(new SetCardInfo("Ionize", 179, Rarity.RARE, mage.cards.i.Ionize.class));
cards.add(new SetCardInfo("Island", 261, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));