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