mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
More warning removal (Some code modifications and cleanup when needed)
--HG-- branch : trunk
This commit is contained in:
@@ -557,9 +557,12 @@ void Aura::UpdateOwner(uint32 diff, WorldObject * owner)
|
||||
Spell * modSpell = NULL;
|
||||
Player * modOwner = NULL;
|
||||
if (caster)
|
||||
if ((modOwner = caster->GetSpellModOwner())
|
||||
&& (modSpell = modOwner->FindCurrentSpellBySpellId(GetId())))
|
||||
modOwner->SetSpellModTakingSpell(modSpell, true);
|
||||
{
|
||||
modOwner = caster->GetSpellModOwner();
|
||||
modSpell = modOwner->FindCurrentSpellBySpellId(GetId());
|
||||
if (modOwner && modSpell)
|
||||
modOwner->SetSpellModTakingSpell(modSpell, true);
|
||||
}
|
||||
|
||||
Update(diff, caster);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user