If health is dead, then kill the player.
This commit is contained in:
parent
4e6aef1ddc
commit
ba23be0236
1 changed files with 3 additions and 0 deletions
|
|
@ -1333,6 +1333,9 @@ namespace TShockAPI
|
||||||
args.Player.Heal(args.TPlayer.statLifeMax);
|
args.Player.Heal(args.TPlayer.statLifeMax);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cur <= 0)
|
||||||
|
TSPlayer.All.SendData(PacketTypes.PlayerKillMe, "attempt at aboose", args.TPlayer.whoAmi);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue