mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10232] Fix mechanic-related check, thanks to VladimirMangos
This commit is contained in:
parent
0065693c4c
commit
d8c1374fcd
6 changed files with 14 additions and 8 deletions
|
|
@ -7362,7 +7362,7 @@ void Spell::EffectDispelMechanic(SpellEffectIndex eff_idx)
|
|||
next = iter;
|
||||
++next;
|
||||
SpellEntry const *spell = iter->second->GetSpellProto();
|
||||
if (spell->Mechanic == mechanic || iter->second->HasAuraAndMechanicEffect(mechanic))
|
||||
if (spell->Mechanic == mechanic || iter->second->HasMechanic(mechanic))
|
||||
{
|
||||
unitTarget->RemoveAurasDueToSpell(spell->Id);
|
||||
if (Auras.empty())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue