浏览代码

修复英灵召唤失效问题

LAPTOP-OM1V99U2\永远de小亡灵 10 月之前
父节点
当前提交
0605901fc8
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      ActionTowerDefense/Assets/Scripts/PlayerController.cs

+ 8 - 0
ActionTowerDefense/Assets/Scripts/PlayerController.cs

@@ -645,6 +645,14 @@ public class PlayerController : MoveCharacter
 
     public bool CheckSummon()
     {
+        if (btnTransfiguratePress)
+        {
+            if(spirits.ultimateTimes[spirits.nowSpirit] > 0)
+            {
+                Summon((int)spirits.ownSpirits[spirits.nowSpirit] + 3);
+                return true;
+            }
+        }
         if (isBtnEastUp || isBtnWestUp || isBtnSouthUp)
         {
             if (cacheSummonTime >= 0 && conductTime <= totalCacheSummonTime)