From eef7a6a1cc31616face869dda8c19ce8563b6099 Mon Sep 17 00:00:00 2001 From: n0n4m3 Date: Thu, 17 Dec 2009 09:10:04 +0100 Subject: Corrected gargoyle damage calculation --HG-- branch : trunk --- src/game/Pet.cpp | 15 +-------------- src/game/SpellEffects.cpp | 7 +++++++ 2 files changed, 8 insertions(+), 14 deletions(-) (limited to 'src/game') 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; } -- cgit v1.2.3