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,9 +21,11 @@ local HitTiming= BND-1
--***************************************************************************** --*****************************************************************************
function Is_Hit() function Is_Hit()
--***************************************************************************** --*****************************************************************************
if EnemyHP ~= lastEHP then if lastEHP then
if EnemyHP < lastEHP then
return true return true
end end
end
return false return false
end end