Skip to content

Commit

Permalink
NPCBots: Fix a crash from null caster dereference in `AuraEffect::Han…
Browse files Browse the repository at this point in the history
…dlePeriodicDamageAurasTick`

(cherry picked from commit 169cbfcbc5e2967caf77b6dd1a02b7d586219374)
  • Loading branch information
trickerer committed Nov 18, 2024
1 parent 603e2b5 commit 4e6bcca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Spells/Auras/SpellAuraEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6783,7 +6783,7 @@ void AuraEffect::HandlePeriodicDamageAurasTick(Unit* target, Unit* caster) const
damage = Unit::SpellCriticalDamageBonus(caster, m_spellInfo, damage, target);

//NpcBot mod: apply bot damage mods
if (caster->IsNPCBotOrPet())
if (caster && caster->IsNPCBotOrPet())
{
SpellNonMeleeDamage damageInfo(caster, target, m_spellInfo, m_spellInfo->GetSchoolMask());
int32 idamage = damage;
Expand Down

0 comments on commit 4e6bcca

Please sign in to comment.