Core/Misc: Fixed resistance calculate for Mutated Transformation and Twilight Bloodbolt

Port From (https://github.com/TrinityCore/TrinityCore/commit/4110a06e8193329c31cb9d59d346294835fd51a5)
This commit is contained in:
hondacrx
2022-02-22 20:11:11 -05:00
parent bc52ff717a
commit 19abbbf0b5
6 changed files with 59 additions and 14 deletions
+13
View File
@@ -7344,6 +7344,19 @@ namespace Game.Spells
}
}
public void CallScriptOnResistAbsorbCalculateHandlers(DamageInfo damageInfo, ref uint resistAmount, ref int absorbAmount)
{
foreach (var script in m_loadedScripts)
{
script._PrepareScriptCall(SpellScriptHookType.OnResistAbsorbCalculation);
foreach (var hook in script.OnCalculateResistAbsorb)
hook.Call(damageInfo, ref resistAmount, ref absorbAmount);
script._FinishScriptCall();
}
}
bool CheckScriptEffectImplicitTargets(uint effIndex, uint effIndexToCheck)
{
// Skip if there are not any script