|
@@ -119,6 +119,8 @@ namespace DCGO.CardEffects.EX10
|
|
|
|
|
|
|
|
#region All Turns
|
|
#region All Turns
|
|
|
|
|
|
|
|
|
|
+ #region All Turns - Immunity
|
|
|
|
|
+
|
|
|
if (timing == EffectTiming.None)
|
|
if (timing == EffectTiming.None)
|
|
|
{
|
|
{
|
|
|
CanNotAffectedClass canNotAffectedClass = new CanNotAffectedClass();
|
|
CanNotAffectedClass canNotAffectedClass = new CanNotAffectedClass();
|
|
@@ -127,26 +129,11 @@ namespace DCGO.CardEffects.EX10
|
|
|
cardEffects.Add(canNotAffectedClass);
|
|
cardEffects.Add(canNotAffectedClass);
|
|
|
|
|
|
|
|
bool CanUseCondition(Hashtable hashtable)
|
|
bool CanUseCondition(Hashtable hashtable)
|
|
|
- {
|
|
|
|
|
- return CanUse();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- bool CanUse()
|
|
|
|
|
{
|
|
{
|
|
|
return CardEffectCommons.IsExistOnBattleAreaDigimon(card) &&
|
|
return CardEffectCommons.IsExistOnBattleAreaDigimon(card) &&
|
|
|
CardEffectCommons.HasMatchConditionPermanent(OpponentsPermanent);
|
|
CardEffectCommons.HasMatchConditionPermanent(OpponentsPermanent);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- bool PermanentCondition(Permanent permanent)
|
|
|
|
|
- {
|
|
|
|
|
- if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card))
|
|
|
|
|
- {
|
|
|
|
|
- return true;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
bool CardCondition(CardSource cardSource)
|
|
bool CardCondition(CardSource cardSource)
|
|
|
{
|
|
{
|
|
|
if (cardSource == card)
|
|
if (cardSource == card)
|
|
@@ -179,20 +166,48 @@ namespace DCGO.CardEffects.EX10
|
|
|
bool OpponentsPermanent(Permanent permanent)
|
|
bool OpponentsPermanent(Permanent permanent)
|
|
|
{
|
|
{
|
|
|
return CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card) &&
|
|
return CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card) &&
|
|
|
- permanent.GetDP(card.PermanentOfThisCard()) >= 13000;
|
|
|
|
|
|
|
+ card.PermanentOfThisCard().Boosts.Exists(x => x.ID == "AT_EX10-010");
|
|
|
}
|
|
}
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ #endregion
|
|
|
|
|
+
|
|
|
|
|
+ #region All Turns - DP
|
|
|
|
|
|
|
|
- cardEffects.Add(CardEffectFactory.ChangeDPStaticEffect(
|
|
|
|
|
- permanentCondition: PermanentCondition,
|
|
|
|
|
- changeValue: 3000,
|
|
|
|
|
- isInheritedEffect: false,
|
|
|
|
|
- card: card,
|
|
|
|
|
- condition: CanUse,
|
|
|
|
|
- effectName: () => "This Digimon gain DP +3000"));
|
|
|
|
|
|
|
+ if (timing == EffectTiming.OnRemovedField || timing == EffectTiming.OnEnterFieldAnyone || timing == EffectTiming.WhenTopCardTrashed)
|
|
|
|
|
+ {
|
|
|
|
|
+ if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
|
|
|
|
|
+ {
|
|
|
|
|
+ Permanent thisPermanent = card.PermanentOfThisCard();
|
|
|
|
|
+
|
|
|
|
|
+ bool OpponentsPermanent(Permanent permanent)
|
|
|
|
|
+ {
|
|
|
|
|
+ return CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card) &&
|
|
|
|
|
+ permanent.DP >= 13000;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
|
|
|
|
|
+ {
|
|
|
|
|
+ if (CardEffectCommons.HasMatchConditionPermanent(OpponentsPermanent))
|
|
|
|
|
+ thisPermanent.AddBoost(new Permanent.DPBoost("AT_EX10-010", 3000, null));
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ if (thisPermanent.Boosts.Exists(x => x.ID == "AT_EX10-010"))
|
|
|
|
|
+ thisPermanent.RemoveBoost("AT_EX10-010");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ if (thisPermanent.Boosts.Exists(x => x.ID == "AT_EX10-010"))
|
|
|
|
|
+ thisPermanent.RemoveBoost("AT_EX10-010");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
+ #endregion
|
|
|
|
|
+
|
|
|
return cardEffects;
|
|
return cardEffects;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|