Don't allow jerry fill from destroyed fuel source

Vanilla commit:

90251abab3

9204c15d3f
This commit is contained in:
ebaydayz
2016-09-21 16:53:29 -04:00
parent ef065aeb35
commit 33cf7611ed

View File

@@ -311,7 +311,7 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur
};
//Allow player to fill Fuel can
if (_hasEmptyFuelCan && {_isFuel} && {!a_player_jerryfilling}) then {
if (_hasEmptyFuelCan && {_isFuel} && {!a_player_jerryfilling} && {_isAlive}) then {
if (s_player_fillfuel < 0) then {
s_player_fillfuel = player addAction [localize "str_actions_self_10", "\z\addons\dayz_code\actions\jerry_fill.sqf",_cursorTarget, 1, false, true];
};