From 540968035201d294e53fa01707e3eb4165d602f8 Mon Sep 17 00:00:00 2001 From: Hymore246 Date: Sat, 12 Oct 2019 15:05:32 -0500 Subject: [PATCH] Fix for infinite counterattacks at low speed --- src/player.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/player.cpp b/src/player.cpp index 297aca399478e..2eb4650a3d9f0 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -643,12 +643,12 @@ void player::process_turn() } // We can dodge again! Assuming we can actually move... - if( !in_sleep_state() ) { - blocks_left = get_num_blocks(); - dodges_left = get_num_dodges(); - } else { + if( in_sleep_state() ) { blocks_left = 0; dodges_left = 0; + } else if( moves > 0 ) { + blocks_left = get_num_blocks(); + dodges_left = get_num_dodges(); } // auto-learning. This is here because skill-increases happens all over the place: