replace groovy code with ability in card script
parent
d2a369065a
commit
ac59513243
|
@ -1,32 +0,0 @@
|
||||||
[
|
|
||||||
new MagicPermanentActivation(
|
|
||||||
new MagicActivationHints(MagicTiming.Pump,true),
|
|
||||||
"Deathtouch"
|
|
||||||
) {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
|
|
||||||
return [new MagicPayManaCostEvent(source,"{1}{B}")];
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
||||||
return new MagicEvent(
|
|
||||||
source,
|
|
||||||
MagicTargetChoice.TARGET_CREATURE_YOU_CONTROL,
|
|
||||||
MagicDeathtouchTargetPicker.getInstance(),
|
|
||||||
this,
|
|
||||||
"Target creature\$ you control gains deathtouch 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.Deathtouch));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
|
@ -7,5 +7,5 @@ type=Creature
|
||||||
subtype=Human,Wizard
|
subtype=Human,Wizard
|
||||||
cost={1}{B}
|
cost={1}{B}
|
||||||
pt=2/1
|
pt=2/1
|
||||||
timing=fmain
|
ability=pay {1}{B}: Target creature you control gains deathtouch until end of turn.
|
||||||
requires_groovy_code
|
timing=main
|
||||||
|
|
Loading…
Reference in New Issue