Implemented Ayula's Influence

This commit is contained in:
Evan Kranzler 2019-05-23 09:12:47 -04:00
parent 1db005c517
commit 9194ca2c41
3 changed files with 48 additions and 12 deletions

View file

@ -0,0 +1,38 @@
package mage.cards.a;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.DiscardTargetCost;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.StaticFilters;
import mage.game.permanent.token.BearToken;
import mage.target.common.TargetCardInHand;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class AyulasInfluence extends CardImpl {
public AyulasInfluence(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{G}{G}{G}");
// Discard a land card: Create a 2/2 green Bear creature token.
this.addAbility(new SimpleActivatedAbility(
new CreateTokenEffect(new BearToken()),
new DiscardTargetCost(new TargetCardInHand(StaticFilters.FILTER_CARD_LAND_A))
));
}
private AyulasInfluence(final AyulasInfluence card) {
super(card);
}
@Override
public AyulasInfluence copy() {
return new AyulasInfluence(this);
}
}

View file

@ -1,7 +1,5 @@
package mage.cards.s;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.DiscardTargetCost;
@ -9,26 +7,25 @@ import mage.abilities.effects.common.DamageTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Zone;
import mage.filter.FilterCard;
import mage.filter.common.FilterLandCard;
import mage.target.common.TargetCardInHand;
import mage.filter.StaticFilters;
import mage.target.common.TargetAnyTarget;
import mage.target.common.TargetCardInHand;
import java.util.UUID;
/**
*
* @author jonubuu
*/
public final class SeismicAssault extends CardImpl {
private static final FilterCard filter = new FilterLandCard();
public SeismicAssault(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{R}{R}{R}");
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{R}{R}{R}");
// Discard a land card: Seismic Assault deals 2 damage to any target.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new DiscardTargetCost(new TargetCardInHand(filter)));
Ability ability = new SimpleActivatedAbility(
new DamageTargetEffect(2),
new DiscardTargetCost(new TargetCardInHand(StaticFilters.FILTER_CARD_LAND_A))
);
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
}

View file

@ -29,6 +29,7 @@ public final class ModernHorizons extends ExpansionSet {
cards.add(new SetCardInfo("Abominable Treefolk", 194, Rarity.UNCOMMON, mage.cards.a.AbominableTreefolk.class));
cards.add(new SetCardInfo("Altar of Dementia", 218, Rarity.RARE, mage.cards.a.AltarOfDementia.class));
cards.add(new SetCardInfo("Ayula's Influence", 156, Rarity.RARE, mage.cards.a.AyulasInfluence.class));
cards.add(new SetCardInfo("Cabal Therapist", 80, Rarity.RARE, mage.cards.c.CabalTherapist.class));
cards.add(new SetCardInfo("Chillerpillar", 43, Rarity.COMMON, mage.cards.c.Chillerpillar.class));
cards.add(new SetCardInfo("Choking Tethers", 44, Rarity.COMMON, mage.cards.c.ChokingTethers.class));