Exemplo n.º 1
0
        public IEnumerator EnvironmentCannotPlayEffect(PhaseChangeAction pc, StatusEffect effect)
        {
            var newEffect = new CannotPlayCardsStatusEffect();

            newEffect.TurnTakerCriteria.IsEnvironment = true;
            newEffect.CardSource = CharacterCard;
            newEffect.UntilThisTurnIsOver(Game);

            IEnumerator coroutine = AddStatusEffect(newEffect);

            if (base.UseUnityCoroutines)
            {
                yield return(base.GameController.StartCoroutine(coroutine));
            }
            else
            {
                base.GameController.ExhaustCoroutine(coroutine);
            }
            yield break;
        }
        public IEnumerator PreventPlaysThisTurnEffect(PhaseChangeAction action, OnPhaseChangeStatusEffect sourceEffect)
        {
            System.Console.WriteLine("### DEBUG ### - ChokingInspiration.PreventPlaysThisTurnEffect triggered");

            CannotPlayCardsStatusEffect effect = new CannotPlayCardsStatusEffect();

            effect.CardSource = sourceEffect.CardSource;
            effect.TurnTakerCriteria.IsSpecificTurnTaker = base.Game.ActiveTurnTaker;
            effect.UntilThisTurnIsOver(base.Game);
            IEnumerator coroutine = base.AddStatusEffect(effect);

            if (base.UseUnityCoroutines)
            {
                yield return(base.GameController.StartCoroutine(coroutine));
            }
            else
            {
                base.GameController.ExhaustCoroutine(coroutine);
            }
            yield break;
        }