tests/lua/hellfire_burns.lua
changeset 10381 d263e0abcd7c
parent 10380 07ae8fd1d7d4
child 10421 87e47843018e
--- a/tests/lua/hellfire_burns.lua	Wed Aug 13 13:41:19 2014 +0200
+++ b/tests/lua/hellfire_burns.lua	Wed Aug 13 14:50:13 2014 +0200
@@ -89,19 +89,16 @@
 	SetGearPosition(player, 10, 10)
 end
 
-
-function onGameTick20(gear)
+function onNewTurn()
 	if not TestRectForObstacle(300, 1500, 400, 1900, true) then
 		WriteLnToConsole('HOLE DETECTED')
 		EndLuaTest(TEST_SUCCESSFUL)
+	else
+		WriteLnToConsole('FIRE DID NOT BURN THROUGH!')
+		EndLuaTest(TEST_FAILED)
 	end
 end
 
-function onNewTurn()
-	WriteLnToConsole('FIRE DID NOT BURN HOLE!')
-	EndLuaTest(TEST_FAILED)
-end
-
 
 function onGameStart()
 	AddGear(350, 1500, gtHellishBomb, 0, 0, 0, 0)