fixed: Malignus p/t is half of max you and opponent's life total,

should be half of opponent's life total.

fixes issue 265.
master
melvin 2012-07-26 10:07:25 +08:00
parent ddbaeaac66
commit 8b0dbf66a8
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ public class Malignus {
final MagicGame game,
final MagicPlayer player,
final MagicPowerToughness pt) {
int amount = (int)Math.ceil(Math.max(player.getLife(),game.getOpponent(player).getLife()) / 2.0);
// floor((x + 1) / 2) == ceil(x / 2)
final int amount = (game.getOpponent(player).getLife() + 1) / 2;
pt.set(amount,amount);
}
};