Add script for Noxious Hatchling
parent
16ec736fec
commit
5ccd71cbc2
|
@ -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));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue