mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
combat: added angle condition on shockwave
This commit is contained in:
parent
918d5eb345
commit
e1e78a914f
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user