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); } }