From 3fd40e9449368033aef5787d405433fd2bcedd1e Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Sat, 25 Feb 2017 14:36:17 -0500 Subject: [PATCH] Make ST_AreaNPCOnly skip faction check The motivation for this is there a bunch of auras that use this target type that all would require setting up faction for these NPCs so they would hate everything. Also allows Ward of Destruction to work. --- zone/effects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/effects.cpp b/zone/effects.cpp index 0cec65877..400bae1fa 100644 --- a/zone/effects.cpp +++ b/zone/effects.cpp @@ -795,7 +795,7 @@ void EntityList::AESpell(Mob *caster, Mob *center, uint16 spell_id, bool affect_ continue; if (dist_targ < min_range2) //make sure they are in range continue; - if (isnpc && curmob->IsNPC()) { //check npc->npc casting + if (isnpc && curmob->IsNPC() && spells[spell_id].targettype != ST_AreaNPCOnly) { //check npc->npc casting FACTION_VALUE f = curmob->GetReverseFactionCon(caster); if (bad) { //affect mobs that are on our hate list, or