mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[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:
parent
249555f411
commit
e9c38b03f4
2 changed files with 8 additions and 1 deletions
|
|
@ -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
|
// If set ScalingStatValue armor get it or use item armor
|
||||||
uint32 armor = proto->Armor;
|
uint32 armor = proto->Armor;
|
||||||
if (ssv)
|
if (ssv)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8531"
|
#define REVISION_NR "8532"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue