Support for unlimited dosages

This commit is contained in:
Glowbal 2015-03-03 20:16:04 +01:00
parent 7f2d41b1a8
commit c5a27d3cd7

View File

@ -49,7 +49,7 @@ if (!_foundEntry) then {
_usedMeds = _target getvariable [_variable, 0];
if (_usedMeds >= floor (_maxDosage + round(random(2)))) then {
if (_usedMeds >= floor (_maxDosage + round(random(2))) && _maxDosage >= 1) then {
[_target] call FUNC(setDead);
};