mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 05:43:12 +01:00
Core/Stats: Update formula of min/max weapon damages in feral form.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user