From 409b6bf424509c96c7c855ce451713fc73ae9aa8 Mon Sep 17 00:00:00 2001 From: Fryguy Date: Mon, 8 Jan 2024 23:23:09 -0500 Subject: [PATCH] [Bug Fix] IsOfClientBotMerc() for Discipline Messages (#3940) --- zone/spells.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/spells.cpp b/zone/spells.cpp index 9e5630c01..76795feca 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -3807,7 +3807,7 @@ bool Mob::SpellOnTarget( LogSpells("Casting spell [{}] on [{}] with effective caster level [{}]", spell_id, spelltar->GetName(), caster_level); - if (IsClient() && (IsDiscipline(spell_id) || spells[spell_id].is_discipline)) { + if (IsOfClientBotMerc() && (IsDiscipline(spell_id) || spells[spell_id].is_discipline)) { entity_list.MessageClose(this, false, 200, 0, fmt::format("{}{}", GetCleanName(), spells[spell_id].cast_on_other).c_str()); }