fix scripts and requires
parent
f7de6a3a75
commit
42190a47eb
|
@ -7,4 +7,4 @@ rarity=C
|
||||||
type=Instant
|
type=Instant
|
||||||
cost={3}{U}
|
cost={3}{U}
|
||||||
timing=removal
|
timing=removal
|
||||||
requires_card_code=Time Ebb
|
requires_groovy_code=Time Ebb
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
final MagicPlayer player,
|
final MagicPlayer player,
|
||||||
final MagicPowerToughness pt) {
|
final MagicPowerToughness pt) {
|
||||||
// floor((x + 1) / 2) == ceil(x / 2)
|
// floor((x + 1) / 2) == ceil(x / 2)
|
||||||
final int amount = (player.getOpponent().getLife() + 1) / 2;
|
final int amount = (int)(player.getOpponent().getLife() + 1) / 2;
|
||||||
pt.set(amount,amount);
|
pt.set(amount,amount);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
MagicTargetChoice.POS_TARGET_CREATURE,
|
MagicTargetChoice.POS_TARGET_CREATURE,
|
||||||
MagicPumpTargetPicker.create(),
|
MagicPumpTargetPicker.create(),
|
||||||
this,
|
this,
|
||||||
"Target creature$ gets +" + amount + "/+" + amount + " until end of turn."
|
"Target creature\$ gets +" + amount + "/+" + amount + " until end of turn."
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue