mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 02:46:49 +00:00
Fix AttackEntityInZone after eslint 'no-shadow'
Fix for 7b4cf11e25
Fixes: #7965
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
@@ -5066,7 +5066,7 @@ UnitAI.prototype.AttackEntityInZone = function(ents)
|
||||
{
|
||||
var target = ents.find(entity =>
|
||||
this.CanAttack(entity) &&
|
||||
this.CheckTargetDistanceFromHeldPosition(entity, IID_Attack, this.GetBestAttackAgainst(target, true)) &&
|
||||
this.CheckTargetDistanceFromHeldPosition(entity, IID_Attack, this.GetBestAttackAgainst(entity, true)) &&
|
||||
(this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(entity))
|
||||
);
|
||||
if (!target)
|
||||
|
||||
Reference in New Issue
Block a user