fix(Core/Spells): Banish should only be dispelled by Mass Dispel (#17703)

* fix(Core/Spells): Banish should only be dispelled by Mass Dispel

* Update Unit.cpp

* Update Unit.cpp
This commit is contained in:
Andrew
2023-11-14 12:27:37 -03:00
committed by GitHub
parent 20cde236c7
commit 5a4fdc7de4
4 changed files with 11 additions and 4 deletions

View File

@@ -6077,7 +6077,8 @@ SpellCastResult Spell::CheckCast(bool strict)
}
DispelChargesList dispelList;
target->GetDispellableAuraList(m_caster, dispelMask, dispelList);
target->GetDispellableAuraList(m_caster, dispelMask, dispelList, m_spellInfo);
if (dispelList.empty())
return SPELL_FAILED_NOTHING_TO_DISPEL;
}