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:
@@ -758,8 +758,8 @@ namespace Game.Entities
|
||||
if (spellInfo.HasAttribute(SpellAttr0.ImpossibleDodgeParryBlock))
|
||||
return SpellMissInfo.None;
|
||||
|
||||
bool canDodge = true;
|
||||
bool canParry = true;
|
||||
bool canDodge = !spellInfo.HasAttribute(SpellAttr7.NoAttackDodge);
|
||||
bool canParry = !spellInfo.HasAttribute(SpellAttr7.NoAttackParry);
|
||||
bool canBlock = spellInfo.HasAttribute(SpellAttr3.BlockableSpell);
|
||||
|
||||
// if victim is casting or cc'd it can't avoid attacks
|
||||
|
||||
Reference in New Issue
Block a user