From 376b04a37ba60aaab8e3a543d138549c8d05ab98 Mon Sep 17 00:00:00 2001 From: Natedog2012 Date: Mon, 19 Oct 2015 10:05:20 -0700 Subject: [PATCH] Allow ModifyNPCStat to change an NPCs spell list --- zone/npc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/zone/npc.cpp b/zone/npc.cpp index effd04a4a..cd20c3eb7 100644 --- a/zone/npc.cpp +++ b/zone/npc.cpp @@ -1978,6 +1978,7 @@ void NPC::ModifyNPCStat(const char *identifier, const char *newValue) else if(id == "loottable_id") { loottable_id = atof(val.c_str()); return; } else if(id == "healscale") { healscale = atof(val.c_str()); return; } else if(id == "spellscale") { spellscale = atof(val.c_str()); return; } + else if(id == "npc_spells_id") { AI_AddNPCSpells(atoi(val.c_str())); return; } } void NPC::LevelScale() {