From f7bd9ae5c158e5342b343ecbd8845211d5209597 Mon Sep 17 00:00:00 2001 From: kadeshar Date: Sun, 18 May 2025 13:31:57 +0200 Subject: [PATCH] - Added skipping messages from AdvancedWotLKCombatLog addon in trade action (#1310) --- src/strategy/actions/TradeAction.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/strategy/actions/TradeAction.cpp b/src/strategy/actions/TradeAction.cpp index a365b647..c1388b66 100644 --- a/src/strategy/actions/TradeAction.cpp +++ b/src/strategy/actions/TradeAction.cpp @@ -15,6 +15,16 @@ bool TradeAction::Execute(Event event) { std::string const text = event.getParam(); + // Table with prefixes to be excluded from analysis + static const std::vector 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()) { GuidVector guids = chat->parseGameobjects(text);