Explorar o código

Update ICardEffect.cs

x89rt2 hai 5 meses
pai
achega
3dbd3b4dbc
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      Assets/Scripts/Script/ICardEffect.cs

+ 3 - 3
Assets/Scripts/Script/ICardEffect.cs

@@ -705,7 +705,7 @@ public abstract class ICardEffect
             {
                 if (!string.IsNullOrEmpty(EffectDiscription))
                 {
-                    if (EffectDiscription.Contains("[When Digivolving]"))
+                    if (EffectDiscription.StartsWith("[When Digivolving]"))
                     {
                         Hashtable hashtable = CardEffectCommons.WhenDigivolvingCheckHashtableOfCard(EffectSourceCard);
 
@@ -733,7 +733,7 @@ public abstract class ICardEffect
             {
                 if (!string.IsNullOrEmpty(EffectDiscription))
                 {
-                    if (EffectDiscription.Contains("[On Deletion]"))
+                    if (EffectDiscription.StartsWith("[On Deletion]"))
                     {
                         Permanent effectPermanent = EffectSourceCard.PermanentOfThisCard() ?? new Permanent(new List<CardSource>() { EffectSourceCard });
 
@@ -763,7 +763,7 @@ public abstract class ICardEffect
             {
                 if (!string.IsNullOrEmpty(EffectDiscription))
                 {
-                    if (EffectDiscription.Contains("[When Attacking]"))
+                    if (EffectDiscription.StartsWith("[When Attacking]"))
                     {
                         Hashtable hashtable = CardEffectCommons.OnAttackCheckHashtableOfCard(EffectSourceCard, null);