mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-23 16:48:21 +00:00
New lines
This commit is contained in:
+12
-2
@@ -11766,7 +11766,13 @@ bool Bot::HasValidAETarget(Bot* caster, uint16 spell_id, uint16 spell_type, Mob*
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m->IsNPC() || (!IsCommandedSpell() && !m->CastToNPC()->IsOnHatelist(caster->GetOwner()))) {
|
if (
|
||||||
|
!m->IsNPC() ||
|
||||||
|
(
|
||||||
|
!IsCommandedSpell() &&
|
||||||
|
!m->CastToNPC()->IsOnHatelist(caster->GetOwner())
|
||||||
|
)
|
||||||
|
) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -11783,7 +11789,11 @@ bool Bot::HasValidAETarget(Bot* caster, uint16 spell_id, uint16 spell_type, Mob*
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!tar || spell_range < Distance(caster->GetPosition(), tar->GetPosition()) || !DoLosChecks(this, m)) {
|
if (
|
||||||
|
!tar ||
|
||||||
|
spell_range < Distance(caster->GetPosition(), tar->GetPosition()) ||
|
||||||
|
!DoLosChecks(m)
|
||||||
|
) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user