From cd96311f11cd18688509b68da3f0d74065f90f6f Mon Sep 17 00:00:00 2001 From: Dan1ss1mo <112878543+Dan1ss1mo@users.noreply.github.com> Date: Wed, 8 Mar 2023 17:14:20 +0300 Subject: [PATCH] Update src/character.cpp Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/character.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/character.cpp b/src/character.cpp index f8d1d7862937f..d1c0f3b05f330 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -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