Merge pull request #1670 from Mikeeeyy/patch-20

Fix blood over maximum
This commit is contained in:
vbawol
2015-09-11 20:30:42 -05:00

View File

@@ -7,8 +7,7 @@ _TransfusionInfection = (_rndInfection < 1);
if (_unit == player) then {
if (((count _this) > 1) && {(typeName (_this select 1)) == "ARRAY"}) then { //DO NOT TOUCH THE CODE BRACKETS!
_selfTransValues = _this select 1;
r_player_blood = r_player_blood + (_selfTransValues select 0);
if (r_player_blood > 12000) then {r_player_blood = 12000;};
r_player_blood = (r_player_blood + (_selfTransValues select 0)) min r_player_bloodTotal;
if ((_selfTransValues select 1) < 0) then {
_TransfusionInfection = false;
} else {