* Stuffy Doll - Fixed that the damage effect won't be applied, if the player has already lost (FFA).

This commit is contained in:
LevelX2 2013-10-14 07:50:09 +02:00
parent 07af4000c5
commit f07d003bc3

View file

@ -167,7 +167,7 @@ class StuffyDollGainLifeEffect extends OneShotEffect<StuffyDollGainLifeEffect> {
public boolean apply(Game game, Ability source) {
UUID playerId = (UUID) game.getState().getValue(source.getSourceId() + "_player");
Player player = game.getPlayer(playerId);
if (player != null) {
if (player != null && player.isInGame()) {
player.damage((Integer) this.getValue("damageAmount"), source.getId(), game, false, true);
}
return true;