Core/Auras: Fixed SPELL_AURA_CHARGE_RECOVERY_AFFECTED_BY_HASTE_REGEN affecting unrelated spells

Port From (https://github.com/TrinityCore/TrinityCore/commit/4628622b1ba8904ef1c0d692fe37c5d2f60f1dba)
This commit is contained in:
hondacrx
2024-02-02 14:47:46 -05:00
parent 4ff0ccd143
commit d68246c93a
+1 -1
View File
@@ -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);