Hunter pet happiness set

This commit is contained in:
Yunfan Li
2023-12-25 18:48:51 +08:00
parent 111109b112
commit 3525e30305
3 changed files with 9 additions and 4 deletions

View File

@@ -679,7 +679,7 @@ void PlayerbotFactory::InitPet()
{
pet->InitStatsForLevel(bot->getLevel());
pet->SetLevel(bot->getLevel());
pet->SetPower(POWER_HAPPINESS, HAPPINESS_LEVEL_SIZE * 2);
pet->SetPower(POWER_HAPPINESS, pet->GetMaxPower(Powers(POWER_HAPPINESS)));
pet->SetHealth(pet->GetMaxHealth());
}
else