Procházet zdrojové kódy

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

lvlh před 3 roky
rodič
revize
3dbf20f72d

+ 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();