From 1bf0678ebd5ccf4e0de9e060b6b8cde9ce123119 Mon Sep 17 00:00:00 2001 From: Antonio593 Date: Fri, 25 Sep 2009 15:53:02 +0300 Subject: [PATCH] [8532] Fixed situation where some items like 42947 were not giving spell power bonus Signed-off-by: Ambal --- src/game/Player.cpp | 7 +++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index b8c4449cc..c47cfd79b 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -6689,6 +6689,13 @@ void Player::_ApplyItemBonuses(ItemPrototype const *proto, uint8 slot, bool appl } } + // Apply Spell Power from ScalingStatValue if set + if(ssv) + { + if (int32 spellbonus = ssv->getSpellBonus(proto->ScalingStatValue)) + ApplySpellPowerBonus(spellbonus, apply); + } + // If set ScalingStatValue armor get it or use item armor uint32 armor = proto->Armor; if (ssv) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index c78be8ee6..7773ed4ec 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 "8531" + #define REVISION_NR "8532" #endif // __REVISION_NR_H__