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 | |
parent | eb424ec2922be6469285049c597707442d8daed1 (diff) |
Corrected gargoyle damage calculation
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Pet.cpp | 15 | ||||
-rw-r--r-- | src/game/SpellEffects.cpp | 7 |
2 files changed, 8 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; } diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index b6bc9aed572..3d6d3ca8671 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -420,6 +420,13 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx) damage = unitTarget->GetMaxHealth() / 10; break; } + // Gargoyle Strike + case 51963: + { + // about +4 base spell dmg per level + damage = (m_caster->getLevel() - 60) * 4 + 60; + break; + } } break; } |