We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e81f59 commit dfc5ebbCopy full SHA for dfc5ebb
src/server/game/Handlers/MiscHandler.cpp
@@ -1560,8 +1560,15 @@ void WorldSession::HandleRequestPetInfo(WorldPackets::Pet::RequestPetInfo& /*pac
1560
1561
if (_player->GetPet())
1562
_player->PetSpellInitialize();
1563
- else if (_player->GetCharm())
1564
- _player->CharmSpellInitialize();
+ else if (Unit* charm = _player->GetCharm())
+ {
1565
+ if (charm->HasUnitState(UNIT_STATE_POSSESSED))
1566
+ _player->PossessSpellInitialize();
1567
+ else if (charm->HasUnitFlag(UNIT_FLAG_PLAYER_CONTROLLED) && charm->HasUnitFlag(UNIT_FLAG_POSSESSED))
1568
+ _player->VehicleSpellInitialize();
1569
+ else
1570
+ _player->CharmSpellInitialize();
1571
+ }
1572
}
1573
1574
void WorldSession::HandleSetTaxiBenchmarkOpcode(WorldPacket& recv_data)
0 commit comments