mirror of
https://github.com/correl/mage.git
synced 2025-03-13 01:09:53 -09:00
Implemented Pollywog Symbiote
This commit is contained in:
parent
c212233206
commit
78b95320aa
2 changed files with 63 additions and 0 deletions
Mage.Sets/src/mage
62
Mage.Sets/src/mage/cards/p/PollywogSymbiote.java
Normal file
62
Mage.Sets/src/mage/cards/p/PollywogSymbiote.java
Normal file
|
@ -0,0 +1,62 @@
|
|||
package mage.cards.p;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.effects.common.DrawDiscardControllerEffect;
|
||||
import mage.abilities.effects.common.cost.SpellsCostReductionControllerEffect;
|
||||
import mage.abilities.keyword.MutateAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.common.FilterCreatureCard;
|
||||
import mage.filter.common.FilterCreatureSpell;
|
||||
import mage.filter.predicate.Predicate;
|
||||
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class PollywogSymbiote extends CardImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterCreatureCard();
|
||||
private static final FilterSpell filter2 = new FilterCreatureSpell();
|
||||
private static final Predicate predicate = new AbilityPredicate(MutateAbility.class);
|
||||
|
||||
static {
|
||||
filter.add(predicate);
|
||||
filter2.add(predicate);
|
||||
}
|
||||
|
||||
public PollywogSymbiote(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}");
|
||||
|
||||
this.subtype.add(SubType.FROG);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Each creature spell you cast costs {1} less to cast if it has mutate.
|
||||
this.addAbility(new SimpleStaticAbility(new SpellsCostReductionControllerEffect(filter, 1)
|
||||
.setText("each creature spell you cast costs {1} less to cast if it has mutate")));
|
||||
|
||||
// Whenever you cast a creature spell, if it has mutate, draw a card, then discard a card.
|
||||
this.addAbility(new SpellCastControllerTriggeredAbility(
|
||||
new DrawDiscardControllerEffect(1, 1), filter2, false,
|
||||
"Whenever you cast a creature spell, if it has mutate, draw a card, then discard a card."
|
||||
));
|
||||
}
|
||||
|
||||
private PollywogSymbiote(final PollywogSymbiote card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PollywogSymbiote copy() {
|
||||
return new PollywogSymbiote(this);
|
||||
}
|
||||
}
|
|
@ -106,6 +106,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Neutralize", 59, Rarity.UNCOMMON, mage.cards.n.Neutralize.class));
|
||||
cards.add(new SetCardInfo("Pacifism", 25, Rarity.COMMON, mage.cards.p.Pacifism.class));
|
||||
cards.add(new SetCardInfo("Phase Dolphin", 62, Rarity.COMMON, mage.cards.p.PhaseDolphin.class));
|
||||
cards.add(new SetCardInfo("Pollywog Symbiote", 63, Rarity.UNCOMMON, mage.cards.p.PollywogSymbiote.class));
|
||||
cards.add(new SetCardInfo("Pouncing Shoreshark", 64, Rarity.UNCOMMON, mage.cards.p.PouncingShoreshark.class));
|
||||
cards.add(new SetCardInfo("Primal Empathy", 200, Rarity.UNCOMMON, mage.cards.p.PrimalEmpathy.class));
|
||||
cards.add(new SetCardInfo("Proud Wildbonder", 229, Rarity.UNCOMMON, mage.cards.p.ProudWildbonder.class));
|
||||
|
|
Loading…
Add table
Reference in a new issue