diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 4cc5b0575ce..d547b6fd3df 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -3359,7 +3359,7 @@ void AuraEffect::HandleAuraModStat(AuraApplication const* aurApp, uint8 mode, bo Unit* target = aurApp->GetTarget(); int32 spellGroupVal = target->GetHighestExclusiveSameEffectSpellGroupValue(this, SPELL_AURA_MOD_STAT, true, GetMiscValue()); - if (abs(spellGroupVal) >= abs(GetAmount())) + if (std::abs(spellGroupVal) >= std::abs(GetAmount())) return; for (int32 i = STAT_STRENGTH; i < MAX_STATS; ++i) @@ -4049,7 +4049,7 @@ void AuraEffect::HandleModCastingSpeed(AuraApplication const* aurApp, uint8 mode } int32 spellGroupVal = target->GetHighestExclusiveSameEffectSpellGroupValue(this, GetAuraType()); - if (abs(spellGroupVal) >= abs(GetAmount())) + if (std::abs(spellGroupVal) >= std::abs(GetAmount())) return; if (spellGroupVal) @@ -4078,7 +4078,7 @@ void AuraEffect::HandleModCombatSpeedPct(AuraApplication const* aurApp, uint8 mo Unit* target = aurApp->GetTarget(); int32 spellGroupVal = target->GetHighestExclusiveSameEffectSpellGroupValue(this, SPELL_AURA_MELEE_SLOW); - if (abs(spellGroupVal) >= abs(GetAmount())) + if (std::abs(spellGroupVal) >= std::abs(GetAmount())) return; if (spellGroupVal) @@ -4113,7 +4113,7 @@ void AuraEffect::HandleModMeleeSpeedPct(AuraApplication const* aurApp, uint8 mod //! ToDo: Haste auras with the same handler _CAN'T_ stack together Unit* target = aurApp->GetTarget(); int32 spellGroupVal = target->GetHighestExclusiveSameEffectSpellGroupValue(this, SPELL_AURA_MOD_MELEE_HASTE); - if (abs(spellGroupVal) >= abs(GetAmount())) + if (std::abs(spellGroupVal) >= std::abs(GetAmount())) return; if (spellGroupVal) |