 exports.createBattleBetween = (test) ->
 	clearTables 'battles', 'battle_participants'
 
-	tx = transaction conn
 	locid = 123
 
-	game._createBattleBetween tx, locid, [
+	game._createBattleBetween conn, locid, [
 			{id: 1, initiative:  5}
 			{id: 2, initiative: 15}
 			{id: 5, initiative: 30}

		query "UPDATE characters SET defense = 9001"

		hpBefore = prevHP
		hpAfter = game._hitAndGetHealth tx, victim_id, power
		test.strictEqual hpBefore, hpAfter,
			"should not change health if defense is greater than damage"

		tx.rollback.sync(tx)
		test.done()

	'with armor': (test) ->

		{id: 1, index: 4, side: 0}
	], 'should involve all users and monsters of both sides in correct order'

	test.done()


