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:
parent
bd8a0f3b10
commit
f4b7f1d71a
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue