Target Dummies no longer get butchered by /butcher. Fixes #1025
This commit is contained in:
parent
6f0a23c8fc
commit
e8ce773fdb
1 changed files with 2 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using TShockAPI.DB;
|
||||
using TerrariaApi.Server;
|
||||
using TShockAPI.Hooks;
|
||||
|
|
@ -5003,7 +5004,7 @@ namespace TShockAPI
|
|||
int kills = 0;
|
||||
for (int i = 0; i < Main.npc.Length; i++)
|
||||
{
|
||||
if (Main.npc[i].active && ((npcId == 0 && !Main.npc[i].townNPC) || Main.npc[i].netID == npcId))
|
||||
if (Main.npc[i].active && ((npcId == 0 && !Main.npc[i].townNPC && Main.npc[i].netID != NPCID.TargetDummy) || Main.npc[i].netID == npcId))
|
||||
{
|
||||
TSPlayer.Server.StrikeNPC(i, 99999, 0, 0);
|
||||
kills++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue