mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10576] Prevent diseases to be dispelled while 50536 is on target
This commit is contained in:
parent
bc2f2916e9
commit
2c38016459
2 changed files with 6 additions and 1 deletions
|
|
@ -4197,6 +4197,11 @@ void Spell::EffectDispel(SpellEffectIndex eff_idx)
|
|||
if (positive == unitTarget->IsFriendlyTo(m_caster))
|
||||
continue;
|
||||
}
|
||||
// Unholy Blight prevents dispel of diseases from target
|
||||
else if (holder->GetSpellProto()->Dispel == DISPEL_DISEASE)
|
||||
if (unitTarget->HasAura(50536))
|
||||
continue;
|
||||
|
||||
dispel_list.push_back(std::pair<SpellAuraHolder* ,uint32>(holder, holder->GetStackAmount()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue