1
0

DoT/DD stacking with timers were causing lua state overruns, lua state was being removed from spell too early"

This commit is contained in:
Emagi 2024-12-02 09:19:28 -05:00
parent d7d82c71fb
commit a736e1865f

View File

@ -222,7 +222,7 @@ void SpellProcess::Process(){
if (cast_timer->delete_timer) { if (cast_timer->delete_timer) {
safe_delete(cast_timer->timer); safe_delete(cast_timer->timer);
if(cast_timer->spell && !cast_timer->spell->has_proc) { if(cast_timer->spell && !cast_timer->spell->has_proc) {
lua_interface->RemoveCurrentSpell(cast_timer->spell->state, cast_timer->spell, true, false); lua_interface->RemoveCurrentSpell(cast_timer->spell->state, cast_timer->spell, true, false, false);
} }
cast_timers.Remove(cast_timer, true); cast_timers.Remove(cast_timer, true);
} }