diff options
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index ea0aaeebd35..dc5dbe6b4ea 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1196,7 +1196,10 @@ void Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask) if (GetSpellDuration(i->first)==-1) // get duration from aura-only once if (!_duration) - _duration = unit->GetAuraByCasterSpell(m_spellInfo->Id, m_caster->GetGUID())->GetAuraDuration(); + { + Aura * aur = unit->GetAuraByCasterSpell(m_spellInfo->Id, m_caster->GetGUID()); + _duration = aur ? aur->GetAuraDuration() : -1; + } unit->SetAurasDurationByCasterSpell(i->first->Id, m_caster->GetGUID(), _duration); } } |