From 443226c562a7fa863504b6ecd86d31085f351a65 Mon Sep 17 00:00:00 2001 From: silinoron Date: Fri, 6 Aug 2010 21:32:42 -0700 Subject: Unholy Blight should prevent the dispelling of diseases. Fixes issue #2609 Fixes issue #2982 --HG-- branch : trunk --- src/server/game/Spells/SpellEffects.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/server/game/Spells/SpellEffects.cpp') diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 086a9329444..17a394bbee0 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -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) { -- cgit v1.2.3