[8532] Fixed situation where some items like 42947 were not giving spell power bonus

Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
Antonio593 2009-09-25 15:53:02 +03:00 committed by tomrus88
parent 249555f411
commit e9c38b03f4
2 changed files with 8 additions and 1 deletions

View file

@ -6695,6 +6695,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)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8531"
#define REVISION_NR "8532"
#endif // __REVISION_NR_H__