From 9a544650eee298e1074bf645f4a09a8724def1f4 Mon Sep 17 00:00:00 2001 From: Aeadoin <109764533+Aeadoin@users.noreply.github.com> Date: Thu, 9 Feb 2023 10:35:38 -0500 Subject: [PATCH] [Bots] ST_AreaClientOnly spells to land on Bots (#2849) --- zone/effects.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/zone/effects.cpp b/zone/effects.cpp index 8f5f9c96f..a0930443a 100644 --- a/zone/effects.cpp +++ b/zone/effects.cpp @@ -1025,7 +1025,7 @@ void EntityList::AESpell( continue; } - if (spells[spell_id].target_type == ST_AreaClientOnly && !current_mob->IsClient()) { + if (spells[spell_id].target_type == ST_AreaClientOnly && !current_mob->IsOfClientBot()) { continue; } @@ -1038,13 +1038,11 @@ void EntityList::AESpell( * 1 = PC * 2 = NPC */ - if (spells[spell_id].pcnpc_only_flag == 1 && !current_mob->IsClient() && !current_mob->IsMerc() && - !current_mob->IsBot()) { + if (spells[spell_id].pcnpc_only_flag == 1 && !current_mob->IsOfClientBotMerc()) { continue; } - if (spells[spell_id].pcnpc_only_flag == 2 && - (current_mob->IsClient() || current_mob->IsMerc() || current_mob->IsBot())) { + if (spells[spell_id].pcnpc_only_flag == 2 && current_mob->IsOfClientBotMerc()) { continue; } @@ -1185,7 +1183,7 @@ void EntityList::MassGroupBuff( if (current_mob->IsNPC()) { Mob *owner = current_mob->GetOwner(); if (owner) { - if (!owner->IsClient()) { + if (!owner->IsOfClientBot()) { continue; } }