aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authorthenecromancer <none@none>2010-01-13 11:56:20 +0100
committerthenecromancer <none@none>2010-01-13 11:56:20 +0100
commita11efab2a28d2b0e4ed5b5b4b2492a993f02fec9 (patch)
tree82e84e5fbfec0e5da031d5af17adb1b217396c29 /src/game/Player.cpp
parent96a447dc8e4ef717cf78fda4e05a48fdd6d9a5e7 (diff)
Fix character sheet showing wrong values for weapon dependant damage mods
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index febf205ca11..8e4bd3052a7 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -7320,7 +7320,14 @@ void Player::_ApplyWeaponDependentAuraDamageMod(Item *item, WeaponAttackType att
}
if (!item->IsBroken()&&item->IsFitToSpellRequirements(aura->GetSpellProto()))
- HandleStatModifier(unitMod, unitModType, float(aura->GetAmount()),apply);
+ {
+ HandleStatModifier(unitMod, unitModType, float(aura->GetAmount()),apply);
+
+ if (unitModType == TOTAL_PCT)
+ ApplyModSignedFloatValue(PLAYER_FIELD_MOD_DAMAGE_DONE_PCT,aura->GetAmount()/100.0f,apply);
+ else
+ ApplyModUInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS,aura->GetAmount(),apply);
+ }
}
void Player::ApplyItemEquipSpell(Item *item, bool apply, bool form_change)