Core/Entities: Fix looting gold from vehicles.
This commit is contained in:
@@ -140,6 +140,7 @@ void WorldSession::HandleLootMoneyOpcode(WorldPacket & /*recv_data*/)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case HIGHGUID_UNIT:
|
case HIGHGUID_UNIT:
|
||||||
|
case HIGHGUID_VEHICLE:
|
||||||
{
|
{
|
||||||
Creature* creature = player->GetMap()->GetCreature(guid);
|
Creature* creature = player->GetMap()->GetCreature(guid);
|
||||||
bool lootAllowed = creature && creature->isAlive() == (player->getClass() == CLASS_ROGUE && creature->lootForPickPocketed);
|
bool lootAllowed = creature && creature->isAlive() == (player->getClass() == CLASS_ROGUE && creature->lootForPickPocketed);
|
||||||
|
|||||||
Reference in New Issue
Block a user