[10576] Prevent diseases to be dispelled while 50536 is on target

This commit is contained in:
Laise 2010-10-02 13:39:17 +02:00
parent bc2f2916e9
commit 2c38016459
2 changed files with 6 additions and 1 deletions

View file

@ -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()));
}
}