From b67501572af0410cc3a5f8613f1c43dc018a3765 Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Sat, 20 Jul 2024 08:32:57 +0200 Subject: [PATCH] Remove workaround for broken CBA function --- addons/dogtags/functions/fnc_canTakeDogtag.sqf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/dogtags/functions/fnc_canTakeDogtag.sqf b/addons/dogtags/functions/fnc_canTakeDogtag.sqf index c56db0b893..31f801623c 100644 --- a/addons/dogtags/functions/fnc_canTakeDogtag.sqf +++ b/addons/dogtags/functions/fnc_canTakeDogtag.sqf @@ -23,7 +23,6 @@ if (isNull _target) exitWith {false}; // Check if disabled for faction if ((faction _target) in GVAR(disabledFactions)) exitWith {false}; -// CBA_fnc_canAddItem doesn't account for mass 0 items and unit not having any containers -!(_target call EFUNC(common,isAwake)) && {(uniform _player + vest _player + backpack _player) != ""} && {[_player, "ACE_dogtag_1"] call CBA_fnc_canAddItem} +!(_target call EFUNC(common,isAwake)) && {[_player, "ACE_dogtag_1"] call CBA_fnc_canAddItem} // Todo: Use code below in 2.18 // _player canAdd ["ACE_dogtag_1", 1, true]