Procházet zdrojové kódy

Fix Permanent Index not clearing

hooperk před 4 měsíci
rodič
revize
240319e426
1 změnil soubory, kde provedl 8 přidání a 1 odebrání
  1. 8 1
      Assets/Scripts/Script/MultipleSkills.cs

+ 8 - 1
Assets/Scripts/Script/MultipleSkills.cs

@@ -286,7 +286,7 @@ public class MultipleSkills : MonoBehaviourPunCallbacks
                                 _CanEndSelectCondition: null,
                                 _MaxCount: 1,
                                 _CanEndNotMax: false,
-                                _CanNoSelect: () => skillInfos_active.All(skillInfo => skillInfo.CardEffect.IsOptional),
+                                _CanNoSelect: () => skillInfos_active.All(skillInfo => skillInfo.CardEffect.IsOptionalCondition(skillInfo.Hashtable)),
                                 CanLookReverseCard: true,
                                 skillInfos: skillInfos_active,
                                 root: SelectCardEffect.Root.None));
@@ -295,6 +295,13 @@ public class MultipleSkills : MonoBehaviourPunCallbacks
                                 {
                                     skillIndex = GManager.instance.selectCardPanel.SelectedIndex[0];
                                 }
+                                else
+                                {
+                                    foreach (FieldPermanentCard fieldPermanentCard in player.FieldPermanentObjects)
+                                    {
+                                        fieldPermanentCard.OffPermanentIndexText();
+                                    }
+                                }
                             }
 
                             else