From 08f1c9587493cd8e1a32ce5bbbbb847030272ede Mon Sep 17 00:00:00 2001 From: ApoC Date: Mon, 6 Jul 2009 03:26:13 +0200 Subject: [PATCH] [8133] Do not scale with level damage for SPELL_AURA_MOD_DECREASE_SPEED. May be other auras will need to be excluded also (auras modify AP, Armor ...) but this one is the most annoying :) This commit should fix non-movable behavior after being hitted by some NPC spell with slowing effect. Signed-off-by: ApoC --- src/game/Unit.cpp | 3 ++- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 0deffac6a..7ca85987f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -9796,7 +9796,8 @@ int32 Unit::CalculateSpellDamage(SpellEntry const* spellProto, uint8 effect_inde if(spellProto->Attributes & SPELL_ATTR_LEVEL_DAMAGE_CALCULATION && spellProto->spellLevel && spellProto->Effect[effect_index] != SPELL_EFFECT_WEAPON_PERCENT_DAMAGE && - spellProto->Effect[effect_index] != SPELL_EFFECT_KNOCK_BACK) + spellProto->Effect[effect_index] != SPELL_EFFECT_KNOCK_BACK && + (spellProto->Effect[effect_index] != SPELL_EFFECT_APPLY_AURA || spellProto->EffectApplyAuraName[effect_index] != SPELL_AURA_MOD_DECREASE_SPEED)) value = int32(value*0.25f*exp(getLevel()*(70-spellProto->spellLevel)/1000.0f)); return value; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 33fea0275..5f7397c33 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 "8132" + #define REVISION_NR "8133" #endif // __REVISION_NR_H__