Prechádzať zdrojové kódy

Merge pull request #1379 from DCGO2/hooperk-EX9-005

Hide Attack option when card has {Breeding}[Main]
x89rt2 3 mesiacov pred
rodič
commit
91f9cd1f6b
1 zmenil súbory, kde vykonal 7 pridanie a 0 odobranie
  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;