mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-27 22:16:11 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user