예제 #1
0
        public virtual void EndTurn()
        {
            if (Fight.Ended)
            {
                return;
            }
            ApplyFighterEvent(FighterEventType.ON_TURN_ENDED, null);

            Fight.Send(new GameFightTurnEndMessage(ContextualId));
            IsPlaying = false;
            m_turnEngine.EndTurn();
            FighterStats.OnTurnEnded();
            SpellHistory.OnTurnEnded();
            RefreshStats();
            Fight.Synchronizer.Start(Fight.NewTurn);
        }