mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Allow looting some quest objects that have herbalism in code
This commit is contained in:
@@ -79,6 +79,7 @@ void LootObject::Refresh(Player* bot, ObjectGuid lootGUID)
|
|||||||
GameObject* go = botAI->GetGameObject(lootGUID);
|
GameObject* go = botAI->GetGameObject(lootGUID);
|
||||||
if (go && go->isSpawned() && go->GetGoState() == GO_STATE_READY)
|
if (go && go->isSpawned() && go->GetGoState() == GO_STATE_READY)
|
||||||
{
|
{
|
||||||
|
uint32 goId = go->GetEntry();
|
||||||
uint32 lockId = go->GetGOInfo()->GetLockId();
|
uint32 lockId = go->GetGOInfo()->GetLockId();
|
||||||
LockEntry const* lockInfo = sLockStore.LookupEntry(lockId);
|
LockEntry const* lockInfo = sLockStore.LookupEntry(lockId);
|
||||||
if (!lockInfo)
|
if (!lockInfo)
|
||||||
@@ -96,7 +97,11 @@ void LootObject::Refresh(Player* bot, ObjectGuid lootGUID)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case LOCK_KEY_SKILL:
|
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]));
|
skillId = SkillByLockType(LockType(lockInfo->Index[i]));
|
||||||
reqSkillValue = std::max((uint32) 1, lockInfo->Skill[i]);
|
reqSkillValue = std::max((uint32) 1, lockInfo->Skill[i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user