mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Pain is always suppressed again
This commit is contained in:
parent
eef7c1295a
commit
be6d72606a
@ -72,13 +72,10 @@ if (alive _target) then {
|
||||
};
|
||||
|
||||
if (_painReduce > 0) then {
|
||||
// Reduce the pain level
|
||||
if (GVAR(painIsOnlySuppressed)) then {
|
||||
// Suppress the pain
|
||||
_painSuppress = _target getvariable [QGVAR(painSuppress), 0];
|
||||
_target setvariable [QGVAR(painSuppress), (_painSuppress + _painReduce) max 0];
|
||||
} else {
|
||||
// Remove the pain
|
||||
// Reduce pain
|
||||
_painSuppress = _target getvariable [QGVAR(painSuppress), 0];
|
||||
_target setvariable [QGVAR(painSuppress), (_painSuppress + _painReduce) max 0];
|
||||
if (!GVAR(painIsOnlySuppressed)) then {
|
||||
_pain = _target getvariable [QGVAR(pain), 0];
|
||||
_target setvariable [QGVAR(pain), (_pain - _painReduce) max 0, true];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user