26 lines
1007 B
Groovy
26 lines
1007 B
Groovy
[
|
|
new MagicSpellCardEvent() {
|
|
@Override
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
cardOnStack,
|
|
this,
|
|
"Creatures PN controls get +1/+1 until end of turn. " +
|
|
"If you control a Kithkin, draw a card."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
final Collection<MagicPermanent> targets = game.filterPermanents(
|
|
event.getPlayer(),
|
|
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
|
|
for (final MagicPermanent target : targets) {
|
|
game.doAction(new MagicChangeTurnPTAction(target,1,1));
|
|
}
|
|
if(event.getPlayer().getNrOfPermanents(MagicSubType.Kithkin) > 0){
|
|
game.doAction(new MagicDrawAction(event.getPlayer()));
|
|
}
|
|
}
|
|
}
|
|
]
|