20 lines
699 B
Groovy
20 lines
699 B
Groovy
[
|
|
new MagicSpellCardEvent() {
|
|
@Override
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
cardOnStack,
|
|
this,
|
|
"Prevent all combat damage that would be dealt to you this turn. Populate."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(
|
|
final MagicGame game,
|
|
final MagicEvent event) {
|
|
game.doAction(new MagicChangePlayerStateAction(event.getPlayer(),MagicPlayerState.PreventAllCombatDamage));
|
|
game.addEvent(new MagicPopulateEvent(event.getSource()));
|
|
}
|
|
}
|
|
]
|