|
|
@@ -11,7 +11,7 @@ namespace DCGO.CardEffects.EX8
|
|
|
{
|
|
|
List<ICardEffect> cardEffects = new List<ICardEffect>();
|
|
|
|
|
|
- #region DNA Digivolution - Colors
|
|
|
+ #region DNA Digivolution - Names
|
|
|
|
|
|
if (timing == EffectTiming.None)
|
|
|
{
|
|
|
@@ -30,70 +30,37 @@ namespace DCGO.CardEffects.EX8
|
|
|
{
|
|
|
if (cardSource == card)
|
|
|
{
|
|
|
- bool PermanentConditionPurpleBlack(Permanent permanent)
|
|
|
+ bool PermanentConditionPiedmon(Permanent permanent)
|
|
|
{
|
|
|
- if (permanent != null)
|
|
|
+ if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card))
|
|
|
{
|
|
|
- if (permanent.TopCard != null)
|
|
|
+ if (permanent.TopCard.CardNames.Contains("Piedmon"))
|
|
|
{
|
|
|
- if (permanent.TopCard.Owner == card.Owner)
|
|
|
- {
|
|
|
- if (permanent.IsDigimon)
|
|
|
- {
|
|
|
- if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent,
|
|
|
- card))
|
|
|
- {
|
|
|
- if (permanent.TopCard.CardColors.Contains(CardColor.Purple) ||
|
|
|
- permanent.TopCard.CardColors.Contains(CardColor.Black))
|
|
|
- {
|
|
|
- if (permanent.Levels_ForJogress(card).Contains(6))
|
|
|
- {
|
|
|
- return true;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ return true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- bool PermanentConditionYellowGreen(Permanent permanent)
|
|
|
+ bool PermanentConditionMyotismon(Permanent permanent)
|
|
|
{
|
|
|
- if (permanent != null)
|
|
|
+ if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card))
|
|
|
{
|
|
|
- if (permanent.TopCard != null)
|
|
|
+ if (permanent.TopCard.CardNames.Contains("Myotismon"))
|
|
|
{
|
|
|
- if (permanent.TopCard.Owner == card.Owner)
|
|
|
- {
|
|
|
- if (permanent.IsDigimon)
|
|
|
- {
|
|
|
- if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent,
|
|
|
- card))
|
|
|
- {
|
|
|
- if (permanent.TopCard.CardColors.Contains(CardColor.Yellow) ||
|
|
|
- permanent.TopCard.CardColors.Contains(CardColor.Green))
|
|
|
- {
|
|
|
- if (permanent.Levels_ForJogress(card).Contains(6))
|
|
|
- {
|
|
|
- return true;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ return true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- JogressConditionElement[] elements =
|
|
|
+ JogressConditionElement[] elements = new JogressConditionElement[]
|
|
|
{
|
|
|
- new(PermanentConditionPurpleBlack, "a level 6 Purple or Black Digimon"),
|
|
|
- new(PermanentConditionYellowGreen, "a level 6 Yellow or Green Digimon")
|
|
|
+ new JogressConditionElement(PermanentConditionPiedmon, "Piedmon"),
|
|
|
+
|
|
|
+ new JogressConditionElement(PermanentConditionMyotismon, "Myotismon"),
|
|
|
};
|
|
|
|
|
|
JogressCondition jogressCondition = new JogressCondition(elements, 0);
|
|
|
@@ -106,8 +73,8 @@ namespace DCGO.CardEffects.EX8
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
-
|
|
|
- #region DNA Digivolution - Names
|
|
|
+
|
|
|
+ #region DNA Digivolution - Colors
|
|
|
|
|
|
if (timing == EffectTiming.None)
|
|
|
{
|
|
|
@@ -126,37 +93,70 @@ namespace DCGO.CardEffects.EX8
|
|
|
{
|
|
|
if (cardSource == card)
|
|
|
{
|
|
|
- bool PermanentConditionPiedmon(Permanent permanent)
|
|
|
+ bool PermanentConditionPurpleBlack(Permanent permanent)
|
|
|
{
|
|
|
- if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card))
|
|
|
+ if (permanent != null)
|
|
|
{
|
|
|
- if (permanent.TopCard.CardNames.Contains("Piedmon"))
|
|
|
+ if (permanent.TopCard != null)
|
|
|
{
|
|
|
- return true;
|
|
|
+ if (permanent.TopCard.Owner == card.Owner)
|
|
|
+ {
|
|
|
+ if (permanent.IsDigimon)
|
|
|
+ {
|
|
|
+ if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent,
|
|
|
+ card))
|
|
|
+ {
|
|
|
+ if (permanent.TopCard.CardColors.Contains(CardColor.Purple) ||
|
|
|
+ permanent.TopCard.CardColors.Contains(CardColor.Black))
|
|
|
+ {
|
|
|
+ if (permanent.Levels_ForJogress(card).Contains(6))
|
|
|
+ {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- bool PermanentConditionMyotismon(Permanent permanent)
|
|
|
+ bool PermanentConditionYellowGreen(Permanent permanent)
|
|
|
{
|
|
|
- if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card))
|
|
|
+ if (permanent != null)
|
|
|
{
|
|
|
- if (permanent.TopCard.CardNames.Contains("Myotismon"))
|
|
|
+ if (permanent.TopCard != null)
|
|
|
{
|
|
|
- return true;
|
|
|
+ if (permanent.TopCard.Owner == card.Owner)
|
|
|
+ {
|
|
|
+ if (permanent.IsDigimon)
|
|
|
+ {
|
|
|
+ if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent,
|
|
|
+ card))
|
|
|
+ {
|
|
|
+ if (permanent.TopCard.CardColors.Contains(CardColor.Yellow) ||
|
|
|
+ permanent.TopCard.CardColors.Contains(CardColor.Green))
|
|
|
+ {
|
|
|
+ if (permanent.Levels_ForJogress(card).Contains(6))
|
|
|
+ {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- JogressConditionElement[] elements = new JogressConditionElement[]
|
|
|
+ JogressConditionElement[] elements =
|
|
|
{
|
|
|
- new JogressConditionElement(PermanentConditionPiedmon, "Piedmon"),
|
|
|
-
|
|
|
- new JogressConditionElement(PermanentConditionMyotismon, "Myotismon"),
|
|
|
+ new(PermanentConditionPurpleBlack, "a level 6 Purple or Black Digimon"),
|
|
|
+ new(PermanentConditionYellowGreen, "a level 6 Yellow or Green Digimon")
|
|
|
};
|
|
|
|
|
|
JogressCondition jogressCondition = new JogressCondition(elements, 0);
|