From 45f756343d98295c9825f6695a6778fd17f714d3 Mon Sep 17 00:00:00 2001 From: timokoesters Date: Tue, 8 Oct 2019 21:19:16 +0200 Subject: [PATCH] fix: blocking now ends in wielded This makes blocking more viable because while blocking you can wait for the enemy to attack and then quickly exit the block and attack yourself. --- common/src/sys/controller.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/src/sys/controller.rs b/common/src/sys/controller.rs index be4c2b8b46..ff05dadde9 100644 --- a/common/src/sys/controller.rs +++ b/common/src/sys/controller.rs @@ -177,13 +177,15 @@ impl<'a> System<'a> for Sys { // Block if controller.secondary && (character.movement == Stand || character.movement == Run) - && (character.action == Idle || character.action.is_wield()) + && character.action.is_wield() { character.action = Block { time_left: Duration::from_secs(5), }; } else if !controller.secondary && character.action.is_block() { - character.action = Idle; + character.action = Wield { + time_left: Duration::default(), + }; } } Some(Item::Debug(item::Debug::Boost)) => {