mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[8710] Make vehicle guid counter per-map local.
Also update/drop/move to Map some dependent functions.
This commit is contained in:
parent
53b6d28a24
commit
b942616ded
15 changed files with 46 additions and 69 deletions
|
|
@ -458,7 +458,7 @@ void WorldSession::HandlePetCancelAuraOpcode( WorldPacket& recvPacket)
|
|||
return;
|
||||
}
|
||||
|
||||
Creature* pet=ObjectAccessor::GetCreatureOrPetOrVehicle(*_player,guid);
|
||||
Creature* pet = GetPlayer()->GetMap()->GetCreatureOrPetOrVehicle(guid);
|
||||
|
||||
if(!pet)
|
||||
{
|
||||
|
|
@ -550,7 +550,7 @@ void WorldSession::HandleSpellClick( WorldPacket & recv_data )
|
|||
if (_player->isInCombat()) // client prevent click and set different icon at combat state
|
||||
return;
|
||||
|
||||
Creature *unit = ObjectAccessor::GetCreatureOrPetOrVehicle(*_player, guid);
|
||||
Creature *unit = _player->GetMap()->GetCreatureOrPetOrVehicle(guid);
|
||||
if (!unit || unit->isInCombat()) // client prevent click and set different icon at combat state
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue