diff options
author | n0n4m3 <none@none> | 2009-12-17 09:10:04 +0100 |
---|---|---|
committer | n0n4m3 <none@none> | 2009-12-17 09:10:04 +0100 |
commit | eef7a6a1cc31616face869dda8c19ce8563b6099 (patch) | |
tree | f1670ecc472e3d169a71a68b715eb3395767141a /src/game/Pet.cpp | |
parent | eb424ec2922be6469285049c597707442d8daed1 (diff) |
Corrected gargoyle damage calculation
--HG--
branch : trunk
Diffstat (limited to 'src/game/Pet.cpp')
-rw-r--r-- | src/game/Pet.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index d60e0f91e79..95f1300a1bb 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -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; } |