forked from External/mage
[MH3] Implement Psychic Frog
This commit is contained in:
parent
6c77f9fd3b
commit
3aba74306c
2 changed files with 60 additions and 0 deletions
59
Mage.Sets/src/mage/cards/p/PsychicFrog.java
Normal file
59
Mage.Sets/src/mage/cards/p/PsychicFrog.java
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
package mage.cards.p;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DealsCombatDamageToAPlayerOrPlaneswalkerTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.DiscardCardCost;
|
||||
import mage.abilities.costs.common.ExileFromGraveCost;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class PsychicFrog extends CardImpl {
|
||||
|
||||
public PsychicFrog(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{U}{B}");
|
||||
|
||||
this.subtype.add(SubType.FROG);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Whenever Psychic Frog deals combat damage to a player or planeswalker, draw a card.
|
||||
this.addAbility(new DealsCombatDamageToAPlayerOrPlaneswalkerTriggeredAbility(
|
||||
new DrawCardSourceControllerEffect(1), false
|
||||
));
|
||||
|
||||
// Discard a card: Put a +1/+1 counter on Psychic Frog.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new DiscardCardCost()
|
||||
));
|
||||
|
||||
// Exile three cards from your graveyard: Psychic Frog gains flying until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn),
|
||||
new ExileFromGraveCost(new TargetCardInYourGraveyard(3))
|
||||
));
|
||||
}
|
||||
|
||||
private PsychicFrog(final PsychicFrog card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PsychicFrog copy() {
|
||||
return new PsychicFrog(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -30,6 +30,7 @@ public final class ModernHorizons3 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Plains", 304, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Polluted Delta", 224, Rarity.RARE, mage.cards.p.PollutedDelta.class));
|
||||
cards.add(new SetCardInfo("Priest of Titania", 286, Rarity.UNCOMMON, mage.cards.p.PriestOfTitania.class));
|
||||
cards.add(new SetCardInfo("Psychic Frog", 199, Rarity.RARE, mage.cards.p.PsychicFrog.class));
|
||||
cards.add(new SetCardInfo("Swamp", 306, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Windswept Heath", 235, Rarity.RARE, mage.cards.w.WindsweptHeath.class));
|
||||
cards.add(new SetCardInfo("Wooded Foothills", 236, Rarity.RARE, mage.cards.w.WoodedFoothills.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue