From 37af643b615aacb183a6ecbd6e8e79e8a5d306f1 Mon Sep 17 00:00:00 2001 From: Kinglykrab <89047260+Kinglykrab@users.noreply.github.com> Date: Sun, 20 Nov 2022 15:28:46 -0500 Subject: [PATCH] [Bots] Cleanup Say Event Parse. (#2557) --- zone/client.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zone/client.cpp b/zone/client.cpp index c655f6aab..2ff07ed0b 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -1219,7 +1219,11 @@ void Client::ChannelMessageReceived(uint8 chan_num, uint8 language, uint8 lang_s #ifdef BOTS else if (GetTarget() && GetTarget()->IsBot() && !IsInvisible(GetTarget())) { if (DistanceNoZ(m_Position, GetTarget()->GetPosition()) <= RuleI(Range, Say)) { - parse->EventBot(GetTarget()->IsEngaged() ? EVENT_AGGRO_SAY : EVENT_SAY, GetTarget()->CastToBot(), this, message, language); + if (GetTarget()->IsEngaged()) { + parse->EventBot(EVENT_AGGRO_SAY, GetTarget()->CastToBot(), this, message, language); + } else { + parse->EventBot(EVENT_SAY, GetTarget()->CastToBot(), this, message, language); + } } } #endif