From 1816c9755f83a0824188765a874ec9b59d42506b Mon Sep 17 00:00:00 2001 From: He-Man Date: Fri, 10 Feb 2017 20:25:36 +0100 Subject: [PATCH] Update EPOCH_isBuildAllowed.sqf Only the Group Leader can place a Jammer --- .../epoch_code/compile/building/EPOCH_isBuildAllowed.sqf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/epoch_code/compile/building/EPOCH_isBuildAllowed.sqf b/Sources/epoch_code/compile/building/EPOCH_isBuildAllowed.sqf index 1ea066de..2118fc62 100644 --- a/Sources/epoch_code/compile/building/EPOCH_isBuildAllowed.sqf +++ b/Sources/epoch_code/compile/building/EPOCH_isBuildAllowed.sqf @@ -130,11 +130,11 @@ if !(_jammer isEqualTo []) then { }; } else { - if (!(EPOCH_my_groupUID isequalto "") && !((getplayeruid player) isequalto EPOCH_my_groupUID)) exitwith { - _buildingAllowed = false; - ["The Group Leader must place the Jammer!", 5] call Epoch_message; - }; if (_objType in ["PlotPole_EPOCH", "PlotPole_SIM_EPOCH"]) then { + if (!(EPOCH_my_groupUID isequalto "") && !((getplayeruid player) isequalto EPOCH_my_groupUID)) exitwith { + _buildingAllowed = false; + ["The Group Leader must place the Jammer!", 5] call Epoch_message; + }; // TODO: rework not ideal to use allmissionobjects _alljammer = allmissionobjects 'PlotPole_EPOCH'; _c = 0;