Medical - Add check to FullHealLocal in case unit is burning then extinguish before healing (#8622)

* added check if burning in fullheal and then extinguish

* Add check if fire module is loaded as PabstMirror showed

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

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
Crowdedlight 2021-11-04 22:36:53 +01:00 committed by GitHub
parent 43fccfd2fd
commit 5bf4167d3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,11 @@ TRACE_1("fullHealLocal",_patient);
if (!alive _patient) exitWith {};
// check if on fire, then put out the fire before healing
if ((["ace_fire"] call EFUNC(common,isModLoaded)) && {[_patient] call EFUNC(fire,isBurning)}) then {
_patient setVariable [QEGVAR(fire,intensity), 0, true];
};
private _state = GET_SM_STATE(_patient);
TRACE_1("start",_state);