|
@@ -4021,6 +4021,7 @@ namespace CommonAI.Zone.Instance
|
|
|
public readonly InstanceItem targetObject;
|
|
|
private long mLockEndTime;
|
|
|
private bool mDoPick;
|
|
|
+ private bool mMarkBlock;
|
|
|
|
|
|
public StateFollowAndPickItem(InstanceUnit unit, InstanceItem target, bool doPick)
|
|
|
: base(unit, target, false)
|
|
@@ -4033,6 +4034,12 @@ namespace CommonAI.Zone.Instance
|
|
|
{
|
|
|
get { return (targetObject.Enable && targetObject.IsPosValid()) || mLockEndTime > CommonLang.CUtils.localTimeMS; }
|
|
|
}
|
|
|
+
|
|
|
+ public bool IsBlock()
|
|
|
+ {
|
|
|
+ return this.mMarkBlock;
|
|
|
+ }
|
|
|
+
|
|
|
protected override bool CheckTargetInMinRange()
|
|
|
{
|
|
|
return CMath.includeRoundPoint(unit.X, unit.Y, unit.BodyBlockSize, targetObject.X, targetObject.Y);
|
|
@@ -4090,9 +4097,15 @@ namespace CommonAI.Zone.Instance
|
|
|
{
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
+ protected override void onStop()
|
|
|
+ {
|
|
|
+ this.mMarkBlock = true;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|