Medical AI - Block healing when handcuffed (#7493)

This commit is contained in:
PabstMirror 2020-01-28 19:12:38 -06:00 committed by GitHub
parent 270a5a930f
commit 2feeec0d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@
* Checks if a unit is currently considered safe enough to treat itself.
*
* Arguments:
* None
* Unit <OBJECT>
*
* Return Value:
* Is unit safe enough <BOOL>
@ -15,4 +15,6 @@
* Public: No
*/
(getSuppression _this == 0) && {CBA_missionTime - (_this getVariable [QGVAR(lastFired), -30]) > 30}
(getSuppression _this == 0)
&& {CBA_missionTime - (_this getVariable [QGVAR(lastFired), -30]) > 30}
&& {!(_this getVariable [QEGVAR(captives,isHandcuffed), false])}