BT11_071.cs 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. using Photon.Pun;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. namespace DCGO.CardEffects.BT11
  7. {
  8. public class BT11_071 : CEntity_Effect
  9. {
  10. public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
  11. {
  12. List<ICardEffect> cardEffects = new List<ICardEffect>();
  13. if (timing == EffectTiming.None)
  14. {
  15. ChangeCardNamesClass changeCardNamesClass = new ChangeCardNamesClass();
  16. changeCardNamesClass.SetUpICardEffect("Also treated as [DarkKnightmon]", CanUseCondition, card);
  17. changeCardNamesClass.SetUpChangeCardNamesClass(changeCardNames: changeCardNames);
  18. cardEffects.Add(changeCardNamesClass);
  19. bool CanUseCondition(Hashtable hashtable)
  20. {
  21. return true;
  22. }
  23. List<string> changeCardNames(CardSource cardSource, List<string> CardNames)
  24. {
  25. if (cardSource == card)
  26. {
  27. CardNames.Add("DarkKnightmon");
  28. }
  29. return CardNames;
  30. }
  31. }
  32. if (timing == EffectTiming.None)
  33. {
  34. ChangeCardNamesClass changeCardNamesClass = new ChangeCardNamesClass();
  35. changeCardNamesClass.SetUpICardEffect("Also treated as [Tuwarmon]", CanUseCondition, card);
  36. changeCardNamesClass.SetUpChangeCardNamesClass(changeCardNames: changeCardNames);
  37. cardEffects.Add(changeCardNamesClass);
  38. bool CanUseCondition(Hashtable hashtable)
  39. {
  40. return true;
  41. }
  42. List<string> changeCardNames(CardSource cardSource, List<string> CardNames)
  43. {
  44. if (cardSource == card)
  45. {
  46. CardNames.Add("Tuwarmon");
  47. }
  48. return CardNames;
  49. }
  50. }
  51. if (timing == EffectTiming.OnEnterFieldAnyone)
  52. {
  53. ActivateClass activateClass = new ActivateClass();
  54. activateClass.SetUpICardEffect("Place 1 card to digivolution cards and De-Digivolve 1", CanUseCondition, card);
  55. activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, false, EffectDiscription());
  56. cardEffects.Add(activateClass);
  57. string EffectDiscription()
  58. {
  59. return "[On Play] You may place 1 Digimon card with [Knightmon] in its name or [Bagra Army] in its traits from your hand or trash under this Digimon as its top digivolution card. Then, if [Tuwarmon] is in this Digimon's digivolution cards, <De-Digivolve 1> 3 of your opponent's Digimon.";
  60. }
  61. bool CanSelectCardCondition(CardSource cardSource)
  62. {
  63. if (cardSource.IsDigimon)
  64. {
  65. if (cardSource.ContainsCardName("Knightmon"))
  66. {
  67. return true;
  68. }
  69. if (cardSource.CardTraits.Contains("Bagra Army"))
  70. {
  71. return true;
  72. }
  73. if (cardSource.CardTraits.Contains("BagraArmy"))
  74. {
  75. return true;
  76. }
  77. }
  78. return false;
  79. }
  80. bool CanSelectPermanentCondition(Permanent permanent)
  81. {
  82. if (CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card))
  83. {
  84. if (permanent.CanSelectBySkill(activateClass))
  85. {
  86. return true;
  87. }
  88. }
  89. return false;
  90. }
  91. bool CanUseCondition(Hashtable hashtable)
  92. {
  93. return CardEffectCommons.CanTriggerOnPlay(hashtable, card);
  94. }
  95. bool CanActivateCondition(Hashtable hashtable)
  96. {
  97. if (CardEffectCommons.IsExistOnBattleArea(card))
  98. {
  99. return true;
  100. }
  101. return false;
  102. }
  103. IEnumerator ActivateCoroutine(Hashtable _hashtable)
  104. {
  105. if (CardEffectCommons.IsExistOnBattleArea(card))
  106. {
  107. bool canSelectHand = card.Owner.HandCards.Count(CanSelectCardCondition) >= 1;
  108. bool canSelectTrash = CardEffectCommons.HasMatchConditionOwnersCardInTrash(card, CanSelectCardCondition);
  109. if (canSelectHand || canSelectTrash)
  110. {
  111. if (canSelectHand && canSelectTrash)
  112. {
  113. List<SelectionElement<bool>> selectionElements = new List<SelectionElement<bool>>()
  114. {
  115. new SelectionElement<bool>(message: $"From hand", value : true, spriteIndex: 0),
  116. new SelectionElement<bool>(message: $"From trash", value : false, spriteIndex: 1),
  117. };
  118. string selectPlayerMessage = "From which area do you select a card?";
  119. string notSelectPlayerMessage = "The opponent is choosing from which area to select a card.";
  120. GManager.instance.userSelectionManager.SetBoolSelection(selectionElements: selectionElements, selectPlayer: card.Owner, selectPlayerMessage: selectPlayerMessage, notSelectPlayerMessage: notSelectPlayerMessage);
  121. }
  122. else
  123. {
  124. GManager.instance.userSelectionManager.SetBool(canSelectHand);
  125. }
  126. yield return ContinuousController.instance.StartCoroutine(GManager.instance.userSelectionManager.WaitForEndSelect());
  127. List<CardSource> selectedCards = new List<CardSource>();
  128. IEnumerator SelectCardCoroutine(CardSource cardSource)
  129. {
  130. selectedCards.Add(cardSource);
  131. yield return null;
  132. }
  133. bool fromHand = GManager.instance.userSelectionManager.SelectedBoolValue;
  134. if (fromHand)
  135. {
  136. int maxCount = 1;
  137. SelectHandEffect selectHandEffect = GManager.instance.GetComponent<SelectHandEffect>();
  138. selectHandEffect.SetUp(
  139. selectPlayer: card.Owner,
  140. canTargetCondition: CanSelectCardCondition,
  141. canTargetCondition_ByPreSelecetedList: null,
  142. canEndSelectCondition: null,
  143. maxCount: maxCount,
  144. canNoSelect: true,
  145. canEndNotMax: false,
  146. isShowOpponent: true,
  147. selectCardCoroutine: SelectCardCoroutine,
  148. afterSelectCardCoroutine: null,
  149. mode: SelectHandEffect.Mode.Custom,
  150. cardEffect: activateClass);
  151. selectHandEffect.SetUpCustomMessage("Select 1 card to place on top of digivolution cards.", "The opponent is selecting 1 card to place on top of digivolution cards.");
  152. selectHandEffect.SetUpCustomMessage_ShowCard("Digivolution Card");
  153. yield return StartCoroutine(selectHandEffect.Activate());
  154. }
  155. else
  156. {
  157. int maxCount = 1;
  158. SelectCardEffect selectCardEffect = GManager.instance.GetComponent<SelectCardEffect>();
  159. selectCardEffect.SetUp(
  160. canTargetCondition: CanSelectCardCondition,
  161. canTargetCondition_ByPreSelecetedList: null,
  162. canEndSelectCondition: null,
  163. canNoSelect: () => true,
  164. selectCardCoroutine: SelectCardCoroutine,
  165. afterSelectCardCoroutine: null,
  166. message: "Select 1 card to place on top of digivolution cards.",
  167. maxCount: maxCount,
  168. canEndNotMax: false,
  169. isShowOpponent: true,
  170. mode: SelectCardEffect.Mode.Custom,
  171. root: SelectCardEffect.Root.Trash,
  172. customRootCardList: null,
  173. canLookReverseCard: true,
  174. selectPlayer: card.Owner,
  175. cardEffect: activateClass);
  176. selectCardEffect.SetUpCustomMessage("Select 1 card to place on top of digivolution cards.", "The opponent is selecting 1 card to place on top of digivolution cards.");
  177. selectCardEffect.SetUpCustomMessage_ShowCard("Digivolution Card");
  178. yield return ContinuousController.instance.StartCoroutine(selectCardEffect.Activate());
  179. }
  180. if (selectedCards.Count >= 1)
  181. {
  182. if (CardEffectCommons.IsExistOnBattleArea(card))
  183. {
  184. yield return ContinuousController.instance.StartCoroutine(card.PermanentOfThisCard().AddDigivolutionCardsTop(selectedCards, activateClass));
  185. }
  186. }
  187. }
  188. }
  189. if (CardEffectCommons.IsExistOnBattleArea(card))
  190. {
  191. if (card.PermanentOfThisCard().DigivolutionCards.Count((cardSource) => cardSource.CardNames.Contains("Tuwarmon")) >= 1)
  192. {
  193. if (CardEffectCommons.HasMatchConditionPermanent(CanSelectPermanentCondition))
  194. {
  195. int maxCount = Math.Min(3, CardEffectCommons.MatchConditionPermanentCount(CanSelectPermanentCondition));
  196. SelectPermanentEffect selectPermanentEffect = GManager.instance.GetComponent<SelectPermanentEffect>();
  197. selectPermanentEffect.SetUp(
  198. selectPlayer: card.Owner,
  199. canTargetCondition: CanSelectPermanentCondition,
  200. canTargetCondition_ByPreSelecetedList: null,
  201. canEndSelectCondition: null,
  202. maxCount: maxCount,
  203. canNoSelect: false,
  204. canEndNotMax: false,
  205. selectPermanentCoroutine: SelectPermanentCoroutine,
  206. afterSelectPermanentCoroutine: null,
  207. mode: SelectPermanentEffect.Mode.Custom,
  208. cardEffect: activateClass);
  209. selectPermanentEffect.SetUpCustomMessage("Select Digimon to De-Digivolve.", "The opponent is selecting Digimon to De-Digivolve.");
  210. yield return ContinuousController.instance.StartCoroutine(selectPermanentEffect.Activate());
  211. IEnumerator SelectPermanentCoroutine(Permanent permanent)
  212. {
  213. Permanent selectedPermanent = permanent;
  214. yield return ContinuousController.instance.StartCoroutine(new IDegeneration(selectedPermanent, 1, activateClass).Degeneration());
  215. }
  216. }
  217. }
  218. }
  219. }
  220. }
  221. if (timing == EffectTiming.OnEnterFieldAnyone)
  222. {
  223. ActivateClass activateClass = new ActivateClass();
  224. activateClass.SetUpICardEffect("Place 1 card to digivolution cards and De-Digivolve 1", CanUseCondition, card);
  225. activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, false, EffectDiscription());
  226. cardEffects.Add(activateClass);
  227. string EffectDiscription()
  228. {
  229. return "[When Digivolving] You may place 1 Digimon card with [Knightmon] in its name or [Bagra Army] in its traits from your hand or trash under this Digimon as its top digivolution card. Then, if [Tuwarmon] is in this Digimon's digivolution cards, <De-Digivolve 1> 3 of your opponent's Digimon.";
  230. }
  231. bool CanSelectCardCondition(CardSource cardSource)
  232. {
  233. if (cardSource.IsDigimon)
  234. {
  235. if (cardSource.ContainsCardName("Knightmon"))
  236. {
  237. return true;
  238. }
  239. if (cardSource.CardTraits.Contains("Bagra Army"))
  240. {
  241. return true;
  242. }
  243. if (cardSource.CardTraits.Contains("BagraArmy"))
  244. {
  245. return true;
  246. }
  247. }
  248. return false;
  249. }
  250. bool CanSelectPermanentCondition(Permanent permanent)
  251. {
  252. if (CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card))
  253. {
  254. if (permanent.CanSelectBySkill(activateClass))
  255. {
  256. return true;
  257. }
  258. }
  259. return false;
  260. }
  261. bool CanUseCondition(Hashtable hashtable)
  262. {
  263. return CardEffectCommons.CanTriggerWhenDigivolving(hashtable, card);
  264. }
  265. bool CanActivateCondition(Hashtable hashtable)
  266. {
  267. if (CardEffectCommons.IsExistOnBattleArea(card))
  268. {
  269. return true;
  270. }
  271. return false;
  272. }
  273. IEnumerator ActivateCoroutine(Hashtable _hashtable)
  274. {
  275. if (CardEffectCommons.IsExistOnBattleArea(card))
  276. {
  277. bool canSelectHand = card.Owner.HandCards.Count(CanSelectCardCondition) >= 1;
  278. bool canSelectTrash = CardEffectCommons.HasMatchConditionOwnersCardInTrash(card, CanSelectCardCondition);
  279. if (canSelectHand || canSelectTrash)
  280. {
  281. if (canSelectHand && canSelectTrash)
  282. {
  283. List<SelectionElement<bool>> selectionElements = new List<SelectionElement<bool>>()
  284. {
  285. new SelectionElement<bool>(message: $"From hand", value : true, spriteIndex: 0),
  286. new SelectionElement<bool>(message: $"From trash", value : false, spriteIndex: 1),
  287. };
  288. string selectPlayerMessage = "From which area do you select a card?";
  289. string notSelectPlayerMessage = "The opponent is choosing from which area to select a card.";
  290. GManager.instance.userSelectionManager.SetBoolSelection(selectionElements: selectionElements, selectPlayer: card.Owner, selectPlayerMessage: selectPlayerMessage, notSelectPlayerMessage: notSelectPlayerMessage);
  291. }
  292. else
  293. {
  294. GManager.instance.userSelectionManager.SetBool(canSelectHand);
  295. }
  296. yield return ContinuousController.instance.StartCoroutine(GManager.instance.userSelectionManager.WaitForEndSelect());
  297. List<CardSource> selectedCards = new List<CardSource>();
  298. IEnumerator SelectCardCoroutine(CardSource cardSource)
  299. {
  300. selectedCards.Add(cardSource);
  301. yield return null;
  302. }
  303. bool fromHand = GManager.instance.userSelectionManager.SelectedBoolValue;
  304. if (fromHand)
  305. {
  306. int maxCount = 1;
  307. SelectHandEffect selectHandEffect = GManager.instance.GetComponent<SelectHandEffect>();
  308. selectHandEffect.SetUp(
  309. selectPlayer: card.Owner,
  310. canTargetCondition: CanSelectCardCondition,
  311. canTargetCondition_ByPreSelecetedList: null,
  312. canEndSelectCondition: null,
  313. maxCount: maxCount,
  314. canNoSelect: true,
  315. canEndNotMax: false,
  316. isShowOpponent: true,
  317. selectCardCoroutine: SelectCardCoroutine,
  318. afterSelectCardCoroutine: null,
  319. mode: SelectHandEffect.Mode.Custom,
  320. cardEffect: activateClass);
  321. selectHandEffect.SetUpCustomMessage("Select 1 card to place on top of digivolution cards.", "The opponent is selecting 1 card to place on top of digivolution cards.");
  322. selectHandEffect.SetUpCustomMessage_ShowCard("Digivolution Card");
  323. yield return StartCoroutine(selectHandEffect.Activate());
  324. }
  325. else
  326. {
  327. int maxCount = 1;
  328. SelectCardEffect selectCardEffect = GManager.instance.GetComponent<SelectCardEffect>();
  329. selectCardEffect.SetUp(
  330. canTargetCondition: CanSelectCardCondition,
  331. canTargetCondition_ByPreSelecetedList: null,
  332. canEndSelectCondition: null,
  333. canNoSelect: () => true,
  334. selectCardCoroutine: SelectCardCoroutine,
  335. afterSelectCardCoroutine: null,
  336. message: "Select 1 card to place on top of digivolution cards.",
  337. maxCount: maxCount,
  338. canEndNotMax: false,
  339. isShowOpponent: true,
  340. mode: SelectCardEffect.Mode.Custom,
  341. root: SelectCardEffect.Root.Trash,
  342. customRootCardList: null,
  343. canLookReverseCard: true,
  344. selectPlayer: card.Owner,
  345. cardEffect: activateClass);
  346. selectCardEffect.SetUpCustomMessage("Select 1 card to place on top of digivolution cards.", "The opponent is selecting 1 card to place on top of digivolution cards.");
  347. selectCardEffect.SetUpCustomMessage_ShowCard("Digivolution Card");
  348. yield return ContinuousController.instance.StartCoroutine(selectCardEffect.Activate());
  349. }
  350. if (selectedCards.Count >= 1)
  351. {
  352. if (CardEffectCommons.IsExistOnBattleArea(card))
  353. {
  354. yield return ContinuousController.instance.StartCoroutine(card.PermanentOfThisCard().AddDigivolutionCardsTop(selectedCards, activateClass));
  355. }
  356. }
  357. }
  358. }
  359. if (CardEffectCommons.IsExistOnBattleArea(card))
  360. {
  361. if (card.PermanentOfThisCard().DigivolutionCards.Count((cardSource) => cardSource.CardNames.Contains("Tuwarmon")) >= 1)
  362. {
  363. if (CardEffectCommons.HasMatchConditionPermanent(CanSelectPermanentCondition))
  364. {
  365. int maxCount = Math.Min(3, CardEffectCommons.MatchConditionPermanentCount(CanSelectPermanentCondition));
  366. SelectPermanentEffect selectPermanentEffect = GManager.instance.GetComponent<SelectPermanentEffect>();
  367. selectPermanentEffect.SetUp(
  368. selectPlayer: card.Owner,
  369. canTargetCondition: CanSelectPermanentCondition,
  370. canTargetCondition_ByPreSelecetedList: null,
  371. canEndSelectCondition: null,
  372. maxCount: maxCount,
  373. canNoSelect: false,
  374. canEndNotMax: false,
  375. selectPermanentCoroutine: SelectPermanentCoroutine,
  376. afterSelectPermanentCoroutine: null,
  377. mode: SelectPermanentEffect.Mode.Custom,
  378. cardEffect: activateClass);
  379. selectPermanentEffect.SetUpCustomMessage("Select Digimon to De-Digivolve.", "The opponent is selecting Digimon to De-Digivolve.");
  380. yield return ContinuousController.instance.StartCoroutine(selectPermanentEffect.Activate());
  381. IEnumerator SelectPermanentCoroutine(Permanent permanent)
  382. {
  383. Permanent selectedPermanent = permanent;
  384. yield return ContinuousController.instance.StartCoroutine(new IDegeneration(selectedPermanent, 1, activateClass).Degeneration());
  385. }
  386. }
  387. }
  388. }
  389. }
  390. }
  391. if (timing == EffectTiming.OnDestroyedAnyone)
  392. {
  393. ActivateClass activateClass = new ActivateClass();
  394. activateClass.SetUpICardEffect("Return cards from trash to hand", CanUseCondition, card);
  395. activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, true, EffectDiscription());
  396. cardEffects.Add(activateClass);
  397. string EffectDiscription()
  398. {
  399. return "[On Deletion] Return up to 2 black and purple Digimon cards from your Trash to your hand.";
  400. }
  401. bool CanSelectCardCondition(CardSource cardSource)
  402. {
  403. if (cardSource.IsDigimon)
  404. {
  405. if (cardSource.HasCardColor(CardColor.Black) || cardSource.HasCardColor(CardColor.Purple))
  406. {
  407. return true;
  408. }
  409. }
  410. return false;
  411. }
  412. bool CanUseCondition(Hashtable hashtable)
  413. {
  414. return CardEffectCommons.CanTriggerOnDeletion(hashtable, card, activateClass);
  415. }
  416. bool CanActivateCondition(Hashtable hashtable)
  417. {
  418. if (CardEffectCommons.CanActivateOnDeletion(card, activateClass))
  419. {
  420. if (CardEffectCommons.HasMatchConditionOwnersCardInTrash(card, CanSelectCardCondition))
  421. {
  422. return true;
  423. }
  424. }
  425. return false;
  426. }
  427. IEnumerator ActivateCoroutine(Hashtable _hashtable)
  428. {
  429. if (CardEffectCommons.HasMatchConditionOwnersCardInTrash(card, CanSelectCardCondition))
  430. {
  431. int maxCount = Math.Min(2, card.Owner.TrashCards.Count(CanSelectCardCondition));
  432. SelectCardEffect selectCardEffect = GManager.instance.GetComponent<SelectCardEffect>();
  433. selectCardEffect.SetUp(
  434. canTargetCondition: CanSelectCardCondition,
  435. canTargetCondition_ByPreSelecetedList: null,
  436. canEndSelectCondition: CanEndSelectCondition,
  437. canNoSelect: () => true,
  438. selectCardCoroutine: null,
  439. afterSelectCardCoroutine: null,
  440. message: "Select cards to add to your hand.",
  441. maxCount: maxCount,
  442. canEndNotMax: true,
  443. isShowOpponent: true,
  444. mode: SelectCardEffect.Mode.AddHand,
  445. root: SelectCardEffect.Root.Trash,
  446. customRootCardList: null,
  447. canLookReverseCard: true,
  448. selectPlayer: card.Owner,
  449. cardEffect: activateClass);
  450. yield return ContinuousController.instance.StartCoroutine(selectCardEffect.Activate());
  451. bool CanEndSelectCondition(List<CardSource> cardSources)
  452. {
  453. if (CardEffectCommons.HasNoElement(cardSources))
  454. {
  455. return false;
  456. }
  457. return true;
  458. }
  459. }
  460. }
  461. }
  462. if (timing == EffectTiming.None)
  463. {
  464. AddDigiXrosConditionClass addDigiXrosConditionClass = new AddDigiXrosConditionClass();
  465. addDigiXrosConditionClass.SetUpICardEffect($"DigiXros", CanUseCondition, card);
  466. addDigiXrosConditionClass.SetUpAddDigiXrosConditionClass(getDigiXrosCondition: GetDigiXros);
  467. addDigiXrosConditionClass.SetNotShowUI(true);
  468. cardEffects.Add(addDigiXrosConditionClass);
  469. bool CanUseCondition(Hashtable hashtable)
  470. {
  471. return true;
  472. }
  473. DigiXrosCondition GetDigiXros(CardSource cardSource)
  474. {
  475. if (cardSource == card)
  476. {
  477. DigiXrosConditionElement element = new DigiXrosConditionElement(CanSelectCardCondition, "DarkKnightmon");
  478. bool CanSelectCardCondition(CardSource cardSource)
  479. {
  480. if (cardSource != null)
  481. {
  482. if (cardSource.Owner == card.Owner)
  483. {
  484. if (cardSource.IsDigimon)
  485. {
  486. if (cardSource.CardNames_DigiXros.Contains("DarkKnightmon"))
  487. {
  488. return true;
  489. }
  490. }
  491. }
  492. }
  493. return false;
  494. }
  495. DigiXrosConditionElement element1 = new DigiXrosConditionElement(CanSelectCardCondition1, "Tuwarmon");
  496. bool CanSelectCardCondition1(CardSource cardSource)
  497. {
  498. if (cardSource != null)
  499. {
  500. if (cardSource.Owner == card.Owner)
  501. {
  502. if (cardSource.IsDigimon)
  503. {
  504. if (cardSource.CardNames_DigiXros.Contains("Tuwarmon"))
  505. {
  506. return true;
  507. }
  508. }
  509. }
  510. }
  511. return false;
  512. }
  513. List<DigiXrosConditionElement> elements = new List<DigiXrosConditionElement>() { element, element1 };
  514. DigiXrosCondition digiXrosCondition = new DigiXrosCondition(elements, null, 2);
  515. return digiXrosCondition;
  516. }
  517. return null;
  518. }
  519. }
  520. return cardEffects;
  521. }
  522. }
  523. }