[DiscordArchive] can someone tell me what does GetMaxPower do?
[DiscordArchive] can someone tell me what does GetMaxPower do?
Archived author: Revision • Posted: 2022-11-02T18:12:24.083000+00:00
Original source
Which is what's used in the if you included.
Archived author: Revision • Posted: 2022-11-02T18:12:56.881000+00:00
Original source
They're handled separately, yes, because the category is different regardless.
Archived author: Revision • Posted: 2022-11-02T18:14:21.864000+00:00
Original source
My last point is that the if you sent doesn't involve hunter pets at all.
Archived author: aionisbeingpegged • Posted: 2022-11-02T18:17:20.351000+00:00
Original source
yeah, this one does:
```
if (!curHealth && getPetType() == HUNTER_PET)
setDeathState(JUST_DIED);
else
{
SetHealth(curHealth > GetMaxHealth() ? GetMaxHealth() : curHealth);
SetPower(POWER_MANA, savedmana > GetMaxPower(POWER_MANA) ? GetMaxPower(POWER_MANA) : savedmana);
```
Archived author: aionisbeingpegged • Posted: 2022-11-02T18:17:44.798000+00:00
Original source
right?
Archived author: Revision • Posted: 2022-11-02T18:18:06.534000+00:00
Original source
Yeah, it remembers the health and power of the pet.
Archived author: aionisbeingpegged • Posted: 2022-11-02T18:20:49.740000+00:00
Original source
does this also count on mount/dismount?
Archived author: Revision • Posted: 2022-11-02T18:21:33.569000+00:00
Original source
I don't know the function you're looking at but I would assume so. Without looking at the entire thing, I can't be sure though.
Archived author: Bench • Posted: 2022-11-02T18:21:45.967000+00:00
Original source
Function is Pet::LoadPetFromDB
Archived author: Revision • Posted: 2022-11-02T18:25:22.596000+00:00
Original source
I'm not sure, actually. I can't imagine that function being triggered every time you, for example, uses call pet.