Browse Source

Ensure Overflow occurs when card sent straight to security from sources

hooperk 1 tháng trước cách đây
mục cha
commit
1bd3953d00
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Assets/Scripts/Script/CardObjectController.cs

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

@@ -977,6 +977,8 @@ public class CardObjectController : MonoBehaviour
     {
         if (!cardSource.Owner.SecurityCards.Contains(cardSource))
         {
+            yield return ContinuousController.instance.StartCoroutine(new AceOverflowClass(new List<CardSource>() { cardSource }).Overflow());
+            
             yield return ContinuousController.instance.StartCoroutine(RemoveFromAllArea(cardSource));
 
             if (cardSource.IsDigiEgg)