mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-06 10:22:26 +00:00
Command #repop will clear NPC spell cache now
This commit is contained in:
parent
2ed185aa2c
commit
85bafecc93
@ -1437,6 +1437,9 @@ bool Zone::Depop(bool StartSpawnTimer) {
|
|||||||
npctable.erase(itr);
|
npctable.erase(itr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// clear spell cache
|
||||||
|
database.ClearNPCSpells();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -427,6 +427,7 @@ public:
|
|||||||
|
|
||||||
DBnpcspells_Struct* GetNPCSpells(uint32 iDBSpellsID);
|
DBnpcspells_Struct* GetNPCSpells(uint32 iDBSpellsID);
|
||||||
DBnpcspellseffects_Struct* GetNPCSpellsEffects(uint32 iDBSpellsEffectsID);
|
DBnpcspellseffects_Struct* GetNPCSpellsEffects(uint32 iDBSpellsEffectsID);
|
||||||
|
void ClearNPCSpells() { npc_spells_cache.clear(); npc_spells_loadtried.clear(); }
|
||||||
const NPCType* LoadNPCTypesData(uint32 id, bool bulk_load = false);
|
const NPCType* LoadNPCTypesData(uint32 id, bool bulk_load = false);
|
||||||
|
|
||||||
/* Mercs */
|
/* Mercs */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user