Core/Spells: Define all spell modifier types and implement ProcCooldown mod and PeriodicHealingAndDamage for melee periodic damage

Port From (https://github.com/TrinityCore/TrinityCore/commit/6585666e6e34ade0333e4c23876acdf847d169c0)
This commit is contained in:
hondacrx
2021-03-17 18:52:59 -04:00
parent f667df1b11
commit 4568cdad48
16 changed files with 168 additions and 158 deletions
+2 -2
View File
@@ -771,13 +771,13 @@ namespace Game.Entities
if (spellInfo == null && HaveOffhandWeapon() && !IsInFeralForm())
missChance += 19.0f;
// Spellmod from SPELLMOD_RESIST_MISS_CHANCE
// Spellmod from SpellModOp.HitChance
float resistMissChance = 100.0f;
if (spellInfo != null)
{
Player modOwner = GetSpellModOwner();
if (modOwner != null)
modOwner.ApplySpellMod(spellInfo, SpellModOp.ResistMissChance, ref resistMissChance);
modOwner.ApplySpellMod(spellInfo, SpellModOp.HitChance, ref resistMissChance);
}
missChance += resistMissChance - 100.0f;