From aed3d9ef8516792f422a03aaa10a4ead3c9c0a58 Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Mon, 2 Feb 2015 03:01:37 -0500 Subject: [PATCH] Fix to allow for PBAE/Targeted AE spells to check the 'npc_no_los' field in spell file to disable LOS checks. --- zone/effects.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/effects.cpp b/zone/effects.cpp index 802fce796..5cc024ce2 100644 --- a/zone/effects.cpp +++ b/zone/effects.cpp @@ -749,9 +749,9 @@ void EntityList::AESpell(Mob *caster, Mob *center, uint16 spell_id, bool affect_ if (bad) { if (!caster->IsAttackAllowed(curmob, true)) continue; - if (center && !center->CheckLosFN(curmob)) + if (center && !spells[spell_id].npc_no_los && !center->CheckLosFN(curmob)) continue; - if (!center && !caster->CheckLosFN(caster->GetTargetRingX(), caster->GetTargetRingY(), caster->GetTargetRingZ(), curmob->GetSize())) + if (!center && !spells[spell_id].npc_no_los && !caster->CheckLosFN(caster->GetTargetRingX(), caster->GetTargetRingY(), caster->GetTargetRingZ(), curmob->GetSize())) continue; } else { // check to stop casting beneficial ae buffs (to wit: bard songs) on enemies... // This does not check faction for beneficial AE buffs..only agro and attackable.