Add script for Noxious Hatchling

master
Jericho Pumpkin 2013-10-21 19:26:41 +00:00
parent 16ec736fec
commit 5ccd71cbc2
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,38 @@
[
new MagicWhenOtherSpellIsCastTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCardOnStack cardOnStack) {
return (permanent.isFriend(cardOnStack) &&
cardOnStack.hasColor(MagicColor.Black) &&
permanent.getCounters(MagicCounterType.MinusOne) > 0) ?
new MagicEvent(
permanent,
this,
"Remove a -1/-1 counter on SN."
):
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeCountersAction(event.getPermanent(),MagicCounterType.MinusOne,-1,true));
}
},
new MagicWhenOtherSpellIsCastTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCardOnStack cardOnStack) {
return (permanent.isFriend(cardOnStack) &&
cardOnStack.hasColor(MagicColor.Green) &&
permanent.getCounters(MagicCounterType.MinusOne) > 0) ?
new MagicEvent(
permanent,
this,
"Remove a -1/-1 counter on SN."
):
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeCountersAction(event.getPermanent(),MagicCounterType.MinusOne,-1,true));
}
}
]

View File

@ -0,0 +1,13 @@
name=Noxious Hatchling
url=http://magiccards.info/eve/en/124.html
image=http://magiccards.info/scans/en/eve/124.jpg
value=3.513
rarity=U
type=Creature
subtype=Elemental
cost={3}{B/G}
ability=wither;enters with -1/-1 4
pt=6/6
timing=main
requires_groovy_code