active spells updates
This commit is contained in:
parent
1b2983d376
commit
e7a187cf86
@ -445,9 +445,6 @@ bool SpellProcess::DeleteCasterSpell(LuaSpell* spell, string reason, bool removi
|
|||||||
return target_valid;
|
return target_valid;
|
||||||
}
|
}
|
||||||
spell->MSpellTargets.releasewritelock(__FUNCTION__, __LINE__);
|
spell->MSpellTargets.releasewritelock(__FUNCTION__, __LINE__);
|
||||||
|
|
||||||
if (active_spells.count(spell) > 0)
|
|
||||||
active_spells.Remove(spell);
|
|
||||||
if (!zone_shutting_down && spell->caster) { // spell->caster ptr cannot be trusted during zone shutdown
|
if (!zone_shutting_down && spell->caster) { // spell->caster ptr cannot be trusted during zone shutdown
|
||||||
if(spell->caster->GetThreatTransfer() && spell->caster->GetThreatTransfer()->Spell == spell) {
|
if(spell->caster->GetThreatTransfer() && spell->caster->GetThreatTransfer()->Spell == spell) {
|
||||||
spell->caster->SetThreatTransfer(nullptr);
|
spell->caster->SetThreatTransfer(nullptr);
|
||||||
@ -3023,7 +3020,7 @@ void SpellProcess::AddSelfAndPetToCharTargets(LuaSpell* spell, Spawn* caster, bo
|
|||||||
|
|
||||||
void SpellProcess::DeleteActiveSpell(LuaSpell* spell) {
|
void SpellProcess::DeleteActiveSpell(LuaSpell* spell) {
|
||||||
lua_interface->RemoveCurrentSpell(spell->state, spell, true);
|
lua_interface->RemoveCurrentSpell(spell->state, spell, true);
|
||||||
active_spells.Remove(spell, true);
|
active_spells.Remove(spell, true, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SpellProcess::AddLuaSpellTarget(LuaSpell* lua_spell, int32 id, bool lock_spell_targets) {
|
bool SpellProcess::AddLuaSpellTarget(LuaSpell* lua_spell, int32 id, bool lock_spell_targets) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user