[DiscordArchive] can someone tell me what does GetMaxPower do?
[DiscordArchive] can someone tell me what does GetMaxPower do?
Archived author: aionisbeingpegged • Posted: 2022-11-02T18:00:56.541000+00:00
Original source
can someone tell me what does GetMaxPower do?
Archived author: Revision • Posted: 2022-11-02T18:01:10.702000+00:00
Original source
Perhaps not but I don't know any of that so you have one on me there for sure.
Archived author: Revision • Posted: 2022-11-02T18:01:46.827000+00:00
Original source
It should return the max power that's available. The max value of mana, for example.
Archived author: aionisbeingpegged • Posted: 2022-11-02T18:02:06.756000+00:00
Original source
so it's not setting the power to the max value?
Archived author: Revision • Posted: 2022-11-02T18:02:18.343000+00:00
Original source
No, it just grabs the value.
Archived author: aionisbeingpegged • Posted: 2022-11-02T18:02:25.852000+00:00
Original source
found 2 codes that should probably be the same
Archived author: Revision • Posted: 2022-11-02T18:02:30.252000+00:00
Original source
You use SetMaxPower to set it.
Archived author: aionisbeingpegged • Posted: 2022-11-02T18:03:01.984000+00:00
Original source
```
if (getPetType() == SUMMON_PET && !current) //all (?) summon pets come with full health when called, but not when they are current
{
SetPower(POWER_MANA, GetMaxPower(POWER_MANA));
SetFullHealth();
```
Archived author: aionisbeingpegged • Posted: 2022-11-02T18:03:09.210000+00:00
Original source
from AzerothCore
Archived author: Revision • Posted: 2022-11-02T18:03:23.221000+00:00
Original source
Yes, it sets the current mana to its max value