forked from External/mage
[MKM] Implement Galvanize
This commit is contained in:
parent
6e4a40dacc
commit
e2ff54b3d3
2 changed files with 39 additions and 0 deletions
38
Mage.Sets/src/mage/cards/g/Galvanize.java
Normal file
38
Mage.Sets/src/mage/cards/g/Galvanize.java
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import mage.abilities.condition.common.DrewTwoOrMoreCardsCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class Galvanize extends CardImpl {
|
||||
|
||||
public Galvanize(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{R}");
|
||||
|
||||
// Galvanize deals 3 damage to target creature. If you've drawn two or more cards this turn, Galvanize deals 5 damage to that creature instead.
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new DamageTargetEffect(5), new DamageTargetEffect(3),
|
||||
DrewTwoOrMoreCardsCondition.instance, "{this} deals 3 damage to target creature. " +
|
||||
"If you've drawn two or more cards this turn, {this} deals 5 damage to that creature instead"
|
||||
));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
}
|
||||
|
||||
private Galvanize(final Galvanize card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Galvanize copy() {
|
||||
return new Galvanize(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -34,6 +34,7 @@ public final class MurdersAtKarlovManor extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Elegant Parlor", 260, Rarity.RARE, mage.cards.e.ElegantParlor.class));
|
||||
cards.add(new SetCardInfo("Fanatical Strength", 159, Rarity.COMMON, mage.cards.f.FanaticalStrength.class));
|
||||
cards.add(new SetCardInfo("Forest", 276, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS));
|
||||
cards.add(new SetCardInfo("Galvanize", 128, Rarity.COMMON, mage.cards.g.Galvanize.class));
|
||||
cards.add(new SetCardInfo("Gleaming Geardrake", 205, Rarity.UNCOMMON, mage.cards.g.GleamingGeardrake.class));
|
||||
cards.add(new SetCardInfo("Hedge Maze", 262, Rarity.RARE, mage.cards.h.HedgeMaze.class));
|
||||
cards.add(new SetCardInfo("Hotshot Investigators", 60, Rarity.COMMON, mage.cards.h.HotshotInvestigators.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue