fix(DB/Spells): define Dust Field as a positive spell (#7798)

- Closes #5392
- Closes #6285
This commit is contained in:
UltraNix
2021-09-13 16:10:31 +02:00
committed by GitHub
parent 15b346163d
commit 132f6c3c19
2 changed files with 6 additions and 1 deletions

View File

@@ -12119,7 +12119,7 @@ bool Unit::IsImmunedToSpell(SpellInfo const* spellInfo)
{
SpellInfo const* immuneSpellInfo = sSpellMgr->GetSpellInfo(itr->spellId);
if (((itr->type & spellInfo->GetSchoolMask()) == spellInfo->GetSchoolMask())
&& !(immuneSpellInfo && immuneSpellInfo->IsPositive() && spellInfo->IsPositive())
&& !(immuneSpellInfo && immuneSpellInfo->IsPositive()) && !spellInfo->IsPositive()
&& !spellInfo->CanPierceImmuneAura(immuneSpellInfo))
return true;
}