Skip to content

Commit

Permalink
[MH3] Implement Psychic Frog
Browse files Browse the repository at this point in the history
  • Loading branch information
theelk801 committed Feb 24, 2024
1 parent 6c77f9f commit 3aba743
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
59 changes: 59 additions & 0 deletions Mage.Sets/src/mage/cards/p/PsychicFrog.java
Original file line number Diff line number Diff line change
@@ -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);
}
}
1 change: 1 addition & 0 deletions Mage.Sets/src/mage/sets/ModernHorizons3.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ private ModernHorizons3() {
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));
Expand Down

0 comments on commit 3aba743

Please sign in to comment.