Pain is always suppressed again

This commit is contained in:
ulteq 2015-06-11 22:35:50 +02:00
parent eef7c1295a
commit be6d72606a

View File

@ -72,13 +72,10 @@ if (alive _target) then {
};
if (_painReduce > 0) then {
// Reduce the pain level
if (GVAR(painIsOnlySuppressed)) then {
// Suppress the pain
// Reduce pain
_painSuppress = _target getvariable [QGVAR(painSuppress), 0];
_target setvariable [QGVAR(painSuppress), (_painSuppress + _painReduce) max 0];
} else {
// Remove the pain
if (!GVAR(painIsOnlySuppressed)) then {
_pain = _target getvariable [QGVAR(pain), 0];
_target setvariable [QGVAR(pain), (_pain - _painReduce) max 0, true];
};