# HG changeset patch # User sheepluva # Date 1407934213 -7200 # Node ID d263e0abcd7cbe51c0a356584c587a634b0904ce # Parent 07ae8fd1d7d46a780a9bf07785f3abde16cf1453 tweak test diff -r 07ae8fd1d7d4 -r d263e0abcd7c 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)