Core/Unit: fixed crash
This commit is contained in:
1 parent
fd228f6c41
commit
6fc5bfcd08
4 files changed
+6
-6
No files matched your search
@@ -12849,10 +12849,10 @@ bool Unit::CanApplyResilience() const
|
||||
*damage -= target->GetDamageReduction(*damage);
|
||||
}
|
||||
|
||||
int32 Unit::CalculateAOEAvoidance(int32 damage, uint32 schoolMask, Unit* caster) const
|
||||
int32 Unit::CalculateAOEAvoidance(int32 damage, uint32 schoolMask, ObjectGuid const& casterGuid) const
|
||||
{
|
||||
damage = int32(float(damage) * GetTotalAuraMultiplierByMiscMask(SPELL_AURA_MOD_AOE_DAMAGE_AVOIDANCE, schoolMask));
|
||||
if (caster->GetTypeId() == TYPEID_UNIT)
|
||||
if (casterGuid.IsAnyTypeCreature())
|
||||
damage = int32(float(damage) * GetTotalAuraMultiplierByMiscMask(SPELL_AURA_MOD_CREATURE_AOE_DAMAGE_AVOIDANCE, schoolMask));
|
||||
|
||||
return damage;
|
||||
|
||||
Reference in new issue
Block a user