mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
*Update creature melee damage calculation.
--HG-- branch : trunk
This commit is contained in:
@@ -880,8 +880,8 @@ void Creature::UpdateDamagePhysical(WeaponAttackType attType)
|
||||
float weapon_maxdamage = GetWeaponDamageRange(attType, MAXDAMAGE);
|
||||
|
||||
float base_value = GetModifierValue(unitMod, BASE_VALUE)
|
||||
+ (weapon_mindamage + weapon_maxdamage) / 6
|
||||
* GetTotalAttackPowerValue(attType) / (getLevel() * 5);
|
||||
+ (weapon_mindamage + weapon_maxdamage)
|
||||
* GetTotalAttackPowerValue(attType) / (getLevel() * 30);
|
||||
//float base_value = GetModifierValue(unitMod, BASE_VALUE) + GetTotalAttackPowerValue(attType);
|
||||
float base_pct = GetModifierValue(unitMod, BASE_PCT);
|
||||
float total_value = GetModifierValue(unitMod, TOTAL_VALUE);
|
||||
|
||||
Reference in New Issue
Block a user