Fix snake's HP for hunter's Snake Trap

--HG--
branch : trunk
This commit is contained in:
Shocker
2010-09-03 19:04:32 +03:00
parent 5469af3775
commit ee83ffdfca
2 changed files with 1 additions and 4 deletions

View File

@@ -991,16 +991,12 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
}
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;

View File

@@ -1689,6 +1689,7 @@ public:
else
IsViper = false;
me->SetMaxHealth(uint32(107 * (me->getLevel() - 40) * 0.025f));
//Add delta to make them not all hit the same time
uint32 delta = (rand() % 7) * 100;
me->SetStatFloatValue(UNIT_FIELD_BASEATTACKTIME, float(Info->baseattacktime + delta));