Просмотр исходного кода

Fix Phantom Cards after deletion

hooperk 4 месяцев назад
Родитель
Сommit
6c1794510c
1 измененных файлов с 2 добавлено и 0 удалено
  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)
                 {