Browse Source

set target frame rate, updated shoemon line, fixed shoemon tamer play cost

mbunch_kascope 2 năm trước cách đây
mục cha
commit
2dc8551b5a

+ 1 - 1
Assets/CardBaseEntity/P/Yellow/Tamer/Arisa_Kinosaki-P-136.asset

@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:252cdf81f8801a388c29634ec7e4372c583795887f6775c22ced9bfc95fa4735
+oid sha256:20194d7b63bd6981dda5d2c92d45dba648bfe361756b176f7f224b59ab3a9bd3
 size 1293

+ 6 - 12
Assets/CardEffect/P/Yellow/ShoeShoemon_P_135.cs

@@ -60,14 +60,6 @@ namespace DCGO.CardEffects.P
                     yield return ContinuousController.instance.StartCoroutine(selectPermanentEffect.Activate());
 
                     IEnumerator SelectedPermanent(Permanent permanent)
-                    {
-                        if (permanent == null)
-                            selectedPermanent = permanent;
-
-                        yield return null;
-                    }
-
-                    if (selectedPermanent != null)
                     {
                         bool DefenderCondition(Permanent defender)
                         {
@@ -75,17 +67,19 @@ namespace DCGO.CardEffects.P
                         }
 
                         yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.GainCanNotAttack(
-                            targetPermanent: card.PermanentOfThisCard(),
+                            targetPermanent: permanent,
                             defenderCondition: DefenderCondition,
                             effectDuration: EffectDuration.UntilOpponentTurnEnd,
                             activateClass: activateClass,
                             effectName: "Can't Attack Digimon"));
 
                         yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.ChangeDigimonSAttack(
-                            targetPermanent: selectedPermanent,
-                            changeValue: -1, 
+                            targetPermanent: permanent,
+                            changeValue: -1,
                             effectDuration: EffectDuration.UntilOpponentTurnEnd,
                             activateClass: activateClass));
+
+                        yield return null;
                     }
                 }
             }
@@ -141,7 +135,7 @@ namespace DCGO.CardEffects.P
 
                 bool CanUseCondition(Hashtable hashtable)
                 {
-                    return true;
+                    return CardEffectCommons.CanTriggerOnAttack(hashtable, card);
                 }
 
                 bool CanActivateCondition(Hashtable hashtable)

+ 1 - 1
Assets/CardEffect/P/Yellow/Shoemon_P_134.cs

@@ -96,7 +96,7 @@ namespace DCGO.CardEffects.P
 
                 bool CanUseCondition(Hashtable hashtable)
                 {
-                    return true;
+                    return CardEffectCommons.CanTriggerOnAttack(hashtable, card);
                 }
 
                 bool CanActivateCondition(Hashtable hashtable)

+ 1 - 0
Assets/Scripts/ContinuousController.cs

@@ -251,6 +251,7 @@ public class ContinuousController : MonoBehaviour
 
     public async void Init()
     {
+        Application.targetFrameRate = 60;
         int random = RandomUtility.getRamdom();
         UnityEngine.Random.InitState(random);
         Debug.Log($"Game Initialize - random number sequence initialization,InitState:{random}");