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

Fix Collision is a digimon effect

hooperk 2 месяцев назад
Родитель
Сommit
e0b6051723
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Assets/Scripts/Script/Permanent.cs

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

@@ -2404,11 +2404,12 @@ public class Permanent
                 Permanent attackingPermanent = GManager.instance.attackProcess.AttackingPermanent;
 
                 if (attackingPermanent != null
-                    && attackingPermanent.TopCard !=null
+                    && attackingPermanent.TopCard != null
                     && attackingPermanent.TopCard.Owner != TopCard.Owner
                     && attackingPermanent.HasCollision)
                 {
                     ActivateClass fakeCollisionClass = new();
+                    fakeCollisionClass.SetIsDigimonEffect(true);
                     fakeCollisionClass.SetUpICardEffect("Collision", _ => true, attackingPermanent.TopCard);
                     
                     if (!TopCard.CanNotBeAffected(fakeCollisionClass))//Check can be affected by opponent's Digimon effects