mirror of
https://github.com/correl/mage.git
synced 2025-01-12 03:00:13 +00:00
[MOM] Implement Norn's Inquisitor
This commit is contained in:
parent
0d726f2a37
commit
5d412fb2a6
2 changed files with 86 additions and 0 deletions
85
Mage.Sets/src/mage/cards/n/NornsInquisitor.java
Normal file
85
Mage.Sets/src/mage/cards/n/NornsInquisitor.java
Normal file
|
@ -0,0 +1,85 @@
|
|||
package mage.cards.n;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.effects.keyword.IncubateEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class NornsInquisitor extends CardImpl {
|
||||
|
||||
public NornsInquisitor(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}");
|
||||
|
||||
this.subtype.add(SubType.PHYREXIAN);
|
||||
this.subtype.add(SubType.KNIGHT);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Norn's Inquisitor enters the battlefield, incubate 2.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new IncubateEffect(2)));
|
||||
|
||||
// Whenever a permanent you control transforms into a Phyrexian, put a +1/+1 counter on it.
|
||||
this.addAbility(new NornsInquisitorTriggeredAbility());
|
||||
}
|
||||
|
||||
private NornsInquisitor(final NornsInquisitor card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NornsInquisitor copy() {
|
||||
return new NornsInquisitor(this);
|
||||
}
|
||||
}
|
||||
|
||||
class NornsInquisitorTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
public NornsInquisitorTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.P1P1.createInstance()), false);
|
||||
}
|
||||
|
||||
public NornsInquisitorTriggeredAbility(final NornsInquisitorTriggeredAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NornsInquisitorTriggeredAbility copy() {
|
||||
return new NornsInquisitorTriggeredAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkEventType(GameEvent event, Game game) {
|
||||
return event.getType() == GameEvent.EventType.TRANSFORMED;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
Permanent permanent = game.getPermanent(event.getTargetId());
|
||||
if (permanent == null || !permanent.hasSubtype(SubType.PHYREXIAN, game)) {
|
||||
return false;
|
||||
}
|
||||
this.getEffects().setTargetPointer(new FixedTarget(permanent, game));
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Whenever a permanent you control transforms into a Phyrexian, put a +1/+1 counter on it.";
|
||||
}
|
||||
}
|
|
@ -72,6 +72,7 @@ public final class MarchOfTheMachine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Mountain", 280, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Mutagen Connoisseur", 248, Rarity.UNCOMMON, mage.cards.m.MutagenConnoisseur.class));
|
||||
cards.add(new SetCardInfo("Negate", 68, Rarity.COMMON, mage.cards.n.Negate.class));
|
||||
cards.add(new SetCardInfo("Norn's Inquisitor", 29, Rarity.UNCOMMON, mage.cards.n.NornsInquisitor.class));
|
||||
cards.add(new SetCardInfo("Omen Hawker", 70, Rarity.UNCOMMON, mage.cards.o.OmenHawker.class));
|
||||
cards.add(new SetCardInfo("Oracle of Tragedy", 71, Rarity.UNCOMMON, mage.cards.o.OracleOfTragedy.class));
|
||||
cards.add(new SetCardInfo("Phyrexian Gargantua", 121, Rarity.UNCOMMON, mage.cards.p.PhyrexianGargantua.class));
|
||||
|
|
Loading…
Reference in a new issue