Fix to allow for PBAE/Targeted AE spells to check the 'npc_no_los' field in spell file

to disable LOS checks.
This commit is contained in:
KayenEQ 2015-02-02 03:01:37 -05:00
parent 73ac566c17
commit aed3d9ef85

View File

@ -749,9 +749,9 @@ void EntityList::AESpell(Mob *caster, Mob *center, uint16 spell_id, bool affect_
if (bad) { if (bad) {
if (!caster->IsAttackAllowed(curmob, true)) if (!caster->IsAttackAllowed(curmob, true))
continue; continue;
if (center && !center->CheckLosFN(curmob)) if (center && !spells[spell_id].npc_no_los && !center->CheckLosFN(curmob))
continue; 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; continue;
} else { // check to stop casting beneficial ae buffs (to wit: bard songs) on enemies... } 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. // This does not check faction for beneficial AE buffs..only agro and attackable.