aboutsummaryrefslogtreecommitdiff
path: root/src/game/Pet.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2010-01-13 14:40:23 +0300
committern0n4m3 <none@none>2010-01-13 14:40:23 +0300
commit92d3209ab212a8fd56a58ccb3057e17a21c77327 (patch)
tree7a84ecd395f2ceb24032b8c758d9d67ad66ab0aa /src/game/Pet.cpp
parent7d988221f70c620da2d694022caa0bfac0268299 (diff)
Fixed spell Snake Trap, port from tc1, thx Frankir.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Pet.cpp')
-rw-r--r--src/game/Pet.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp
index 5fe6a64932d..e9b1a2d0eac 100644
--- a/src/game/Pet.cpp
+++ b/src/game/Pet.cpp
@@ -969,6 +969,22 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float(petlevel * 4 + petlevel));
break;
}
+ case 19833: //Snake Trap - Venomous Snake
+ {
+ SetCreateHealth(uint32(107 * (petlevel - 40) * 0.025f));
+ SetCreateMana(0);
+ SetBaseWeaponDamage(BASE_ATTACK, MINDAMAGE, float((petlevel / 2) - 25));
+ SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float((petlevel / 2) - 18));
+ break;
+ }
+ case 19921: //Snake Trap - Viper
+ {
+ SetCreateHealth(uint32(107 * (petlevel - 40) * 0.025f));
+ SetCreateMana(0);
+ SetBaseWeaponDamage(BASE_ATTACK, MINDAMAGE, float(petlevel / 2 - 10));
+ SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float(petlevel / 2));
+ break;
+ }
case 31216: // Mirror Image
{
SetBonusDamage(int32(m_owner->SpellBaseDamageBonus(SPELL_SCHOOL_MASK_FROST) * 0.33f));