tweak test
authorsheepluva
Wed, 13 Aug 2014 14:50:13 +0200
changeset 10381 d263e0abcd7c
parent 10380 07ae8fd1d7d4
child 10382 a5752075f897
tweak test
tests/lua/hellfire_burns.lua
--- 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)