aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.rs')
-rw-r--r--src/client.rs5
1 files changed, 1 insertions, 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<ClientId>,
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 {