Command #repop will clear NPC spell cache now

This commit is contained in:
Michael Cook (mackal)
2018-02-02 20:18:40 -05:00
parent 2ed185aa2c
commit 85bafecc93
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -1437,6 +1437,9 @@ bool Zone::Depop(bool StartSpawnTimer) {
npctable.erase(itr);
}
// clear spell cache
database.ClearNPCSpells();
return true;
}
+1
View File
@@ -427,6 +427,7 @@ public:
DBnpcspells_Struct* GetNPCSpells(uint32 iDBSpellsID);
DBnpcspellseffects_Struct* GetNPCSpellsEffects(uint32 iDBSpellsEffectsID);
void ClearNPCSpells() { npc_spells_cache.clear(); npc_spells_loadtried.clear(); }
const NPCType* LoadNPCTypesData(uint32 id, bool bulk_load = false);
/* Mercs */