From 1702e12c4a2c327f5312decada7c95d4d55b3ded Mon Sep 17 00:00:00 2001 From: Shank Date: Mon, 6 Jun 2011 02:29:09 -0600 Subject: [PATCH] Testing PlayerDamage lock --- TShockAPI/TShock.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index d1e27fd5..08a1709c 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -405,6 +405,9 @@ namespace TShockAPI byte direction = br.ReadByte(); Int16 damage = br.ReadInt16(); byte pvp = br.ReadByte(); + + if (!Main.player[playerid].hostile) + e.Handled = true; } } else if (e.MsgID == 0x30)