Merge pull request #307 from noisiver/item-info

Make bots say messages about items configurable
This commit is contained in:
Yunfan Li
2024-07-07 00:31:30 +08:00
committed by GitHub
4 changed files with 8 additions and 0 deletions

View File

@@ -13,6 +13,9 @@ bool QueryItemUsageAction::Execute(Event event)
if (!GetMaster() && !sPlayerbotAIConfig->randomBotSayWithoutMaster)
return false;
if (!sPlayerbotAIConfig->sayWhenCollectingItems)
return false;
WorldPacket& data = event.getPacket();
if (!data.empty())
{