diff options
| author | n0n4m3 <none@none> | 2010-01-16 19:05:27 +0300 |
|---|---|---|
| committer | n0n4m3 <none@none> | 2010-01-16 19:05:27 +0300 |
| commit | e031df23fc77716b9e4e10cf6084d1f60ffa11ef (patch) | |
| tree | ae3dd0afe0df12d5bf72e48374213f462ef80df3 /src/game/Player.h | |
| parent | e21e0ce95be0e2ea1a33959e4c85be6dbe15fb14 (diff) | |
Propertly update combat ratings fields, by VladimirMangos.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.h')
| -rw-r--r-- | src/game/Player.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Player.h b/src/game/Player.h index 1067105d227..41aa8644ee9 100644 --- a/src/game/Player.h +++ b/src/game/Player.h @@ -1726,11 +1726,13 @@ class TRINITY_DLL_SPEC Player : public Unit, public GridObject<Player> void UpdateDamagePhysical(WeaponAttackType attType); void ApplySpellPowerBonus(int32 amount, bool apply); void UpdateSpellDamageAndHealingBonus(); + void ApplyRatingMod(CombatRating cr, int32 value, bool apply); + void UpdateRating(CombatRating cr); + void UpdateAllRatings(); void CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, bool addTotalPct, float& min_damage, float& max_damage); void UpdateDefenseBonusesMod(); - void ApplyRatingMod(CombatRating cr, int32 value, bool apply); inline void RecalculateRating(CombatRating cr) { ApplyRatingMod(cr, 0, true);} float GetMeleeCritFromAgility(); float GetDodgeFromAgility(); |
