From 857e1f82e588752bb72e9e4f53269f763f305331 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 9 Jul 2017 10:35:30 +0200 Subject: [PATCH] * Raving Dead - Fixed that the damage from the triggered ability was rounded up instead of rounded down. --- Mage.Sets/src/mage/cards/r/RavingDead.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mage.Sets/src/mage/cards/r/RavingDead.java b/Mage.Sets/src/mage/cards/r/RavingDead.java index 31cbab970bf..5941f75e305 100644 --- a/Mage.Sets/src/mage/cards/r/RavingDead.java +++ b/Mage.Sets/src/mage/cards/r/RavingDead.java @@ -50,7 +50,7 @@ import mage.players.Player; public class RavingDead extends CardImpl { public RavingDead(UUID ownerId, CardSetInfo setInfo) { - super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{B}"); + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}"); this.subtype.add("Zombie"); this.power = new MageInt(2); @@ -78,7 +78,7 @@ class RavingDeadDamageEffect extends OneShotEffect { public RavingDeadDamageEffect() { super(Outcome.Damage); - this.staticText = "that player loses half his or her life, rounded up"; + this.staticText = "that player loses half his or her life, rounded down"; } public RavingDeadDamageEffect(final RavingDeadDamageEffect effect) { @@ -94,7 +94,7 @@ class RavingDeadDamageEffect extends OneShotEffect { public boolean apply(Game game, Ability source) { Player player = game.getPlayer(getTargetPointer().getFirst(game, source)); if (player != null) { - Integer amount = (int) Math.ceil(player.getLife() / 2f); + Integer amount = player.getLife() / 2; if (amount > 0) { player.loseLife(amount, game, false); }