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

@@ -31,7 +31,7 @@ bool FeedPetAction::Execute(Event event)
{
if (Pet* pet = bot->GetPet())
if (pet->getPetType() == HUNTER_PET && pet->GetHappinessState() != HAPPY)
pet->SetPower(POWER_HAPPINESS, HAPPINESS_LEVEL_SIZE * 2);
pet->SetPower(POWER_HAPPINESS, pet->GetMaxPower(Powers(POWER_HAPPINESS)));
return true;
}