From 2c3801645919b2696dc102bf1cde566449f89d14 Mon Sep 17 00:00:00 2001 From: Laise Date: Sat, 2 Oct 2010 13:39:17 +0200 Subject: [PATCH] [10576] Prevent diseases to be dispelled while 50536 is on target --- src/game/SpellEffects.cpp | 5 +++++ src/shared/revision_nr.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 823966a00..43d9be97d 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -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(holder, holder->GetStackAmount())); } } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 44e943bb4..056db789a 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10575" + #define REVISION_NR "10576" #endif // __REVISION_NR_H__