[10227] Generate gameobject loot only at open spawned gameobject.

This commit is contained in:
VladimirMangos 2010-07-19 12:16:46 +04:00
parent c4c21d3fb6
commit e8f18b1606
2 changed files with 3 additions and 2 deletions

View file

@ -7806,7 +7806,8 @@ void Player::SendLoot(ObjectGuid guid, LootType loot_type)
loot = &go->loot;
if (go->getLootState() == GO_READY)
// generate loot only if ready for open and spawned in world
if (go->getLootState() == GO_READY && go->isSpawned())
{
uint32 lootid = go->GetGOInfo()->GetLootId();
if ((go->GetEntry() == BG_AV_OBJECTID_MINE_N || go->GetEntry() == BG_AV_OBJECTID_MINE_S))