Fixed conditions

This commit is contained in:
SilentSpike 2015-05-18 13:11:08 +01:00
parent 49ef30ca5b
commit 6251248a09
2 changed files with 4 additions and 4 deletions

View File

@ -28,10 +28,10 @@ if (isNil QEFUNC(medical,setUnconscious)) then {
if (isNull _unit) then {
["Place on a unit"] call DEFUNC(common,displayTextStructured);
} else {
if (!_unit isKindOf "CAManBase") then {
if !(_unit isKindOf "CAManBase") then {
["Unit must be infantry"] call DEFUNC(common,displayTextStructured);
} else {
if (!alive _unit) then {
if !(alive _unit) then {
["Unit must be alive"] call DEFUNC(common,displayTextStructured);
} else {
_conscious = GETVAR(_unit,ACE_isUnconscious,false);

View File

@ -28,10 +28,10 @@ if (isNil QEFUNC(captives,setSurrendered)) then {
if (isNull _unit) then {
["Place on a unit"] call DEFUNC(common,displayTextStructured);
} else {
if (!_unit isKindOf "CAManBase") then {
if !(_unit isKindOf "CAManBase") then {
["Unit must be infantry"] call DEFUNC(common,displayTextStructured);
} else {
if (!alive _unit) then {
if !(alive _unit) then {
["Unit must be alive"] call DEFUNC(common,displayTextStructured);
} else {
_surrendering = GETVAR(_unit,EGVAR(captives,isSurrendering),false);