replace groovy code with ability in card script
parent
1b08e9b9df
commit
8713bd12e5
|
@ -1,23 +0,0 @@
|
|||
[
|
||||
new MagicSpellCardEvent() {
|
||||
@Override
|
||||
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
||||
return new MagicEvent(
|
||||
cardOnStack,
|
||||
MagicTargetChoice.POS_TARGET_CREATURE,
|
||||
MagicIndestructibleTargetPicker.create(),
|
||||
this,
|
||||
"Target creature\$ gains indestructible until end of turn."
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
||||
event.processTargetPermanent(game,new MagicPermanentAction() {
|
||||
public void doAction(final MagicPermanent creature) {
|
||||
game.doAction(new MagicGainAbilityAction(creature,MagicAbility.Indestructible));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
]
|
|
@ -5,5 +5,5 @@ value=3.331
|
|||
rarity=C
|
||||
type=Instant
|
||||
cost={G}
|
||||
effect=Target creature gains indestructible until end of turn.
|
||||
timing=pump
|
||||
requires_groovy_code
|
||||
|
|
Loading…
Reference in New Issue