Core/Unit: do not allow judgement spells to bypass damage immunity

This commit is contained in:
hondacrx
2018-01-24 12:09:58 -05:00
parent 9f8bd31c54
commit ec60eea2f1
+2 -1
View File
@@ -1710,7 +1710,8 @@ namespace Game.Entities
if (spellInfo == null)
return false;
if (spellInfo.HasAttribute(SpellAttr3.IgnoreHitResult))
// for example 40175
if (spellInfo.HasAttribute(SpellAttr0.UnaffectedByInvulnerability) && spellInfo.HasAttribute(SpellAttr3.IgnoreHitResult))
return false;
if (spellInfo.HasAttribute(SpellAttr1.UnaffectedBySchoolImmune) || spellInfo.HasAttribute(SpellAttr2.UnaffectedByAuraSchoolImmune))