*Fix a typo. Now -AP spells (roar/shout/screech) should work correctly.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-11-26 13:03:47 -06:00
parent 504a5a69db
commit 925a013483

View File

@@ -748,7 +748,7 @@ void Creature::UpdateDamagePhysical(WeaponAttackType attType)
//float base_value = GetModifierValue(unitMod, BASE_VALUE) + GetTotalAttackPowerValue(attType)/ 14.0f * att_speed;
float base_value = GetModifierValue(unitMod, BASE_VALUE)
+ (weapon_mindamage + weapon_maxdamage) / 6
/ GetTotalAttackPowerValue(attType) * getLevel() * 5;
* GetTotalAttackPowerValue(attType) / (getLevel() * 5);
float base_pct = GetModifierValue(unitMod, BASE_PCT);
float total_value = GetModifierValue(unitMod, TOTAL_VALUE);
float total_pct = GetModifierValue(unitMod, TOTAL_PCT);