Core/Spells: Added spellgroup support to HandleModCastingSpeed

Port From (https://github.com/TrinityCore/TrinityCore/commit/ca71fc7b6cc43d4883ad0a2a4c649b36a841b022)
This commit is contained in:
hondacrx
2022-01-01 17:41:59 -05:00
parent c900592e1c
commit 7c14a1754a
+7
View File
@@ -3705,6 +3705,13 @@ namespace Game.Spells
return;
}
int spellGroupVal = target.GetHighestExclusiveSameEffectSpellGroupValue(this, GetAuraType());
if (Math.Abs(spellGroupVal) >= Math.Abs(GetAmount()))
return;
if (spellGroupVal != 0)
target.ApplyCastTimePercentMod(spellGroupVal, !apply);
target.ApplyCastTimePercentMod(GetAmount(), apply);
}