|
@@ -171,7 +171,17 @@ namespace CommonAI.Zone.Instance
|
|
|
//是否刷新标记
|
|
|
private bool mNeedUpdate = false;
|
|
|
|
|
|
- private void InitTimeLines()
|
|
|
+ public bool IsCanLaunchSkill(int skillID)
|
|
|
+ {
|
|
|
+ if (this.IsStun || (this.IsSilent == true && skillID != this.Virtual.GetBaseSkillID()))
|
|
|
+ {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ private void InitTimeLines()
|
|
|
{
|
|
|
int index;
|
|
|
mNoneBlockTimeMS = RegistMultiTimeLine(out index);
|
|
@@ -1311,10 +1321,16 @@ namespace CommonAI.Zone.Instance
|
|
|
{
|
|
|
return false;
|
|
|
}
|
|
|
- if (Owner.__mCurrentHP.Value >= Data.CostHP)
|
|
|
+ if (!this.Owner.IsCanLaunchSkill(Data.TemplateID))
|
|
|
+ {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (Owner.__mCurrentHP.Value >= Data.CostHP)
|
|
|
{
|
|
|
return IsDone;
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
return false;
|
|
|
}
|
|
|
public int NextAction()
|