Implemented Status // Statue

This commit is contained in:
Evan Kranzler 2018-09-04 14:29:37 -04:00
parent 26f0f20d82
commit dc93fa8e3d
2 changed files with 73 additions and 0 deletions

View file

@ -0,0 +1,72 @@
package mage.cards.s;
import java.util.UUID;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
import mage.abilities.keyword.DeathtouchAbility;
import mage.cards.CardSetInfo;
import mage.cards.SplitCard;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SpellAbilityType;
import mage.filter.FilterPermanent;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.CardTypePredicate;
import mage.target.TargetPermanent;
import mage.target.common.TargetCreaturePermanent;
/**
*
* @author TheElk801
*/
public final class StatusStatue extends SplitCard {
private static final FilterPermanent filter = new FilterPermanent("artifact, creature, or enchantment");
static {
filter.add(Predicates.or(
new CardTypePredicate(CardType.ARTIFACT),
new CardTypePredicate(CardType.CREATURE),
new CardTypePredicate(CardType.ENCHANTMENT)
));
}
public StatusStatue(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{B/G}", "{2}{B}{G}", SpellAbilityType.SPLIT);
// Status
// Target creature gets +1/+1 and gains deathtouch until end of turn.
this.getLeftHalfCard().getSpellAbility().addEffect(
new BoostTargetEffect(1, 1, Duration.EndOfTurn)
.setText("Target creature gets +1/+1")
);
this.getLeftHalfCard().getSpellAbility().addEffect(
new GainAbilityTargetEffect(
DeathtouchAbility.getInstance(),
Duration.EndOfTurn
).setText("and gains deathtouch until end of turn")
);
this.getLeftHalfCard().getSpellAbility().addTarget(
new TargetCreaturePermanent()
);
// Statue
// Destroy target artifact, creature, or enchantment.
this.getRightHalfCard().getSpellAbility().addEffect(
new DestroyTargetEffect()
);
this.getRightHalfCard().getSpellAbility().addTarget(
new TargetPermanent(filter)
);
}
public StatusStatue(final StatusStatue card) {
super(card);
}
@Override
public StatusStatue copy() {
return new StatusStatue(this);
}
}

View file

@ -46,6 +46,7 @@ public final class GuildsOfRavnica extends ExpansionSet {
cards.add(new SetCardInfo("Sacred Foundry", 254, Rarity.RARE, mage.cards.s.SacredFoundry.class));
cards.add(new SetCardInfo("Sinister Sabotage", 54, Rarity.UNCOMMON, mage.cards.s.SinisterSabotage.class));
cards.add(new SetCardInfo("Sonic Assault", 199, Rarity.COMMON, mage.cards.s.SonicAssault.class));
cards.add(new SetCardInfo("Status", 230, Rarity.UNCOMMON, mage.cards.s.StatusStatue.class));
cards.add(new SetCardInfo("Steam Vents", 257, Rarity.RARE, mage.cards.s.SteamVents.class));
cards.add(new SetCardInfo("Swamp", 262, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Temple Garden", 258, Rarity.RARE, mage.cards.t.TempleGarden.class));