From 0165c47ea6c002c4eb177289ced5412b73273a25 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Wed, 20 Mar 2024 06:24:40 +0100 Subject: feat: don't show attack indicator on hover (only on `a`) --- src/client.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/client.rs b/src/client.rs index d24637b..6d8b296 100644 --- a/src/client.rs +++ b/src/client.rs @@ -436,7 +436,6 @@ fn gizmos_attack_indicator( cameras: Query<(&Camera, &GlobalTransform)>, client_id: Res, effective_statses: Query<(&PlayerId, &EffectiveStats)>, - hoverables: Query<(&PlayerId, &PlayerPosition)>, mut gizmos: Gizmos, player_champions: Query<(&PlayerId, &Champion)>, player_positions: Query<(&PlayerId, &PlayerPosition)>, @@ -448,9 +447,7 @@ fn gizmos_attack_indicator( let Some(champion) = player_champion(&client_id, &player_champions) else { return; }; - let Some(ability_slot) = attack.0.or_else(|| { - hovered_other_player(&cameras, &client_id, &hoverables, &windows).map(|_| AbilitySlot::A) - }) else { + let Some(ability_slot) = attack.0 else { return; }; let Some(effective_stats) = player_effective_stats(&client_id, &effective_statses) else { -- cgit v1.2.3