forked from External/mage
* Stuffy Doll - Fixed that the damage effect won't be applied, if the player has already lost (FFA).
This commit is contained in:
parent
07af4000c5
commit
f07d003bc3
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue