mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-31 17:43:52 +00:00
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.
This commit is contained in:
parent
14a5ff399a
commit
3fd40e9449
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user