mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7566] Fix shield block value pct mod use (apply it on strength bonus also)
Signed-off-by: DiSlord <DiSlord@nomail.com>
This commit is contained in:
parent
fa63fc96f8
commit
bdf6667db8
2 changed files with 2 additions and 4 deletions
|
|
@ -4505,9 +4505,7 @@ float Player::GetTotalBaseModValue(BaseModGroup modGroup) const
|
||||||
|
|
||||||
uint32 Player::GetShieldBlockValue() const
|
uint32 Player::GetShieldBlockValue() const
|
||||||
{
|
{
|
||||||
BaseModGroup modGroup = SHIELD_BLOCK_VALUE;
|
float value = (m_auraBaseMod[SHIELD_BLOCK_VALUE][FLAT_MOD] + GetStat(STAT_STRENGTH) * 0.5f - 10)*m_auraBaseMod[SHIELD_BLOCK_VALUE][PCT_MOD];
|
||||||
|
|
||||||
float value = GetTotalBaseModValue(modGroup) + GetStat(STAT_STRENGTH) * 0.5f - 10;
|
|
||||||
|
|
||||||
value = (value < 0) ? 0 : value;
|
value = (value < 0) ? 0 : value;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7565"
|
#define REVISION_NR "7566"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue