mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-09 20:31:28 +01:00
Allow custom amounts of lives lost for group lives
This commit is contained in:
parent
3d14c0ba24
commit
e6055dd4f0
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user