From 53c96fc7318f3b942111ab864581aa91c5c32fc8 Mon Sep 17 00:00:00 2001 From: nos4r2zod Date: Fri, 11 Sep 2009 00:04:17 +0400 Subject: [PATCH] [8486] Fixed work some dispel effects that have 0 dispel charges in spell data when expect 1. This fix work totem effect 52025 in poison part and some scripted and creatures spells. Signed-off-by: VladimirMangos --- 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 9c14864c3..4a11368bd 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -3512,6 +3512,11 @@ void Spell::EffectDispel(uint32 i) std::list < std::pair > success_list;// (spell_id,casterGuid) std::list < uint32 > fail_list; // spell_id int32 list_size = dispel_list.size(); + + // some spells have effect value = 0 and all from its by meaning expect 1 + if(!damage) + damage = 1; + // Dispell N = damage buffs (or while exist buffs for dispel) for (int32 count=0; count < damage && list_size > 0; ++count) { diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 27c3ccbab..9a4c49a4a 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 "8485" + #define REVISION_NR "8486" #endif // __REVISION_NR_H__