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).

This commit is contained in:
adelikat 2009-09-17 01:19:08 +00:00
parent bd8a0f3b10
commit f4b7f1d71a
1 changed files with 4 additions and 2 deletions

View File

@ -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