Core/Unit: fixed crash

This commit is contained in:
ariel- authored and Ovahlord committed 2022-09-12 09:15:05 +02:00
1 parent fd228f6c41
commit 6fc5bfcd08
4 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -7864,7 +7864,7 @@ void Spell::DoAllEffectOnLaunchTarget(TargetInfo& targetInfo, float* multiplier)
{
if (m_spellInfo->Effects[i].IsTargetingArea() || m_spellInfo->Effects[i].IsAreaAuraEffect() || m_spellInfo->Effects[i].IsEffect(SPELL_EFFECT_PERSISTENT_AREA_AURA))
{
m_damage = unit->CalculateAOEAvoidance(m_damage, m_spellInfo->SchoolMask, m_caster);
m_damage = unit->CalculateAOEAvoidance(m_damage, m_spellInfo->SchoolMask, m_caster->GetGUID());
if (m_caster->GetTypeId() == TYPEID_PLAYER)
{