Implemented Depose // Deploy

This commit is contained in:
Evan Kranzler 2019-01-03 12:45:00 -05:00
parent b4cd38f1fa
commit fe3ed92539
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,54 @@
package mage.cards.d;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.GainLifeEffect;
import mage.abilities.effects.common.TapTargetEffect;
import mage.cards.CardSetInfo;
import mage.cards.SplitCard;
import mage.constants.CardType;
import mage.constants.SpellAbilityType;
import mage.filter.StaticFilters;
import mage.game.permanent.token.ThopterColorlessToken;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class DeposeDeploy extends SplitCard {
public DeposeDeploy(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W/U}", "{2}{W}{U}", SpellAbilityType.SPLIT);
// Depose
// Tap target creature.
// Draw a card.
this.getLeftHalfCard().getSpellAbility().addEffect(new TapTargetEffect());
this.getLeftHalfCard().getSpellAbility().addTarget(new TargetCreaturePermanent());
this.getLeftHalfCard().getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
// Deploy
// Creature two 1/1 colorless Thopter artifact creature tokens with flying, then you gain 1 life for each creature you control.
this.getRightHalfCard().getSpellAbility().addEffect(
new CreateTokenEffect(new ThopterColorlessToken(), 2)
);
this.getRightHalfCard().getSpellAbility().addEffect(
new GainLifeEffect(new PermanentsOnBattlefieldCount(
StaticFilters.FILTER_CONTROLLED_CREATURES
)).setText(", then you gain 1 life for each creature you control.")
);
}
private DeposeDeploy(final DeposeDeploy card) {
super(card);
}
@Override
public DeposeDeploy copy() {
return new DeposeDeploy(this);
}
}

View file

@ -40,6 +40,7 @@ public final class RavnicaAllegiance extends ExpansionSet {
cards.add(new SetCardInfo("Bedevil", 157, Rarity.RARE, mage.cards.b.Bedevil.class)); cards.add(new SetCardInfo("Bedevil", 157, Rarity.RARE, mage.cards.b.Bedevil.class));
cards.add(new SetCardInfo("Blood Crypt", 245, Rarity.RARE, mage.cards.b.BloodCrypt.class)); cards.add(new SetCardInfo("Blood Crypt", 245, Rarity.RARE, mage.cards.b.BloodCrypt.class));
cards.add(new SetCardInfo("Breeding Pool", 246, Rarity.RARE, mage.cards.b.BreedingPool.class)); cards.add(new SetCardInfo("Breeding Pool", 246, Rarity.RARE, mage.cards.b.BreedingPool.class));
cards.add(new SetCardInfo("Depose // Deploy", 225, Rarity.UNCOMMON, mage.cards.d.DeposeDeploy.class));
cards.add(new SetCardInfo("Deputy of Detention", 165, Rarity.RARE, mage.cards.d.DeputyOfDetention.class)); cards.add(new SetCardInfo("Deputy of Detention", 165, Rarity.RARE, mage.cards.d.DeputyOfDetention.class));
cards.add(new SetCardInfo("Dovin, Grand Arbiter", 167, Rarity.MYTHIC, mage.cards.d.DovinGrandArbiter.class)); cards.add(new SetCardInfo("Dovin, Grand Arbiter", 167, Rarity.MYTHIC, mage.cards.d.DovinGrandArbiter.class));
cards.add(new SetCardInfo("Emergency Powers", 169, Rarity.MYTHIC, mage.cards.e.EmergencyPowers.class)); cards.add(new SetCardInfo("Emergency Powers", 169, Rarity.MYTHIC, mage.cards.e.EmergencyPowers.class));