aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Pet.cpp15
-rw-r--r--src/game/SpellEffects.cpp7
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;
}