mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +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))
|
if (positive == unitTarget->IsFriendlyTo(m_caster))
|
||||||
continue;
|
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()));
|
dispel_list.push_back(std::pair<SpellAuraHolder* ,uint32>(holder, holder->GetStackAmount()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10575"
|
#define REVISION_NR "10576"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue