Allow custom amounts of lives lost for group lives

This commit is contained in:
Daniel Saukel 2018-06-02 19:33:09 +02:00
parent 3d14c0ba24
commit e6055dd4f0

View File

@ -864,7 +864,7 @@ public class DGamePlayer extends DInstancePlayer {
} }
if (getDGroup() != null && dGroup.getLives() != -1) { if (getDGroup() != null && dGroup.getLives() != -1) {
dGroup.setLives(dGroup.getLives() - 1); dGroup.setLives(dGroup.getLives() - dPlayerDeathEvent.getLostLives());
gameWorld.sendMessage(DMessage.GROUP_DEATH.getMessage(getName(), dGroup.getName(), String.valueOf(dGroup.getLives()))); gameWorld.sendMessage(DMessage.GROUP_DEATH.getMessage(getName(), dGroup.getName(), String.valueOf(dGroup.getLives())));
} else { } else {