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

undo change to pierce

I bungled this process, but I am 99% sure I got it back on track. I have backups of everything in case I need to fix anything from the last 4 commits or so
S-E-I-G-E 1 год назад
Родитель
Сommit
99ce1224aa
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Assets/Scripts/CardEffectCommons/KeyWordEffects/Pierce.cs

+ 2 - 2
Assets/Scripts/CardEffectCommons/KeyWordEffects/Pierce.cs

@@ -51,7 +51,7 @@ public partial class CardEffectCommons
     #endregion
 
     #region Target 1 Digimon gains [Pierce]
-    public static IEnumerator GainPierce(Permanent targetPermanent, EffectDuration effectDuration, ICardEffect activateClass, bool isInherited = false)
+    public static IEnumerator GainPierce(Permanent targetPermanent, EffectDuration effectDuration, ICardEffect activateClass)
     {
         if (targetPermanent == null) yield break;
         if (!IsPermanentExistsOnBattleArea(targetPermanent)) yield break;
@@ -73,7 +73,7 @@ public partial class CardEffectCommons
             return false;
         }
 
-        ActivateClass pierce = CardEffectFactory.PierceEffect(targetPermanent: targetPermanent, isInheritedEffect: isInherited, condition: CanUseCondition, rootCardEffect: activateClass, targetPermanent.TopCard);
+        ActivateClass pierce = CardEffectFactory.PierceEffect(targetPermanent: targetPermanent, isInheritedEffect: false, condition: CanUseCondition, rootCardEffect: activateClass, targetPermanent.TopCard);
 
         AddEffectToPermanent(targetPermanent: targetPermanent, effectDuration: effectDuration, card: card, cardEffect: pierce, timing: EffectTiming.OnDetermineDoSecurityCheck);