From c5c89e866273277a4f8375ae537c8269430bda72 Mon Sep 17 00:00:00 2001 From: Knightress Paladin Date: Thu, 8 Jul 2021 23:51:58 -0700 Subject: [PATCH] Added check to prevent melee leaps from stalling in liquids --- common/src/states/leap_melee.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/states/leap_melee.rs b/common/src/states/leap_melee.rs index 3ce97f8309..4768d7c726 100644 --- a/common/src/states/leap_melee.rs +++ b/common/src/states/leap_melee.rs @@ -101,7 +101,7 @@ impl CharacterBehavior for Data { timer: tick_attack_or_default(data, self.timer, None), ..*self }); - } else if data.physics.on_ground.is_some() { + } else if data.physics.on_ground.is_some() | data.physics.in_liquid().is_some() { // Transitions to swing portion of state upon hitting ground update.character = CharacterState::LeapMelee(Data { timer: Duration::default(),