| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using System.Linq;
- using Photon;
- using System;
- using Photon.Pun;
- public class BT3_040 : CEntity_Effect
- {
- public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
- {
- List<ICardEffect> cardEffects = new List<ICardEffect>();
- if (timing == EffectTiming.None)
- {
- ChangeCardColorClass changeCardColorClass = new ChangeCardColorClass();
- changeCardColorClass.SetUpICardEffect($"Also treated as blue", CanUseCondition, card);
- changeCardColorClass.SetUpChangeCardColorClass(ChangeCardColors: ChangeCardColors);
- cardEffects.Add(changeCardColorClass);
- bool CanUseCondition(Hashtable hashtable)
- {
- if (CardEffectCommons.IsExistOnBattleArea(card))
- {
- if (CardEffectCommons.IsOwnerTurn(card))
- {
- return true;
- }
- }
- return false;
- }
- List<CardColor> ChangeCardColors(CardSource cardSource, List<CardColor> CardColors)
- {
- if (cardSource == card)
- {
- CardColors.Add(CardColor.Blue);
- }
- return CardColors;
- }
- }
- if (timing == EffectTiming.None)
- {
- bool Condition()
- {
- if (CardEffectCommons.IsExistOnBattleArea(card))
- {
- if (CardEffectCommons.IsOpponentTurn(card))
- {
- return true;
- }
- }
- return false;
- }
- bool PermanentCondition(Permanent permanent)
- {
- if (CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card))
- {
- if (permanent.HasNoDigivolutionCards)
- {
- return true;
- }
- }
- return false;
- }
- cardEffects.Add(CardEffectFactory.ChangeSAttackStaticEffect(
- permanentCondition: PermanentCondition,
- changeValue: -1,
- isInheritedEffect: false,
- card: card,
- condition: Condition));
- }
- return cardEffects;
- }
- }
|