Core/Spells: Added spellgroup support to HandleModCastingSpeed
Port From (https://github.com/TrinityCore/TrinityCore/commit/ca71fc7b6cc43d4883ad0a2a4c649b36a841b022)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user