Core/Stats: Update formula of min/max weapon damages in feral form.

This commit is contained in:
Tuxity
2012-08-15 00:58:31 +02:00
parent 9818406555
commit 40f6e1dd1e

View File

@@ -426,12 +426,16 @@ void Player::CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, bo
if (IsInFeralForm()) //check if player is druid and in cat or bear forms
{
uint8 lvl = getLevel();
if (lvl > 60)
lvl = 60;
weapon_mindamage = lvl*0.85f*att_speed;
weapon_maxdamage = lvl*1.25f*att_speed;
if (GetShapeshiftForm() == FORM_CAT)
{
weapon_mindamage = weapon_mindamage / att_speed;
weapon_maxdamage = weapon_maxdamage / att_speed;
}
else if (GetShapeshiftForm() == FORM_BEAR)
{
weapon_mindamage = weapon_mindamage / att_speed * 2.5f;
weapon_maxdamage = weapon_maxdamage / att_speed * 2.5f;
}
}
else if (!CanUseAttackType(attType)) //check if player not in form but still can't use (disarm case)
{