Medical Treatment - Change isAwake check for grave digging to only apply to CAManBase (#9451)

* Move awake check for bodybag grave

* Apply suggestions from code review

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
Drofseh 2023-10-01 10:42:07 -07:00 committed by GitHub
parent 38c79347ae
commit b9580a0349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,4 +20,7 @@ params ["_medic", "_patient"];
if !(["ace_trenches"] call EFUNC(common,isModLoaded)) exitWith {false};
(GVAR(allowGraveDigging) > 0) && {!(_patient call EFUNC(common,isAwake))} && {_patient call EFUNC(common,canDig)} && {_medic call EFUNC(trenches,hasEntrenchingTool)}
(GVAR(allowGraveDigging) > 0)
&& {!((_patient isKindOf "CaManBase") && {_patient call EFUNC(common,isAwake)})}
&& {_patient call EFUNC(common,canDig)}
&& {_medic call EFUNC(trenches,hasEntrenchingTool)}