diff --git a/release/Magarena/scripts/Death_Wind.groovy b/release/Magarena/scripts/Death_Wind.groovy index f34a7e4d3c..9fcef9b053 100644 --- a/release/Magarena/scripts/Death_Wind.groovy +++ b/release/Magarena/scripts/Death_Wind.groovy @@ -2,20 +2,20 @@ new MagicSpellCardEvent() { @Override public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) { - final int amount = payedCost.getX(); return new MagicEvent( cardOnStack, MagicTargetChoice.NEG_TARGET_CREATURE, new MagicWeakenTargetPicker(amount,amount), + payedCost.getX(), this, - "Target creature\$ gets -" + amount + "/-" + amount + " until end of turn." + "Target creature\$ gets -RN/-RN 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) { - final int X = event.getCardOnStack().getX(); + final int X = event.getRefInt(); game.doAction(new MagicChangeTurnPTAction(creature,-X,-X)); } });