1
0

if no targets left in the spell its ok to remove, flip the flag to just remove the maintained part of the spell

This commit is contained in:
Emagi 2025-01-31 20:06:45 -05:00
parent f5bda95372
commit 41cc36de83

View File

@ -2867,7 +2867,7 @@ void SpellProcess::CheckRemoveTargetFromSpell(LuaSpell* spell, bool allow_delete
MRemoveTargetList.releasewritelock(__FUNCTION__, __LINE__); MRemoveTargetList.releasewritelock(__FUNCTION__, __LINE__);
} }
if(found_target) if(found_target)
lua_interface->RemoveSpell(spell, true, false, !remove_spawn->Alive() ? "target_dead" : "target_removed", false, true, remove_spawn); lua_interface->RemoveSpell(spell, true, false, !remove_spawn->Alive() ? "target_dead" : "target_removed", false, false, remove_spawn);
should_delete = true; should_delete = true;
dropped_lock = true; dropped_lock = true;
break; break;