Browse Source

修复融魂技能没有献祭的士兵也会进入cd的问题

WGL 1 month ago
parent
commit
6245331169
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ActionTowerDefense/Assets/Scripts/Conduct/ConductController.cs

+ 1 - 1
ActionTowerDefense/Assets/Scripts/Conduct/ConductController.cs

@@ -76,7 +76,6 @@ public class ConductController : MonoBehaviour
     }
     public void Conduct(int demonicId)
     {
-        cd[demonicId] = totalCD[demonicId];
         int boostNum = playerController.demonicDic[demonicId].Count;
         int dienum = (int)(boostNum * conversionRate[demonicId]/100f + 0.5f);
         if (dienum == 0 && boostNum >= 1)
@@ -85,6 +84,7 @@ public class ConductController : MonoBehaviour
         }
         if (dienum > 0)
         {
+            cd[demonicId] = totalCD[demonicId];
             GameObject obj;
             List<int> dieId = new List<int>();
             List<Demonic> dieDemonic = new List<Demonic>();