From 85a5e241828ee0ea08fef699bb878990f94aeccc Mon Sep 17 00:00:00 2001 From: Ovahlord <18347559+Ovahlord@users.noreply.github.com> Date: Sat, 23 Aug 2025 08:40:00 +0200 Subject: [PATCH] Core/Creatures: fixed showing pet spells in action bars --- .../Entities/Creature/SummonInfo/SummonInfo.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/server/game/Entities/Creature/SummonInfo/SummonInfo.cpp b/src/server/game/Entities/Creature/SummonInfo/SummonInfo.cpp index 693ff77aa8..38015a3379 100644 --- a/src/server/game/Entities/Creature/SummonInfo/SummonInfo.cpp +++ b/src/server/game/Entities/Creature/SummonInfo/SummonInfo.cpp @@ -68,13 +68,6 @@ void SummonInfo::InitializeSummonProperties(uint32 summonPropertiesId, Unit cons // Controlled summons inherit their summoner's faction if not overridden by DBC data if (!_factionId.has_value()) _factionId = summoner->GetFaction(); - - // The summon is going to be treated as a pet. Prepare spell list. - if (_control == SummonPropertiesControl::Pet) - { - if (CharmInfo* charmInfo = _summonedCreature->InitCharmInfo()) - charmInfo->InitCharmCreateSpells(); - } } } } @@ -116,6 +109,13 @@ Optional SummonInfo::GetCreatureLevel() const void SummonInfo::HandlePreSummonActions() { + // The summon is going to be treated as a pet. Prepare spell list. + if (_control == SummonPropertiesControl::Pet) + { + if (CharmInfo* charmInfo = _summonedCreature->InitCharmInfo()) + charmInfo->InitCharmCreateSpells(); + } + if (Unit* summoner = GetUnitSummoner()) { SummonPropertiesSlot slot = GetSummonSlot();