mbunch_kascope 1 год назад
Родитель
Сommit
deaa6d83a6
2 измененных файлов с 8 добавлено и 13 удалено
  1. 6 11
      Assets/CardEffect/P/Black/P_179.cs
  2. 2 2
      ProjectSettings/ProjectSettings.asset

+ 6 - 11
Assets/CardEffect/P/Black/P_179.cs

@@ -46,7 +46,7 @@ namespace DCGO.CardEffects.P
             if (timing == EffectTiming.OnEnterFieldAnyone)
             {
                 ActivateClass activateClass = new ActivateClass();
-                activateClass.SetUpICardEffect("Play [Device] option from hand or trash", CanUseCondition, card);
+                activateClass.SetUpICardEffect("Place [Device] option from hand or trash", CanUseCondition, card);
                 activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, true, EffectDiscription());
                 cardEffects.Add(activateClass);
 
@@ -152,16 +152,11 @@ namespace DCGO.CardEffects.P
                     {
                         yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.PlaceDelayOptionCards(card: selectedDevice, cardEffect: activateClass));
 
-                        ChangeBaseDPClass changeDPClass = new ChangeBaseDPClass();
-                        changeDPClass.SetUpICardEffect("+3000 DP", (hashtable) => true, card);
-                        changeDPClass.SetUpChangeBaseDPClass(changeDPFunc: ChangeDP, permanentCondition: permanentCondition, isUpDownFunc: () => false, isMinusDPFunc: () => false);
-                        selectedDevice.PermanentOfThisCard().UntilEachTurnEndEffects.Add((_timing) => changeDPClass);
-
-                        int ChangeDP(Permanent permanent, int DP)
-                            => DP + 3000;
-
-                        bool permanentCondition(Permanent permanent)
-                            => permanent != null && permanent.TopCard != null && permanent == selectedDevice.PermanentOfThisCard();
+                        yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.ChangeDigimonDP(
+                                        targetPermanent: card.PermanentOfThisCard(), 
+                                        changeValue: 3000, 
+                                        effectDuration: EffectDuration.UntilOpponentTurnEnd, 
+                                        activateClass: activateClass));
                     }
                 }
             }

+ 2 - 2
ProjectSettings/ProjectSettings.asset

@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:5d59bdfba6775c2da342aff0bda197d941edaeb95d316818d2f68788ca597dc2
-size 20168
+oid sha256:fc70de94c0f23bc320bab1dcaed46ec6cbb92ad5eefde28beb4356665992a291
+size 20166