diff options
Diffstat (limited to 'src/client.rs')
-rw-r--r-- | src/client.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/client.rs b/src/client.rs index bd2c448..22e3960 100644 --- a/src/client.rs +++ b/src/client.rs @@ -429,6 +429,22 @@ fn gizmos_attack_indicator( }; match champion.to_ability(ability_slot) { Ability::Activated(_) => {} + Ability::Directional(DirectionalAbility::Dash) => { + let Some(world_position) = cursor_world_position(&windows, &cameras) else { + return; + }; + let Some(direction) = (world_position - position.0).try_normalize() else { + return; + }; + let dash_end = dash_collision( + PlayerId(client_id.0), + position.0, + direction, + 150., + &player_positions, + ); + gizmos.arrow_2d(position.0, dash_end, Color::YELLOW); + } Ability::Directional(_) => { let Some(world_position) = cursor_world_position(&windows, &cameras) else { return; |