Core/Units: Removed attack speed float to int conversion special case in building SMSG_UPDATE_OBJECT

This commit is contained in:
Shauren
2016-11-25 17:58:48 +01:00
parent 8c23059186
commit 5411ca8cdf
15 changed files with 79 additions and 78 deletions
+1 -1
View File
@@ -1208,7 +1208,7 @@ void Guardian::UpdateDamagePhysical(WeaponAttackType attType)
UnitMods unitMod = UNIT_MOD_DAMAGE_MAINHAND;
float att_speed = float(GetAttackTime(BASE_ATTACK))/1000.0f;
float att_speed = float(GetBaseAttackTime(BASE_ATTACK))/1000.0f;
float base_value = GetModifierValue(unitMod, BASE_VALUE) + GetTotalAttackPowerValue(attType)/ 3.5f * att_speed + bonusDamage;
float base_pct = GetModifierValue(unitMod, BASE_PCT);