Browse Source

修复英灵召唤失效问题

LAPTOP-OM1V99U2\永远de小亡灵 10 tháng trước cách đây
mục cha
commit
0605901fc8
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  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)