Explorar o código

修改变身时召兵bug

SZAND\msx_2 hai 1 ano
pai
achega
2cf2d00560

+ 1 - 0
ActionTowerDefense/Assets/Resources/Prefab/Player.prefab

@@ -984,6 +984,7 @@ MonoBehaviour:
   corpse: {fileID: 2968886010519197762}
   needCorpses: 14000000140000001400000014000000
   isUltimate: 0
+  canTranSummon: 0
   isMpRepel: 1
   maxFlyHeight: 0
   endTranSummon: 1

+ 3 - 3
ActionTowerDefense/Assets/Scripts/PlayerController.cs

@@ -539,7 +539,7 @@ public class PlayerController : MoveCharacter
         {
             if (isTransfiguration && !canTranSummon)
             {
-                return false;
+                return true;
             }
             Summon(0);
             return true;
@@ -548,7 +548,7 @@ public class PlayerController : MoveCharacter
         {
             if (isTransfiguration && !canTranSummon)
             {
-                return false;
+                return true;
             }
             Summon(1);
             return true;
@@ -557,7 +557,7 @@ public class PlayerController : MoveCharacter
         {
             if (isTransfiguration && !canTranSummon)
             {
-                return false;
+                return true;
             }
             Summon(2);
             return true;