From 764715f625e8c2e36589f8fde2955069494fba0c Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Sat, 25 Jan 2025 23:19:09 -0600 Subject: [PATCH] New lines --- zone/bot.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 9c628b54c..c7300f6f6 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -11766,7 +11766,13 @@ bool Bot::HasValidAETarget(Bot* caster, uint16 spell_id, uint16 spell_type, Mob* break; } - if (!m->IsNPC() || (!IsCommandedSpell() && !m->CastToNPC()->IsOnHatelist(caster->GetOwner()))) { + if ( + !m->IsNPC() || + ( + !IsCommandedSpell() && + !m->CastToNPC()->IsOnHatelist(caster->GetOwner()) + ) + ) { continue; } @@ -11783,7 +11789,11 @@ bool Bot::HasValidAETarget(Bot* caster, uint16 spell_id, uint16 spell_type, Mob* } } else { - if (!tar || spell_range < Distance(caster->GetPosition(), tar->GetPosition()) || !DoLosChecks(this, m)) { + if ( + !tar || + spell_range < Distance(caster->GetPosition(), tar->GetPosition()) || + !DoLosChecks(m) + ) { continue; }