From d68246c93a94bcc61b6592aae814c331a09d9c20 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 2 Feb 2024 14:47:46 -0500 Subject: [PATCH] Core/Auras: Fixed SPELL_AURA_CHARGE_RECOVERY_AFFECTED_BY_HASTE_REGEN affecting unrelated spells Port From (https://github.com/TrinityCore/TrinityCore/commit/4628622b1ba8904ef1c0d692fe37c5d2f60f1dba) --- Source/Game/Spells/SpellHistory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Spells/SpellHistory.cs b/Source/Game/Spells/SpellHistory.cs index 732f88745..556180cdf 100644 --- a/Source/Game/Spells/SpellHistory.cs +++ b/Source/Game/Spells/SpellHistory.cs @@ -900,7 +900,7 @@ namespace Game.Spells if (_owner.HasAuraType(AuraType.ChargeRecoveryAffectedByHaste)) recoveryTimeF *= _owner.m_unitData.ModSpellHaste; - if (_owner.HasAuraType(AuraType.ChargeRecoveryAffectedByHasteRegen)) + if (_owner.HasAuraTypeWithMiscvalue(AuraType.ChargeRecoveryAffectedByHasteRegen, (int)chargeCategoryId)) recoveryTimeF *= _owner.m_unitData.ModHasteRegen; return (int)Math.Floor(recoveryTimeF);