Exemplo n.º 1
0
        /// <summary> Event after move completion to apply stat change. </summary>
        private IEnumerator ApplyStatChange()
        {
            /* Unsubscribe This Effect So It Doesn't Repeat */
            move.User.Events.AfterMoveUse.Unsubscribe(ApplyStatChange);

            /* Change Stats */
            recipient.AddStatMod(stats, mod);

            /* Announce Change */
            yield return(BattleManager.Announce(recipient, announcment, true));

            yield return(new WaitForSeconds(0.5f));
        }