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
parent
ddbaeaac66
commit
8b0dbf66a8
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue