소스 검색

修复选择攻击方式逻辑,现在不会连着抽到两次头发攻击

HY-LSZNWIN10\Administrator 8 시간 전
부모
커밋
22d2dd1258

+ 1 - 1
ActionTowerDefense/Assets/Resources/Prefab/Boss/WaterSprite/Boss_Braid.prefab

@@ -459,7 +459,7 @@ MonoBehaviour:
     - attack: 1
       weight: 2
     - attack: 3
-      weight: 1
+      weight: 3
     - attack: 5
       weight: 2
   curAttackType: 0

+ 1 - 0
ActionTowerDefense/Assets/Scripts/Boss/WaterGhost/WaterSprite.cs

@@ -159,6 +159,7 @@ public class WaterSprite : Boss
             {
                 continue;
             }
+            if(curAttackType == AttackMethods.Hair && attacks[i].attack == AttackMethods.Hair && !isAngry) continue;
             powers[i] = attacks[i].weight;
         }
         int a = RandomWithWeight(powers);