mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7821] Fixed typo in comment and var. name.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
4edbdb02f6
commit
28c7c95b87
2 changed files with 5 additions and 5 deletions
|
|
@ -6559,14 +6559,14 @@ void Player::_ApplyItemBonuses(ItemPrototype const *proto, uint8 slot, bool appl
|
||||||
float minDamage = proto->Damage[0].DamageMin;
|
float minDamage = proto->Damage[0].DamageMin;
|
||||||
float maxDamage = proto->Damage[0].DamageMax;
|
float maxDamage = proto->Damage[0].DamageMax;
|
||||||
int32 extraDPS = 0;
|
int32 extraDPS = 0;
|
||||||
// If set dpsMod in ScalingStatValue use it for min (70% from avernge), max (130% from averange) damage
|
// If set dpsMod in ScalingStatValue use it for min (70% from average), max (130% from average) damage
|
||||||
if (ssv)
|
if (ssv)
|
||||||
{
|
{
|
||||||
if (extraDPS = ssv->getDPSMod(proto->ScalingStatValue))
|
if (extraDPS = ssv->getDPSMod(proto->ScalingStatValue))
|
||||||
{
|
{
|
||||||
float averange = extraDPS * proto->Delay / 1000.0f;
|
float average = extraDPS * proto->Delay / 1000.0f;
|
||||||
minDamage = 0.7f * averange;
|
minDamage = 0.7f * average;
|
||||||
maxDamage = 1.3f * averange;
|
maxDamage = 1.3f * average;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (minDamage > 0 )
|
if (minDamage > 0 )
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7820"
|
#define REVISION_NR "7821"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue