 		lib.game.hitOpponent.sync(
 			null, dbConnection,
 			request.uonline.user.character_id,
-			request.param('id')
+			request.params.id
 		)
 		response.redirect '/game/'
 

			'UPDATE armor '+
				'SET equipped = false '+
				'WHERE id = $1 AND owner = $2',
			[request.param('id'), request.uonline.user.character_id]
		response.redirect '/inventory/'





fetchCharacterFromURL = ((request, response) ->
	request.uonline.fetched_character = lib.game.getCharacter.sync null, dbConnection, request.params.name
).asyncMiddleware()


fetchMonsterFromURL = ((request, response) ->
	chars = lib.game.getCharacter.sync null, dbConnection, request.params.id
	if not chars?
		throw new Error '404'
	for i of chars
