Core/Spells: check for a caster pointer when calculating periodic aura amounts
This commit is contained in:
1 parent
79be4cd68c
commit
da7f063b19
1 file changed
+2
-2
@@ -595,11 +595,11 @@ int32 AuraEffect::CalculateAmount(Unit* caster)
|
||||
}
|
||||
case SPELL_AURA_PERIODIC_DAMAGE:
|
||||
case SPELL_AURA_PERIODIC_LEECH:
|
||||
if (GetBase()->GetType() == UNIT_AURA_TYPE)
|
||||
if (caster && GetBase()->GetType() == UNIT_AURA_TYPE)
|
||||
amount = caster->SpellDamageBonusDone(GetBase()->GetUnitOwner(), GetSpellInfo(), amount, DOT, GetEffIndex());
|
||||
break;
|
||||
case SPELL_AURA_PERIODIC_HEAL:
|
||||
if (GetBase()->GetType() == UNIT_AURA_TYPE)
|
||||
if (caster && GetBase()->GetType() == UNIT_AURA_TYPE)
|
||||
amount = caster->SpellHealingBonusDone(GetBase()->GetUnitOwner(), GetSpellInfo(), amount, DOT, GetEffIndex());
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user