* Bubbling Cauldron - Fixed that the life loss was wrongly implemented as damage.

This commit is contained in:
LevelX2 2014-08-17 02:16:31 +02:00
parent 821398211b
commit 71f987de2e

View file

@ -43,6 +43,7 @@ import mage.constants.Zone;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.predicate.mageobject.NamePredicate;
import mage.game.Game;
import mage.players.Player;
import mage.target.common.TargetControlledCreaturePermanent;
/**
@ -96,7 +97,8 @@ class BubblingCauldronEffect extends OneShotEffect {
public boolean apply(Game game, Ability source) {
int damage = 0;
for (UUID opponentId: game.getOpponents(source.getControllerId())) {
damage += game.getPlayer(opponentId).damage(4, source.getSourceId(), game, false, true);
Player opponent = game.getPlayer(opponentId);
damage += opponent.loseLife(4, game);
}
game.getPlayer(source.getControllerId()).gainLife(damage, game);
return true;
@ -107,4 +109,4 @@ class BubblingCauldronEffect extends OneShotEffect {
return new BubblingCauldronEffect(this);
}
}
}