aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeader <keader.android@gmail.com>2019-07-24 08:31:34 -0300
committerShauren <shauren.trinity@gmail.com>2021-12-17 20:31:57 +0100
commitca71fc7b6cc43d4883ad0a2a4c649b36a841b022 (patch)
tree559e17bb81ff707fd8e1dcf99528b92a9cf80305 /src
parent596414851e9f9aa75960056a5ca37c60f0039eb4 (diff)
Core/Spells: Added spellgroup support to HandleModCastingSpeed (#23592)
(cherry picked from commit 4c2f7df4f39cd98eae21bc64ebac59e3d2eea577)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Auras/SpellAuraEffects.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
index cc3f1a7a9b3..4cc5b0575ce 100644
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -4048,6 +4048,13 @@ void AuraEffect::HandleModCastingSpeed(AuraApplication const* aurApp, uint8 mode
return;
}
+ int32 spellGroupVal = target->GetHighestExclusiveSameEffectSpellGroupValue(this, GetAuraType());
+ if (abs(spellGroupVal) >= abs(GetAmount()))
+ return;
+
+ if (spellGroupVal)
+ target->ApplyCastTimePercentMod(float(spellGroupVal), !apply);
+
target->ApplyCastTimePercentMod((float)GetAmount(), apply);
}