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,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
|
||||
|
|
Loading…
Reference in New Issue