Filter player medics (#4444)

This commit is contained in:
BaerMitUmlaut 2016-09-20 16:01:54 +02:00 committed by commy2
parent c395af4c21
commit b1f6973772

View File

@ -19,7 +19,7 @@
if ([_this] call EFUNC(medical,isMedic) || {vehicle _this != _this}) exitWith {false};
{
if ([_x] call EFUNC(medical,isMedic)) exitWith {
if ([_x] call EFUNC(medical,isMedic) && {!([_x] call EFUNC(common,isPlayer))}) exitWith {
_this setVariable [QGVAR(assignedMedic), _x];
true
};