Fix self-inflicted damage if not in PvP

This commit is contained in:
MarioE 2013-11-11 11:40:57 -05:00
parent 6a4e7584a0
commit bfe1244fba

View file

@ -3082,7 +3082,7 @@ namespace TShockAPI
return true;
}
if (!TShock.Players[id].TPlayer.hostile && pvp)
if (!TShock.Players[id].TPlayer.hostile && pvp && id != args.Player.Index)
{
args.Player.SendData(PacketTypes.PlayerHp, "", id);
args.Player.SendData(PacketTypes.PlayerUpdate, "", id);