Implemented Porcuparrot

This commit is contained in:
Evan Kranzler 2020-04-11 09:51:50 -04:00
parent 4a9bfef39d
commit 56bed294aa
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,50 @@
package mage.cards.p;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.dynamicvalue.common.SourceMutatedCount;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.keyword.MutateAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.target.common.TargetAnyTarget;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class Porcuparrot extends CardImpl {
public Porcuparrot(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}");
this.subtype.add(SubType.BIRD);
this.subtype.add(SubType.BEAST);
this.power = new MageInt(3);
this.toughness = new MageInt(4);
// Mutate {2}{R}
this.addAbility(new MutateAbility(this, "{2}{R}"));
// {T}: This creature deals X damage to any target, where X is the number of times this creature has mutated.
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(
SourceMutatedCount.instance, "this creature"
), new TapSourceCost());
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
}
private Porcuparrot(final Porcuparrot card) {
super(card);
}
@Override
public Porcuparrot copy() {
return new Porcuparrot(this);
}
}

View file

@ -215,6 +215,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet {
cards.add(new SetCardInfo("Plains", 262, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Plummet", 169, Rarity.COMMON, mage.cards.p.Plummet.class));
cards.add(new SetCardInfo("Pollywog Symbiote", 63, Rarity.UNCOMMON, mage.cards.p.PollywogSymbiote.class));
cards.add(new SetCardInfo("Porcuparrot", 128, Rarity.UNCOMMON, mage.cards.p.Porcuparrot.class));
cards.add(new SetCardInfo("Pouncing Shoreshark", 64, Rarity.UNCOMMON, mage.cards.p.PouncingShoreshark.class));
cards.add(new SetCardInfo("Prickly Marmoset", 129, Rarity.COMMON, mage.cards.p.PricklyMarmoset.class));
cards.add(new SetCardInfo("Primal Empathy", 200, Rarity.UNCOMMON, mage.cards.p.PrimalEmpathy.class));