Ejemplo n.º 1
0
        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);
            }
        }