[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; 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(); uint32 lootid = go->GetGOInfo()->GetLootId();
if ((go->GetEntry() == BG_AV_OBJECTID_MINE_N || go->GetEntry() == BG_AV_OBJECTID_MINE_S)) if ((go->GetEntry() == BG_AV_OBJECTID_MINE_N || go->GetEntry() == BG_AV_OBJECTID_MINE_S))

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10226" #define REVISION_NR "10227"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__