mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
- Added skipping messages from AdvancedWotLKCombatLog addon in trade action (#1310)
This commit is contained in:
parent
b5426152fb
commit
f7bd9ae5c1
@ -15,6 +15,16 @@ bool TradeAction::Execute(Event event)
|
|||||||
{
|
{
|
||||||
std::string const text = event.getParam();
|
std::string const text = event.getParam();
|
||||||
|
|
||||||
|
// Table with prefixes to be excluded from analysis
|
||||||
|
static const std::vector<std::string> excludedPrefixes = {"RPLL_H_"};
|
||||||
|
|
||||||
|
// If text starts with any excluded prefix, don't process it further.
|
||||||
|
for (const auto& prefix : excludedPrefixes)
|
||||||
|
{
|
||||||
|
if (text.find(prefix) == 0)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!bot->GetTrader())
|
if (!bot->GetTrader())
|
||||||
{
|
{
|
||||||
GuidVector guids = chat->parseGameobjects(text);
|
GuidVector guids = chat->parseGameobjects(text);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user