Fix snake's HP for hunter's Snake Trap
--HG-- branch : trunk
This commit is contained in:
@@ -991,16 +991,12 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
|
|||||||
}
|
}
|
||||||
case 19833: //Snake Trap - Venomous Snake
|
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, MINDAMAGE, float((petlevel / 2) - 25));
|
||||||
SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float((petlevel / 2) - 18));
|
SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float((petlevel / 2) - 18));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 19921: //Snake Trap - Viper
|
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, MINDAMAGE, float(petlevel / 2 - 10));
|
||||||
SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float(petlevel / 2));
|
SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float(petlevel / 2));
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -1689,6 +1689,7 @@ public:
|
|||||||
else
|
else
|
||||||
IsViper = false;
|
IsViper = false;
|
||||||
|
|
||||||
|
me->SetMaxHealth(uint32(107 * (me->getLevel() - 40) * 0.025f));
|
||||||
//Add delta to make them not all hit the same time
|
//Add delta to make them not all hit the same time
|
||||||
uint32 delta = (rand() % 7) * 100;
|
uint32 delta = (rand() % 7) * 100;
|
||||||
me->SetStatFloatValue(UNIT_FIELD_BASEATTACKTIME, float(Info->baseattacktime + delta));
|
me->SetStatFloatValue(UNIT_FIELD_BASEATTACKTIME, float(Info->baseattacktime + delta));
|
||||||
|
|||||||
Reference in New Issue
Block a user