Browse Source

MMO-18476:【fix战士登录进去就有个蓄力条】

lvlh 3 years ago
parent
commit
3dbf20f72d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Common/CommonAI/ZoneClient/ZoneObject.Unit.Status.cs

+ 3 - 2
Common/CommonAI/ZoneClient/ZoneObject.Unit.Status.cs

@@ -506,6 +506,7 @@ namespace CommonAI.ZoneClient
                     skill_desc_type = SkillDescType.Displacement;
                 }
                 this.is_skill_never_launch = true;
+                this.CurrentActionID = -1;
             }
 
             internal bool TryLaunch(UnitLaunchSkillAction act)
@@ -689,10 +690,10 @@ namespace CommonAI.ZoneClient
                 {
                     var aq = Data.ActionQueue[CurrentActionID];
                     if (aq.ShowChargeTimeMS > 0)
-                    {
-                        ChargeTimeMS += (uint)intervalMS;
+                    {
                         if (ChargeProgress < 1)
                         {
+                            ChargeTimeMS += (uint)intervalMS;
                             ChargeProgress = ChargeTimeMS / (float)aq.ShowChargeTimeMS;
                             if (ChargeProgress > 1) ChargeProgress = 1f;
                             OnChargeStateChange.Invoke();