mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16: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;
|
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))
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue