diff options
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r-- | src/game/SpellAuras.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 901adfd2443..1017e7d26d3 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -558,8 +558,13 @@ void Aura::UpdateOwner(uint32 diff, WorldObject * owner) Player * modOwner = NULL; if (caster) { - if ((modOwner = caster->GetSpellModOwner()) && (modSpell = modOwner->FindCurrentSpellBySpellId(GetId()))) - modOwner->SetSpellModTakingSpell(modSpell, true); + modOwner = caster->GetSpellModOwner(); + if (modOwner) + { + modSpell = modOwner->FindCurrentSpellBySpellId(GetId()); + if (modSpell) + modOwner->SetSpellModTakingSpell(modSpell, true); + } } Update(diff, caster); |