* Raving Dead - Fixed that the damage from the triggered ability was rounded up instead of rounded down.
@@ -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);
}
