From e1e78a914f67947c4939ebd32a9eba62a44879c0 Mon Sep 17 00:00:00 2001 From: Eternalisime Date: Thu, 10 Nov 2022 14:24:06 +0100 Subject: [PATCH] combat: added angle condition on shockwave --- server/agent/src/attack.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/agent/src/attack.rs b/server/agent/src/attack.rs index 2b8b06f493..2fc0f010fc 100644 --- a/server/agent/src/attack.rs +++ b/server/agent/src/attack.rs @@ -3529,7 +3529,7 @@ impl<'a> AgentData<'a> { { // If already charging, keep charging if not in recover controller.push_basic_input(InputKind::Ability(0)); - } else if attack_data.dist_sqrd < SHOCKWAVE_RANGE.powi(2) { + } else if attack_data.dist_sqrd < SHOCKWAVE_RANGE.powi(2) && attack_data.angle < 45.0 { if agent.action_state.counters[ActionStateFCounters::FCounterRoshwalrAttack as usize] > SHOCKWAVE_TIMER {