Update SpellProcess.cpp

This commit is contained in:
Emagi 2025-06-17 08:42:31 -04:00
parent f71807da37
commit f03069a475

View File

@ -3069,10 +3069,10 @@ void SpellProcess::AddSelfAndPetToCharTargets(LuaSpell* spell, Spawn* caster, bo
void SpellProcess::DeleteActiveSpell(LuaSpell* spell, bool skipRemoveCurrent) { void SpellProcess::DeleteActiveSpell(LuaSpell* spell, bool skipRemoveCurrent) {
lua_interface->SetLuaUserDataStale(spell); lua_interface->SetLuaUserDataStale(spell);
if(!skipRemoveCurrent) if(!skipRemoveCurrent) {
lua_interface->RemoveCurrentSpell(spell->state, spell, true); lua_interface->RemoveCurrentSpell(spell->state, spell, true);
lua_interface->DeletePendingSpell(spell);
lua_interface->DeletePendingSpell(spell); }
active_spells.Remove(spell, true, 10000); active_spells.Remove(spell, true, 10000);
} }