From b043e2d0a6b4f8f208620f8a6fda5df245af34b6 Mon Sep 17 00:00:00 2001 From: Standing-Storm <120433252+Standing-Storm@users.noreply.github.com> Date: Thu, 23 May 2024 14:48:19 -0500 Subject: [PATCH] Update src/magic.cpp Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/magic.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/magic.cpp b/src/magic.cpp index a8f48ea0c6582..d851bc1126ee7 100644 --- a/src/magic.cpp +++ b/src/magic.cpp @@ -1252,9 +1252,10 @@ float spell::spell_fail( const Character &guy ) const ( 1.5 ); float psi_effective_skill = 0; if( is_psi ) { - const float psi_effective_skill_initial = 2 * ( ( guy.get_skill_level( skill() ) * 2 ) - get_difficulty( - guy ) ) + ( guy.get_int() * 1.5 ) + two_thirds_power_level; - + const float psi_effective_skill_initial = 2 * ( ( guy.get_skill_level( + skill() ) * 2 ) - get_difficulty( + guy ) ) + ( guy.get_int() * 1.5 ) + two_thirds_power_level; + if( !guy.has_proficiency( proficiency_prof_concentration_basic ) ) { psi_effective_skill = clamp(psi_effective_skill_initial, static_cast(0), static_cast(24)); } else if( guy.has_proficiency( proficiency_prof_concentration_basic ) && !guy.has_proficiency( proficiency_prof_concentration_intermediate ) ) {