Ejemplo n.º 1
0
        void RemoveEffect()
        {
            grabbed.commonEffects.RemoveAt(grabbed.commonEffects.Count - 1);

            (grabbed as SC_Submission).costModifiers = savedCost;

            grabbed.UpdateValuesUI();

            SC_Player.OnNewTurn -= RemoveEffect;
        }
Ejemplo n.º 2
0
        protected override IEnumerator ApplyEffects()
        {
            int handSize = Caller.Hand.Count;

            yield return(StartCoroutine(base.ApplyEffects()));

            if (Caller.Hand.Count > handSize)
            {
                grabbed = Caller.Hand[Caller.Hand.Count - 1];

                grabbed.commonEffects.Add(new CommonEffect(CommonEffectType.Break));

                savedCost = (grabbed as SC_Submission).costModifiers;

                (grabbed as SC_Submission).costModifiers = (grabbed as SC_Submission).cost * -1;

                grabbed.UpdateValuesUI();

                SC_Player.OnNewTurn += RemoveEffect;
            }
        }