mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
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
|
||||
{
|
||||
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;
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user