9 public override CursorInfo CursorIcon
13 return CursorSystem.IconMelee;
19 public override bool HasProgress
28 public override bool CanManualCancel()
34 public override IEnumerable<
AIAct.Status> Run()
36 this.isFail = (() => !this.target.IsAliveInCurrentZone);
37 yield
return base.DoProgress();
45 progress_Custom.canProgress = (() => !this.isFail());
46 progress_Custom.onProgressBegin = delegate()
51 if (this.range && this.owner.GetCondition<
ConReload>() ==
null)
53 if (!
ACT.Ranged.CanPerform(
this.owner,
this.target,
this.target.pos))
58 if (!
ACT.Ranged.Perform(
this.owner,
this.target,
this.target.pos))
65 ACT.Melee.Perform(this.owner, this.target,
null);
67 if (this.owner !=
null &&
EClass.rnd(5) < 2)
69 this.owner.stamina.Mod(-1);
71 if (this.owner !=
null && this.owner.stamina.value < 0)
76 progress_Custom.onProgressComplete = delegate()
79 return progress_Custom.SetDuration(10000, 2);