diff options
author | Brian <runningnak3d@gmail.com> | 2010-01-21 18:39:27 -0700 |
---|---|---|
committer | Brian <runningnak3d@gmail.com> | 2010-01-21 18:39:27 -0700 |
commit | ea3b11f8c22a3eef0725bba4ed05888e72c9851e (patch) | |
tree | bac9abacd587dffa5631a6a5ee9fb559ce71e337 /src/game/StatSystem.cpp | |
parent | b4a6fd1a81c13bd71fef24290953a2f274099672 (diff) | |
parent | 7162dcd4758c182752537ec5cb123063d94150bf (diff) |
* merge
--HG--
branch : trunk
Diffstat (limited to 'src/game/StatSystem.cpp')
-rw-r--r-- | src/game/StatSystem.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/StatSystem.cpp b/src/game/StatSystem.cpp index b5895fbb2e6..7197779fdfd 100644 --- a/src/game/StatSystem.cpp +++ b/src/game/StatSystem.cpp @@ -25,7 +25,6 @@ #include "SharedDefines.h" #include "SpellAuras.h" #include "SpellAuraEffects.h" -#include "ObjectMgr.h" /*####################################### ######## ######## @@ -866,8 +865,7 @@ void Creature::UpdateDamagePhysical(WeaponAttackType attType) float weapon_maxdamage = GetWeaponDamageRange(attType, MAXDAMAGE); /* difference in AP between current attack power and base value from DB */ - CreatureBaseStats const* stats = objmgr.GetCreatureBaseStats(getLevel(), GetCreatureInfo()->unit_class); - float att_pwr_change = GetTotalAttackPowerValue(attType) - stats->GenerateAttackPower(GetCreatureInfo()); + float att_pwr_change = GetTotalAttackPowerValue(attType) - GetCreatureInfo()->attackpower; float base_value = GetModifierValue(unitMod, BASE_VALUE) + (att_pwr_change * GetAPMultiplier(attType, false) / 14.0f); float base_pct = GetModifierValue(unitMod, BASE_PCT); float total_value = GetModifierValue(unitMod, TOTAL_VALUE); |