fix(Core/Handlers): Handle vehicle and possess spells in CMSG_REQUEST_PET_INFO (#24575)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: Faq <Faq@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-02-06 16:18:59 -06:00
committed by GitHub
parent 4e81f59d62
commit dfc5ebbbab

View File

@@ -1560,8 +1560,15 @@ void WorldSession::HandleRequestPetInfo(WorldPackets::Pet::RequestPetInfo& /*pac
if (_player->GetPet())
_player->PetSpellInitialize();
else if (_player->GetCharm())
_player->CharmSpellInitialize();
else if (Unit* charm = _player->GetCharm())
{
if (charm->HasUnitState(UNIT_STATE_POSSESSED))
_player->PossessSpellInitialize();
else if (charm->HasUnitFlag(UNIT_FLAG_PLAYER_CONTROLLED) && charm->HasUnitFlag(UNIT_FLAG_POSSESSED))
_player->VehicleSpellInitialize();
else
_player->CharmSpellInitialize();
}
}
void WorldSession::HandleSetTaxiBenchmarkOpcode(WorldPacket& recv_data)