mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-12 12:05:12 +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())
|
if (_player->GetPet())
|
||||||
_player->PetSpellInitialize();
|
_player->PetSpellInitialize();
|
||||||
else if (_player->GetCharm())
|
else if (Unit* charm = _player->GetCharm())
|
||||||
_player->CharmSpellInitialize();
|
{
|
||||||
|
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)
|
void WorldSession::HandleSetTaxiBenchmarkOpcode(WorldPacket& recv_data)
|
||||||
|
|||||||
Reference in New Issue
Block a user