Skip to content

Commit

Permalink
Spell: Add safeguard against affect checking nullptr spell
Browse files Browse the repository at this point in the history
Case for scripting melee affect using override scripts
  • Loading branch information
killerwife committed Sep 16, 2023
1 parent 020b7fa commit 139ceb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game/Spells/SpellAuras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,9 @@ bool Aura::isAffectedOnSpell(SpellEntry const* spellProto) const
if (m_affectOverriden)
return OnAffectCheck(spellProto);

if (!spellProto)
return false;

if (m_spellmod)
return m_spellmod->isAffectedOnSpell(spellProto);

Expand Down

0 comments on commit 139ceb0

Please sign in to comment.