magarena/release/Magarena/scripts/Village_Cannibals.groovy

26 lines
871 B
Groovy
Raw Normal View History

2013-05-17 20:53:43 -07:00
[
new MagicWhenOtherDiesTrigger() {
2013-04-12 19:32:25 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
return (permanent != otherPermanent &&
otherPermanent.isCreature() &&
otherPermanent.hasSubType(MagicSubType.Human)) ?
new MagicEvent(
permanent,
this,
2013-06-15 07:27:32 -07:00
"Put a +1/+1 counter on SN."
):
2013-04-12 19:32:25 -07:00
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:32:25 -07:00
game.doAction(new MagicChangeCountersAction(
2013-05-17 20:53:43 -07:00
event.getPermanent(),
MagicCounterType.PlusOne,
1,
true
));
2013-04-12 19:32:25 -07:00
}
2013-05-17 20:53:43 -07:00
}
]