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);
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user