Skip to content

Commit

Permalink
Update src/character.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Dan1ss1mo and github-actions[bot] authored Mar 8, 2023
1 parent b53ea93 commit cd96311
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10963,7 +10963,8 @@ void Character::mod_pain( int npain )
{
if( npain > 0 ) {
double mult = enchantment_cache->get_value_multiply( enchant_vals::mod::PAIN );
if( has_trait( trait_NOPAIN ) || has_effect( effect_narcosis ) || has_flag( json_flag_PAIN_IMMUNE ) ) {
if( has_trait( trait_NOPAIN ) || has_effect( effect_narcosis ) ||
has_flag( json_flag_PAIN_IMMUNE ) ) {
return;
}
// if there is a positive multiplier we always want to add at least 1 pain
Expand Down

0 comments on commit cd96311

Please sign in to comment.