예제 #1
0
파일: Effects.cs 프로젝트: quajak/StartGame
        private void Main_Turn(object sender, MainGameWindow.TurnData e)
        {
            MainGameWindow main = sender as MainGameWindow;

            if (e.active.Name != player.Name)
            {
                return;
            }

            //Do effect
            main.DamagePlayer(damage, DamageType.fire, player);

            //Handle turn countdown
            if (turns == null)
            {
                return;
            }

            turns--;
            if (turns == 0)
            {
                RemoveEffect(main);
            }
        }