Update SpellProcess.cpp
This commit is contained in:
parent
f71807da37
commit
f03069a475
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user