mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Bubbling Cauldron - Fixed that the life loss was wrongly implemented as damage.
This commit is contained in:
parent
821398211b
commit
71f987de2e
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue