diff options
| author | thenecromancer <none@none> | 2010-01-13 11:56:20 +0100 |
|---|---|---|
| committer | thenecromancer <none@none> | 2010-01-13 11:56:20 +0100 |
| commit | a11efab2a28d2b0e4ed5b5b4b2492a993f02fec9 (patch) | |
| tree | 82e84e5fbfec0e5da031d5af17adb1b217396c29 /src/game/Player.cpp | |
| parent | 96a447dc8e4ef717cf78fda4e05a48fdd6d9a5e7 (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.cpp | 9 |
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) |
