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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user