mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[10227] Generate gameobject loot only at open spawned gameobject.
This commit is contained in:
parent
c4c21d3fb6
commit
e8f18b1606
2 changed files with 3 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue