mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix unconscious medics not being healed by other AI medics (#7995)
This commit is contained in:
parent
d27122fa16
commit
0c84cdd375
@ -19,7 +19,8 @@
|
||||
// we ignore this here. We need to "notice" the medic that he should
|
||||
// treat other units, or else he won't do anything on his own.
|
||||
|
||||
if ([_this] call EFUNC(medical_treatment,isMedic) || {vehicle _this != _this}) exitWith {false};
|
||||
private _isMedic = [_this] call EFUNC(medical_treatment,isMedic);
|
||||
if (_isMedic && {!IS_UNCONSCIOUS(_this)} || {vehicle _this != _this}) exitWith {false};
|
||||
|
||||
// Search for a medic, prioritize unitReady
|
||||
private _medic = objNull;
|
||||
|
Loading…
Reference in New Issue
Block a user