Update addons/repair/functions/fnc_canFullRepair.sqf

Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
This commit is contained in:
Grim
2023-11-29 15:56:46 -03:00
committed by GitHub
parent 03dcb5e21d
commit 42e6a9fff2

View File

@ -20,9 +20,10 @@ params ["_unit", "_target"];
TRACE_2("params",_unit,_target);
private _return = false;
private _allHitPointsDamage = getAllHitPointsDamage _target;
if ((getAllHitPointsDamage _target) isNotEqualTo []) then {
if (((getAllHitPointsDamage _target) select 2) findIf {_x > 0} != -1) then {
if (_allHitPointsDamage isNotEqualTo []) then {
if ((_allHitPointsDamage select 2) findIf {_x > 0} != -1) then {
_return = true;
};
};