LiuQilin 8 yıl önce
ebeveyn
işleme
fe89697567
1 değiştirilmiş dosya ile 10 ekleme ve 6 silme
  1. 10 6
      Assets/Script/Object/Skill/Ability.cs

+ 10 - 6
Assets/Script/Object/Skill/Ability.cs

@@ -159,6 +159,7 @@ public class Ability : SkillRoot
         if (Level > 0)
         {
             AnnulA();
+            AnnulB();
         }
     }
 
@@ -505,7 +506,7 @@ public class Ability : SkillRoot
 
                 if (ID == "Ability1")
                 {
-                    ManaCenter.Level ++;
+                    ManaCenter.Level++;
                 }
             }
         );
@@ -535,6 +536,14 @@ public class Ability : SkillRoot
     }
 
 
+    public virtual void AnnulB()
+    {
+        for (int i = 0; i < Auxiliary.IntParse(UnlockPos, 0); i++)
+        {
+            ManaGarden.LockSlot();
+        }
+    }
+
     public override void AnnulA()
     {
         ManaCenter.Person -= NewPerson;
@@ -543,11 +552,6 @@ public class Ability : SkillRoot
         ManaCenter.SkillPlus -= NewPlus;
         ManaCenter.SkillPersonBuff -= NewPersonBuff;
 
-        for (int i = 0; i < Auxiliary.IntParse(UnlockPos, 0); i++)
-        {
-            ManaGarden.LockSlot();
-        }
-
         if (Math.Abs(NewSkillCD) > 0.0005f)
         {
             for (int i = 0; i < ManaCenter.SkillList.Count; i++)