mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix being unable to throw last mag (#5242)
This commit is contained in:
parent
b3889d9d7e
commit
c9b26fa3e5
@ -37,7 +37,7 @@ if (_throwable isEqualTo [] && {!_primed}) exitWith {
|
||||
private _throwableMag = _throwable param [0, "#none"];
|
||||
|
||||
// If not primed, double check we actually have the magazine in inventory
|
||||
if ((!_primed) && {!(_throwableMag in (magazines ACE_player))}) exitWith {
|
||||
if ((!_primed) && {!((_throwableMag in (uniformItems ACE_player)) || {_throwableMag in (vestItems ACE_player)} || {_throwableMag in (backpackItems ACE_player)})}) exitWith {
|
||||
[ACE_player, "No valid throwable (glitched currentThrowable)"] call FUNC(exitThrowMode);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user