mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
38c79347ae
commit
b9580a0349
@ -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)}
|
||||
|
Loading…
Reference in New Issue
Block a user