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:
parent
f5bda95372
commit
41cc36de83
@ -2867,7 +2867,7 @@ void SpellProcess::CheckRemoveTargetFromSpell(LuaSpell* spell, bool allow_delete
|
||||
MRemoveTargetList.releasewritelock(__FUNCTION__, __LINE__);
|
||||
}
|
||||
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;
|
||||
dropped_lock = true;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user