[Bug Fix] IsOfClientBotMerc() for Discipline Messages (#3940)

This commit is contained in:
Fryguy
2024-01-08 23:23:09 -05:00
committed by GitHub
parent 9da713a830
commit 409b6bf424
+1 -1
View File
@@ -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());
}