[Bots] Add Pet Power Support for Temp Pets. (#2853)

This commit is contained in:
Aeadoin 2023-02-11 10:57:02 -05:00 committed by GitHub
parent 5a0a1b1ffd
commit 9825c61a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,9 +53,11 @@ void Mob::TemporaryPets(uint16 spell_id, Mob *targ, const char *name_override, u
// yep, even these need pet power!
int act_power = 0;
if (IsClient()) {
act_power = CastToClient()->GetFocusEffect(focusPetPower, spell_id);
act_power = CastToClient()->mod_pet_power(act_power, spell_id);
if (IsOfClientBot()) {
act_power = GetFocusEffect(focusPetPower, spell_id);
if (IsClient()) {
act_power = CastToClient()->mod_pet_power(act_power, spell_id);
}
}
PetRecord record;