Pārlūkot izejas kodu

Fix Phantom Cards after deletion

hooperk 4 mēneši atpakaļ
vecāks
revīzija
6c1794510c
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      Assets/Scripts/Script/Permanent.cs

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

@@ -2379,6 +2379,8 @@ public class Permanent
                 Permanent attackingPermanent = GManager.instance.attackProcess.AttackingPermanent;
 
                 if (attackingPermanent != null
+                    && attackingPermanent.TopCard !=null
+                    && TopCard != null
                     && attackingPermanent.TopCard.Owner != TopCard.Owner
                     && attackingPermanent.HasCollision)
                 {