Browse Source

Merge pull request #1199 from DCGO2/hooperk-collision

Prevent breeding area from gaining blocker
x89rt2 4 months ago
parent
commit
ecede6fb35
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Assets/Scripts/Script/Permanent.cs

+ 1 - 2
Assets/Scripts/Script/Permanent.cs

@@ -2374,13 +2374,12 @@ public class Permanent
         get
         get
         {
         {
             #region if attacking digimon has collision
             #region if attacking digimon has collision
-            if (GManager.instance.attackProcess.ActiveAttack())
+            if (GManager.instance.attackProcess.ActiveAttack() && CardEffectCommons.IsPermanentExistsOnBattleArea(this))
             {
             {
                 Permanent attackingPermanent = GManager.instance.attackProcess.AttackingPermanent;
                 Permanent attackingPermanent = GManager.instance.attackProcess.AttackingPermanent;
 
 
                 if (attackingPermanent != null
                 if (attackingPermanent != null
                     && attackingPermanent.TopCard !=null
                     && attackingPermanent.TopCard !=null
-                    && TopCard != null
                     && attackingPermanent.TopCard.Owner != TopCard.Owner
                     && attackingPermanent.TopCard.Owner != TopCard.Owner
                     && attackingPermanent.HasCollision)
                     && attackingPermanent.HasCollision)
                 {
                 {