aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclick <none@none>2010-04-11 17:10:27 +0200
committerclick <none@none>2010-04-11 17:10:27 +0200
commit7993aa21e5754c8c0609d63cab78239369daadaa (patch)
tree60b859517c8966f4211f4b448924343a271c0800
parenta2a2da13427c2ef94f7c730ff64f5c547e01aa3d (diff)
* Add: Shadowfiend damage and spellpower scaling, this will need feedback (are the numbers correct?)
Closes issue #129 - Patch by Kaelima --HG-- branch : trunk
-rw-r--r--src/game/Pet.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp
index 3cab76b8d9f..3b842034423 100644
--- a/src/game/Pet.cpp
+++ b/src/game/Pet.cpp
@@ -956,6 +956,19 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float(petlevel * 4 + petlevel));
break;
}
+ case 19668: // Shadowfiend
+ {
+ if (!pInfo)
+ {
+ SetCreateMana(28 + 10*petlevel);
+ SetCreateHealth(28 + 30*petlevel);
+ }
+ int32 bonus_dmg = (int32(m_owner->SpellBaseDamageBonus(SPELL_SCHOOL_MASK_SHADOW)* 0.3f));
+ SetBaseWeaponDamage(BASE_ATTACK, MINDAMAGE, float((petlevel * 4 - petlevel) + bonus_dmg));
+ SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float((petlevel * 4 + petlevel) + bonus_dmg));
+
+ break;
+ }
case 19833: //Snake Trap - Venomous Snake
{
SetCreateHealth(uint32(107 * (petlevel - 40) * 0.025f));