Kick for using Dirt Rod now checks if player is imure to kicking

Remove nades and added sticky bombs for explosives thrown check
This commit is contained in:
ricky 2011-06-08 18:46:01 +10:00
parent 14ec2634fa
commit 673359653f

View file

@ -387,7 +387,7 @@ namespace TShockAPI
byte owner = br.ReadByte();
byte type = br.ReadByte();
if (type == 29 || type == 28 || type == 30)
if (type == 29 || type == 28 || type == 37)
{
return Tools.HandleExplosivesUser(e.Msg.whoAmI, "Throwing an explosive device.");
}
@ -436,8 +436,7 @@ namespace TShockAPI
if (Main.player[e.Msg.whoAmI].selectedItem == 0x72) //Dirt Rod
{
Tools.ForceKick(e.Msg.whoAmI, "Using dirt rod");
return true;
return Tools.Kick(e.Msg.whoAmI, "Using dirt rod");
}
int plyX = Math.Abs((int)Main.player[e.Msg.whoAmI].position.X / 16);