From 0f5f588879a924b5f27f6cb6daa03cf85eeb212b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Thu, 22 Sep 2022 17:41:55 -0600 Subject: [PATCH] Allow looting some quest objects that have herbalism in code --- src/LootObjectStack.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/LootObjectStack.cpp b/src/LootObjectStack.cpp index 1d547e9d..c3ad6bf7 100644 --- a/src/LootObjectStack.cpp +++ b/src/LootObjectStack.cpp @@ -79,6 +79,7 @@ void LootObject::Refresh(Player* bot, ObjectGuid lootGUID) GameObject* go = botAI->GetGameObject(lootGUID); if (go && go->isSpawned() && go->GetGoState() == GO_STATE_READY) { + uint32 goId = go->GetEntry(); uint32 lockId = go->GetGOInfo()->GetLockId(); LockEntry const* lockInfo = sLockStore.LookupEntry(lockId); if (!lockInfo) @@ -96,10 +97,14 @@ void LootObject::Refresh(Player* bot, ObjectGuid lootGUID) } break; case LOCK_KEY_SKILL: - if (SkillByLockType(LockType(lockInfo->Index[i])) > 0) + if (goId == 13891 || goId == 19535) // Serpentbloom + { + this->guid = guid; + } + else if (SkillByLockType(LockType(lockInfo->Index[i])) > 0) { skillId = SkillByLockType(LockType(lockInfo->Index[i])); - reqSkillValue = std::max((uint32)1, lockInfo->Skill[i]); + reqSkillValue = std::max((uint32) 1, lockInfo->Skill[i]); guid = lootGUID; } break;