PetLevelInfo const* pInfo = objmgr.GetPetLevelInfo(creature_ID, petlevel);
if(pInfo) // exist in DB
{
- SetCreateHealth(pInfo->health);
+ SetCreateHealth((pInfo->health)*sWorld.getRate(RATE_PET_HP));
SetCreateMana(pInfo->mana);
for(int stat = 0; stat < MAX_STATS; ++stat)
@@ -983,7 +984,7 @@
sLog.outErrorDb("Summoned pet (Entry: %u) not have pet stats data in DB",cinfo->Entry);
//these formula may not be correct; however, it is designed to be close to what it should be
//this makes dps 0.5 of pets level
- SetBaseWeaponDamage(BASE_ATTACK, MINDAMAGE, float(petlevel - (petlevel / 4)) );
+ SetBaseWeaponDamage(BASE_ATTACK, MINDAMAGE, float((petlevel - (petlevel / 4))*sWorld.getRate(RATE_PET_ATT)) );
//damage range is then petlevel / 2
- SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float(petlevel + (petlevel / 4)) );
+ SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float((petlevel + (petlevel / 4))*sWorld.getRate(RATE_PET_ATT)) );
//damage is increased afterwards as strength and pet scaling modify attack power
//stored standart pet stats are entry 1 in pet_levelinfo
PetLevelInfo const* pInfo = objmgr.GetPetLevelInfo(creature_ID, petlevel);
if(pInfo) // exist in DB
{
- SetCreateHealth(pInfo->health);
- SetModifierValue(UNIT_MOD_ARMOR, BASE_VALUE, float(pInfo->armor));
+ SetCreateHealth((pInfo->health)*sWorld.getRate(RATE_PET_HP));
+ SetModifierValue(UNIT_MOD_ARMOR, BASE_VALUE, float((pInfo->armor)*sWorld.getRate(RATE_PET_ARMOR)));
//SetModifierValue(UNIT_MOD_ATTACK_POWER, BASE_VALUE, float(cinfo->attackpower));
for( int i = STAT_STRENGTH; i < MAX_STATS; i++)
@@ -1023,7 +1024,7 @@
sLog.outErrorDb("Hunter pet levelstats missing in DB");