respect `AttackState.PursueOnLOS` for DashDefensive state
parent
9efcea7a70
commit
5567032557
|
@ -41,6 +41,11 @@ public partial class DashDefensive : AttackState
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (PursueOnNoLOS && !NPC.HasLineOfSight(bestTarget))
|
||||||
|
{
|
||||||
|
return PursueState;
|
||||||
|
}
|
||||||
|
|
||||||
if (NPC.CanAttack && NPC.StunTime <= 0)
|
if (NPC.CanAttack && NPC.StunTime <= 0)
|
||||||
{
|
{
|
||||||
bool isTargetStunned = bestTarget.StunTime > 0;
|
bool isTargetStunned = bestTarget.StunTime > 0;
|
||||||
|
|
Loading…
Reference in New Issue