Core/Scripts: Added CalcCastTime spell script hook

Port From (https://github.com/TrinityCore/TrinityCore/commit/6713fa4c93f87af351f3ee65c1ff36b52ea85ddb)
This commit is contained in:
hondacrx
2022-07-29 18:06:37 -04:00
parent 14a23ac682
commit e824b43603
4 changed files with 20 additions and 15 deletions
+3
View File
@@ -517,6 +517,9 @@ namespace Game.Scripting
// where function is SpellCastResult function()
public List<CheckCastHandler> OnCheckCast = new();
// example: int32 CalcCastTime(int32 castTime) override { return 1500; }
public virtual int CalcCastTime(int castTime) { return castTime; }
// where function is void function(DamageInfo damageInfo, ref uint resistAmount, ref int absorbAmount)
public List<OnCalculateResistAbsorbHandler> OnCalculateResistAbsorb = new();