Fix (non-existant?) /butcher bug

This commit is contained in:
Deathmax 2011-12-04 15:55:02 +08:00
parent accfedfd0b
commit 77b9fcaf98

View file

@ -2347,7 +2347,7 @@ namespace TShockAPI
int killcount = 0; int killcount = 0;
for (int i = 0; i < Main.npc.Length; i++) for (int i = 0; i < Main.npc.Length; i++)
{ {
if (Main.npc[i].active && !Main.npc[i].townNPC && (!Main.npc[i].friendly || killFriendly)) if (Main.npc[i].active && Main.npc[i].type != 0 && !Main.npc[i].townNPC && (!Main.npc[i].friendly || killFriendly))
{ {
TSPlayer.Server.StrikeNPC(i, 99999, 90f, 1); TSPlayer.Server.StrikeNPC(i, 99999, 90f, 1);
killcount++; killcount++;