Core/Spells: Implement SPELL_ATTR7_NO_ATTACK_DODGE, SPELL_ATTR7_NO_ATTACK_PARRY and SPELL_ATTR7_NO_ATTACK_MISS

Port From (https://github.com/TrinityCore/TrinityCore/commit/d22d4616339a966ce5e5fe959dca622fc21b7988)
This commit is contained in:
hondacrx
2022-05-05 09:52:50 -04:00
parent 1daa90dfb9
commit 09a4e13453
4 changed files with 62 additions and 49 deletions
+3
View File
@@ -794,6 +794,9 @@ namespace Game.Entities
//Chances
public override float MeleeSpellMissChance(Unit victim, WeaponAttackType attType, SpellInfo spellInfo)
{
if (spellInfo != null && spellInfo.HasAttribute(SpellAttr7.NoAttackMiss))
return 0.0f;
//calculate miss chance
float missChance = victim.GetUnitMissChance();