Przeglądaj źródła

Hide Attack option when card has {Breeding}[Main]

hooperk 3 miesięcy temu
rodzic
commit
99d0ee569c
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      Assets/Scripts/Script/Permanent.cs

+ 7 - 0
Assets/Scripts/Script/Permanent.cs

@@ -2101,6 +2101,13 @@ public class Permanent
             return false;
         }
 
+        // can not attack from the breeding area
+        if (CardEffectCommons.IsPermanentExistsOnBreedingArea(this))
+        {
+            //any potential CanAttackFromBreedingArea would go here, although other changes would be needed to make the option appear
+            return false;
+        }
+
         //Can not attack during another attack
         if (GManager.instance.attackProcess.IsAttacking)
             return false;