mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Changed: an array now means that it can be any of the given items
This commit is contained in:
parent
8b3e5ac8e2
commit
cbfb413f22
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user