public void EndTurn() { var nrg = Energy; Energy = 5000; var r = Lua.Environment.EachBoardCharTurn(this, this.Character); Energy = nrg; NoxicoGame.PlayerReady = false; if (Character.HasToken("flying")) { var f = Character.GetToken("flying"); f.Value--; if (!Character.HasToken("wings") || Character.GetToken("wings").HasToken("small")) { NoxicoGame.AddMessage(i18n.GetString("losewings")); f.Value = -10; } if (f.Value <= 0) { LandFromFlight(true); } } if (ParentBoard == null) { return; } ParentBoard.Update(true); if (ParentBoard.IsBurning(YPosition, XPosition)) { Hurt(10, "death_burned", null, false, false); } //Leave EntitiesToAdd/Remove to Board.Update next passive cycle. }