x89rt2 пре 1 месец
родитељ
комит
251dac4b5b
1 измењених фајлова са 26 додато и 0 уклоњено
  1. 26 0
      Assets/Scripts/CardEffect/EX12/Purple/EX12_004.cs

+ 26 - 0
Assets/Scripts/CardEffect/EX12/Purple/EX12_004.cs

@@ -0,0 +1,26 @@
+using System.Collections.Generic;
+
+// Onibimon
+namespace DCGO.CardEffects.EX12
+{
+    public class EX12_004 : CEntity_Effect
+    {
+        public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
+        {
+            List<ICardEffect> cardEffects = new List<ICardEffect>();
+
+            #region Inherited Fortitude
+            if (timing == EffectTiming.OnDestroyedAnyone)
+            {
+                bool PermanentCondition()
+                {
+                    return card.PermanentOfThisCard().TopCard.EqualsTraits("TB");
+                }
+
+                cardEffects.Add(CardEffectFactory.FortitudeSelfEffect(isInheritedEffect: true, card: card, condition: PermanentCondition));
+            }
+            #endregion
+            return cardEffects;
+        }
+    }
+}