aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-20 06:24:40 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-20 06:24:40 +0100
commit0165c47ea6c002c4eb177289ced5412b73273a25 (patch)
tree01fad76b46cb2b449dd5e08ed63cd3b41abe0de1 /src
parentc7b58b40b3307872b9889a278810ee621c73e1c5 (diff)
feat: don't show attack indicator on hover (only on `a`)
Diffstat (limited to 'src')
-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 {