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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user