From f8dc3845a75d304ba06535aad56d35c53c715b99 Mon Sep 17 00:00:00 2001 From: osuphobia <78858975+osuphobia@users.noreply.github.com> Date: Sat, 28 Dec 2024 02:08:00 +0800 Subject: [PATCH] Update src/weakpoint.cpp Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/weakpoint.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/weakpoint.cpp b/src/weakpoint.cpp index b4d9d97ebb83d..ee7c815556061 100644 --- a/src/weakpoint.cpp +++ b/src/weakpoint.cpp @@ -549,8 +549,7 @@ float weakpoint::hit_chance( const weakpoint_attack &attack ) const } else { final_coverage = coverage; } - } - else { + } else { // Use erfc if the wp does not benefit the attacker. diff = attack.wp_skill - std::max( difficulty.of( attack ) + 10.0f, 10.0f ); difficulty_mult = 0.5f * erfc( diff / ( 2.0f * sqrt( 2.0f ) ) );