mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
[DSK] Implement Growing Dread
This commit is contained in:
parent
67702582a2
commit
b68a5aca58
2 changed files with 77 additions and 0 deletions
76
Mage.Sets/src/mage/cards/g/GrowingDread.java
Normal file
76
Mage.Sets/src/mage/cards/g/GrowingDread.java
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.effects.keyword.ManifestDreadEffect;
|
||||
import mage.abilities.keyword.FlashAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class GrowingDread extends CardImpl {
|
||||
|
||||
public GrowingDread(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{G}{U}");
|
||||
|
||||
// Flash
|
||||
this.addAbility(FlashAbility.getInstance());
|
||||
|
||||
// When Growing Dread enters, manifest dread.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new ManifestDreadEffect()));
|
||||
|
||||
// Whenever you turn a permanent face up, put a +1/+1 counter on it.
|
||||
this.addAbility(new GrowingDreadTriggeredAbility());
|
||||
}
|
||||
|
||||
private GrowingDread(final GrowingDread card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GrowingDread copy() {
|
||||
return new GrowingDread(this);
|
||||
}
|
||||
}
|
||||
|
||||
class GrowingDreadTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
GrowingDreadTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.P1P1.createInstance()).setText("put a +1/+1 counter on it"));
|
||||
setTriggerPhrase("Whenever you turn a permanent face up, ");
|
||||
}
|
||||
|
||||
private GrowingDreadTriggeredAbility(final GrowingDreadTriggeredAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GrowingDreadTriggeredAbility copy() {
|
||||
return new GrowingDreadTriggeredAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkEventType(GameEvent event, Game game) {
|
||||
return event.getType() == GameEvent.EventType.TURNED_FACE_UP;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (isControlledBy(event.getPlayerId())) {
|
||||
this.getEffects().setTargetPointer(new FixedTarget(event.getTargetId(), game));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
@ -68,6 +68,7 @@ public final class DuskmournHouseOfHorror extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Glimmer Seeker", 14, Rarity.UNCOMMON, mage.cards.g.GlimmerSeeker.class));
|
||||
cards.add(new SetCardInfo("Gloomlake Verge", 260, Rarity.RARE, mage.cards.g.GloomlakeVerge.class));
|
||||
cards.add(new SetCardInfo("Grasping Longneck", 180, Rarity.COMMON, mage.cards.g.GraspingLongneck.class));
|
||||
cards.add(new SetCardInfo("Growing Dread", 216, Rarity.UNCOMMON, mage.cards.g.GrowingDread.class));
|
||||
cards.add(new SetCardInfo("Hand That Feeds", 139, Rarity.COMMON, mage.cards.h.HandThatFeeds.class));
|
||||
cards.add(new SetCardInfo("House Cartographer", 185, Rarity.UNCOMMON, mage.cards.h.HouseCartographer.class));
|
||||
cards.add(new SetCardInfo("Hushwood Verge", 261, Rarity.RARE, mage.cards.h.HushwoodVerge.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue