mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
*Update creature damage calculation.
--HG-- branch : trunk
This commit is contained in:
@@ -881,10 +881,10 @@ void Creature::UpdateDamagePhysical(WeaponAttackType attType)
|
||||
float weapon_mindamage = GetWeaponDamageRange(attType, MINDAMAGE);
|
||||
float weapon_maxdamage = GetWeaponDamageRange(attType, MAXDAMAGE);
|
||||
|
||||
float base_value = GetModifierValue(unitMod, BASE_VALUE)
|
||||
+ (weapon_mindamage + weapon_maxdamage)
|
||||
* GetTotalAttackPowerValue(attType) / (getLevel() * 30);
|
||||
//float base_value = GetModifierValue(unitMod, BASE_VALUE) + GetTotalAttackPowerValue(attType);
|
||||
//float base_value = GetModifierValue(unitMod, BASE_VALUE)
|
||||
// + (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);
|
||||
float total_pct = GetModifierValue(unitMod, TOTAL_PCT);
|
||||
|
||||
Reference in New Issue
Block a user