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

Co-authored-by: blinkysc <[email protected]>
Co-authored-by: Faq <[email protected]>
This commit is contained in:
blinkysc
2026-02-06 19:18:59 -03:00
committed by GitHub
co-authored by blinkysc Faq
parent 4e81f59d62
commit dfc5ebbbab
+9 -2
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)