Преглед изворни кода

Update AD1-021 with skippable

hooperk пре 3 месеци
родитељ
комит
7743ef23d3
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      Assets/Scripts/CardEffect/AD1/Yellow/AD1_021.cs

+ 3 - 0
Assets/Scripts/CardEffect/AD1/Yellow/AD1_021.cs

@@ -122,6 +122,7 @@ namespace DCGO.CardEffects.AD1
                 ActivateClass activateClass = new ActivateClass();
                 activateClass.SetUpICardEffect("1 Marcus Damon is also a 6k Digimon, gains Rush & can't digivolve. Then, 1 of your Digimon may attack", CanUseCondition, card);
                 activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, 1, false, EffectDescription());
+                activateClass.SetIsSkippableFunction(IsSkippable);
                 activateClass.SetHashString("AD1_021_EoYT");
                 cardEffects.Add(activateClass);
 
@@ -135,6 +136,8 @@ namespace DCGO.CardEffects.AD1
                 }
 
                 bool CanActivateCondition(Hashtable hashtable) => CardEffectCommons.IsExistOnBattleArea(card);
+
+                bool IsSkippable(Hashtable hashtable) => !CardEffectCommons.HasMatchConditionPermanent(PermanentCondition);
                 
                 bool PermanentCondition(Permanent permanent)
                 {