Shadow Walker: If npc_shadow_walker is damaged and the player can see it, it can forego the squad slot.

This commit is contained in:
1upD 2018-11-14 22:50:45 -05:00
parent 91556205fb
commit e3f2964ae2

View File

@ -309,7 +309,7 @@ int CNPC_ShadowWalker::SelectCombatSchedule()
bCanChase = OccupyStrategySlot(SQUAD_SLOT_CHASE_1);
}
bCanChase = bCanChase || EnemyDistance(GetEnemy()) < 128;
bCanChase = bCanChase || EnemyDistance(GetEnemy()) < 128 || (bEnemyCanSeeMe && (HasCondition(COND_LIGHT_DAMAGE) || HasCondition(COND_HEAVY_DAMAGE)));
// If I'm not allowed to chase this enemy of this enemy and he's looking at me, set up an ambush
if (!bCanChase)