mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 00:01:28 +00:00
Merge branch 'master' of https://github.com/EQEmu/Server
This commit is contained in:
commit
e4f337edb6
@ -771,7 +771,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 (!spells[spell_id].npc_no_los && !caster->CheckLosFN(position.x, position.y, position.z, curmob->GetSize()))
|
if (center && !spells[spell_id].npc_no_los && !center->CheckLosFN(curmob))
|
||||||
|
continue;
|
||||||
|
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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user