Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] can someone tell me what does GetMaxPower do?

[DiscordArchive] can someone tell me what does GetMaxPower do?

[DiscordArchive] can someone tell me what does GetMaxPower do?

Pages (8): Previous 1 3 4 5 6 7 8 Next  
rektbyfaith
Administrator
0
11-02-2022, 06:12 PM
#41
Archived author: Revision • Posted: 2022-11-02T18:12:24.083000+00:00
Original source

Which is what's used in the if you included.
rektbyfaith
11-02-2022, 06:12 PM #41

Archived author: Revision • Posted: 2022-11-02T18:12:24.083000+00:00
Original source

Which is what's used in the if you included.

rektbyfaith
Administrator
0
11-02-2022, 06:12 PM
#42
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.
rektbyfaith
11-02-2022, 06:12 PM #42

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.

rektbyfaith
Administrator
0
11-02-2022, 06:14 PM
#43
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.
rektbyfaith
11-02-2022, 06:14 PM #43

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.

rektbyfaith
Administrator
0
11-02-2022, 06:17 PM
#44
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);
```
rektbyfaith
11-02-2022, 06:17 PM #44

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);
```

rektbyfaith
Administrator
0
11-02-2022, 06:17 PM
#45
Archived author: aionisbeingpegged • Posted: 2022-11-02T18:17:44.798000+00:00
Original source

right?
rektbyfaith
11-02-2022, 06:17 PM #45

Archived author: aionisbeingpegged • Posted: 2022-11-02T18:17:44.798000+00:00
Original source

right?

rektbyfaith
Administrator
0
11-02-2022, 06:18 PM
#46
Archived author: Revision • Posted: 2022-11-02T18:18:06.534000+00:00
Original source

Yeah, it remembers the health and power of the pet.
rektbyfaith
11-02-2022, 06:18 PM #46

Archived author: Revision • Posted: 2022-11-02T18:18:06.534000+00:00
Original source

Yeah, it remembers the health and power of the pet.

rektbyfaith
Administrator
0
11-02-2022, 06:20 PM
#47
Archived author: aionisbeingpegged • Posted: 2022-11-02T18:20:49.740000+00:00
Original source

does this also count on mount/dismount?
rektbyfaith
11-02-2022, 06:20 PM #47

Archived author: aionisbeingpegged • Posted: 2022-11-02T18:20:49.740000+00:00
Original source

does this also count on mount/dismount?

rektbyfaith
Administrator
0
11-02-2022, 06:21 PM
#48
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.
rektbyfaith
11-02-2022, 06:21 PM #48

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.

rektbyfaith
Administrator
0
11-02-2022, 06:21 PM
#49
Archived author: Bench • Posted: 2022-11-02T18:21:45.967000+00:00
Original source

Function is Pet::LoadPetFromDB
rektbyfaith
11-02-2022, 06:21 PM #49

Archived author: Bench • Posted: 2022-11-02T18:21:45.967000+00:00
Original source

Function is Pet::LoadPetFromDB

rektbyfaith
Administrator
0
11-02-2022, 06:25 PM
#50
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.
rektbyfaith
11-02-2022, 06:25 PM #50

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.

Pages (8): Previous 1 3 4 5 6 7 8 Next  
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)