aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-11-04 15:08:50 +0100
committerShauren <shauren.trinity@gmail.com>2023-11-04 15:08:50 +0100
commit4628622b1ba8904ef1c0d692fe37c5d2f60f1dba (patch)
treefb5302511eb586f7f508c23734b17da19927ed40 /src
parentecd54c07d8f9a2eb84e55a62b8d4543978a66910 (diff)
Core/Auras: Fixed SPELL_AURA_CHARGE_RECOVERY_AFFECTED_BY_HASTE_REGEN affecting unrelated spells
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellHistory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellHistory.cpp b/src/server/game/Spells/SpellHistory.cpp
index cad303e31a2..934345b137d 100644
--- a/src/server/game/Spells/SpellHistory.cpp
+++ b/src/server/game/Spells/SpellHistory.cpp
@@ -928,7 +928,7 @@ int32 SpellHistory::GetChargeRecoveryTime(uint32 chargeCategoryId) const
if (_owner->HasAuraType(SPELL_AURA_CHARGE_RECOVERY_AFFECTED_BY_HASTE))
recoveryTimeF *= _owner->m_unitData->ModSpellHaste;
- if (_owner->HasAuraType(SPELL_AURA_CHARGE_RECOVERY_AFFECTED_BY_HASTE_REGEN))
+ if (_owner->HasAuraTypeWithMiscvalue(SPELL_AURA_CHARGE_RECOVERY_AFFECTED_BY_HASTE_REGEN, chargeCategoryId))
recoveryTimeF *= _owner->m_unitData->ModHasteRegen;
return int32(std::floor(recoveryTimeF));