mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -2574,7 +2574,7 @@ void Spell::EffectDispel(SpellEffIndex effIndex)
|
||||
uint32 dispelMask = SpellInfo::GetDispelMask(DispelType(dispel_type));
|
||||
|
||||
DispelChargesList dispel_list;
|
||||
unitTarget->GetDispellableAuraList(m_caster, dispelMask, dispel_list);
|
||||
unitTarget->GetDispellableAuraList(m_caster, dispelMask, dispel_list, m_spellInfo);
|
||||
if (dispel_list.empty())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user