From ba23be0236cd8510abca7627e151e499fe5d879f Mon Sep 17 00:00:00 2001 From: Zack Piispanen Date: Sat, 5 Oct 2013 17:08:31 -0400 Subject: [PATCH] If health is dead, then kill the player. --- TShockAPI/GetDataHandlers.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 2e5640d3..ae73b891 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -1333,6 +1333,9 @@ namespace TShockAPI args.Player.Heal(args.TPlayer.statLifeMax); } + if (cur <= 0) + TSPlayer.All.SendData(PacketTypes.PlayerKillMe, "attempt at aboose", args.TPlayer.whoAmi); + return false; }