mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Fix spellaura-crash
Fixes #1767, closes #1772 (and the other ones already merged into it) --HG-- branch : trunk
This commit is contained in:
@@ -558,9 +558,7 @@ void Aura::UpdateOwner(uint32 diff, WorldObject * owner)
|
||||
Player * modOwner = NULL;
|
||||
if (caster)
|
||||
{
|
||||
modOwner = caster->GetSpellModOwner();
|
||||
modSpell = modOwner->FindCurrentSpellBySpellId(GetId());
|
||||
if (modOwner && modSpell)
|
||||
if ((modOwner = caster->GetSpellModOwner()) && (modSpell = modOwner->FindCurrentSpellBySpellId(GetId())))
|
||||
modOwner->SetSpellModTakingSpell(modSpell, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user