Corrected gargoyle damage calculation

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2009-12-17 09:10:04 +01:00
parent eb424ec292
commit eef7a6a1cc
2 changed files with 8 additions and 14 deletions

View File

@@ -970,26 +970,13 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
}
case 27829: // Ebon Gargoyle
{
SetBonusDamage( int32(m_owner->GetTotalAttackPowerValue(BASE_ATTACK) * 0.4f));
if (!pInfo)
{
SetCreateMana(28 + 10*petlevel);
SetCreateHealth(28 + 30*petlevel);
}
break;
}
default:
{
if (!pInfo)
{
SetCreateMana(28 + 10*petlevel);
SetCreateHealth(28 + 30*petlevel);
}
// FIXME: this is wrong formula, possible each guardian pet have own damage formula
//these formula may not be correct; however, it is designed to be close to what it should be
//this makes dps 0.5 of pets level
SetBonusDamage(int32(m_owner->GetTotalAttackPowerValue(BASE_ATTACK) * 0.5f));
SetBaseWeaponDamage(BASE_ATTACK, MINDAMAGE, float(petlevel - (petlevel / 4)));
//damage range is then petlevel / 2
SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float(petlevel + (petlevel / 4)));
break;
}