Changed: an array now means that it can be any of the given items

This commit is contained in:
Glowbal 2015-02-22 18:42:30 +01:00
parent 8b3e5ac8e2
commit cbfb413f22

View File

@ -23,7 +23,11 @@ _items = _this select 2;
_return = true;
{
if !([_medic, _patient, _x] call FUNC(hasItem)) exitwith {
//
if (typeName _x == "ARRAY" && {({[_medic, _patient, _x] call FUNC(hasItem)}count _x == 0)}) exitwith {
_return = false;
};
if (typeName _x == "STRING" && {!([_medic, _patient, _x] call FUNC(hasItem))}) exitwith {
_return = false;
};
}foreach _items;