Split permission to hurt NPCs

This commit is contained in:
MarioE 2014-06-24 16:01:24 -04:00
parent 10634c4621
commit bcebc2efc5
2 changed files with 5 additions and 2 deletions

View file

@ -3158,9 +3158,9 @@ namespace TShockAPI
return true;
}
if (Main.npc[id].townNPC && !args.Player.Group.HasPermission(Permissions.movenpc))
if (Main.npc[id].townNPC && !args.Player.Group.HasPermission(Permissions.hurttownnpc))
{
args.Player.SendMessage( "You don't have permission to move this NPC.", Color.Yellow);
args.Player.SendErrorMessage("You do not have permission to hurt this NPC.");
args.Player.SendData(PacketTypes.NpcUpdate, "", id);
return true;
}