mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[11459] More ObjectGuid using in Aura/SpellAuraHolder code.
Also fix build in PetAI code. Thanks to rsa for fix code.
This commit is contained in:
parent
151e5eae9c
commit
44f2c26389
15 changed files with 104 additions and 96 deletions
|
|
@ -160,7 +160,7 @@ void DynamicObject::Delay(int32 delaytime)
|
|||
Unit *target = GetMap()->GetUnit((*iter));
|
||||
if (target)
|
||||
{
|
||||
SpellAuraHolder *holder = target->GetSpellAuraHolder(m_spellId, GetCasterGuid().GetRawValue());
|
||||
SpellAuraHolder *holder = target->GetSpellAuraHolder(m_spellId, GetCasterGuid());
|
||||
if (!holder)
|
||||
{
|
||||
++iter;
|
||||
|
|
@ -183,7 +183,7 @@ void DynamicObject::Delay(int32 delaytime)
|
|||
continue;
|
||||
}
|
||||
|
||||
target->DelaySpellAuraHolder(m_spellId, delaytime, GetCasterGuid().GetRawValue());
|
||||
target->DelaySpellAuraHolder(m_spellId, delaytime, GetCasterGuid());
|
||||
++iter;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue