Skip to content

Commit

Permalink
Apply negative stat modifiers in player::suffer
Browse files Browse the repository at this point in the history
The player::suffer function applies stat modifiers for a few effects but
does not update the current stat variables. This causes the modifiers to
not be used by anything.

fixes #18147
  • Loading branch information
mscarter committed Feb 17, 2019
1 parent 9900d9c commit 1e2ebcf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6205,6 +6205,12 @@ void player::suffer()
}
}
}

// Recalculate, as it might have changed (by mod_*_bonus above)
str_cur = get_str();
int_cur = get_int();
dex_cur = get_dex();
per_cur = get_per();
}

bool player::irradiate( float rads, bool bypass )
Expand Down

0 comments on commit 1e2ebcf

Please sign in to comment.