From f4b7f1d71a19c4a460fdae1a882642db911eddc4 Mon Sep 17 00:00:00 2001 From: adelikat Date: Thu, 17 Sep 2009 01:19:08 +0000 Subject: [PATCH] PunchOutTraining.lua - Made it so that it only reads if opponent's health decreases (since it can increase if the opponent hits mac and has a low enough health). --- output/luaScripts/PunchOutTraining.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/output/luaScripts/PunchOutTraining.lua b/output/luaScripts/PunchOutTraining.lua index b315bcc0..ffbc6228 100644 --- a/output/luaScripts/PunchOutTraining.lua +++ b/output/luaScripts/PunchOutTraining.lua @@ -21,8 +21,10 @@ local HitTiming= BND-1 --***************************************************************************** function Is_Hit() --***************************************************************************** - if EnemyHP ~= lastEHP then - return true + if lastEHP then + if EnemyHP < lastEHP then + return true + end end return false end