Unholy Blight should prevent the dispelling of diseases.

Fixes issue #2609
Fixes issue #2982

--HG--
branch : trunk
This commit is contained in:
silinoron
2010-08-06 21:32:42 -07:00
parent 38402fa55b
commit 443226c562
+5
View File
@@ -3573,6 +3573,11 @@ void Spell::EffectDispel(uint32 i)
// Create dispel mask by dispel type
uint32 dispel_type = m_spellInfo->EffectMiscValue[i];
uint32 dispelMask = GetDispellMask(DispelType(dispel_type));
// we should not be able to dispel diseases if the target is affected by unholy blight
if (dispelMask & (1 << DISPEL_DISEASE) && unitTarget->HasAura(50536))
dispelMask &= ~(1 << DISPEL_DISEASE);
Unit::AuraMap const& auras = unitTarget->GetOwnedAuras();
for (Unit::AuraMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
{