diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-20 06:24:40 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-20 06:24:40 +0100 |
commit | 0165c47ea6c002c4eb177289ced5412b73273a25 (patch) | |
tree | 01fad76b46cb2b449dd5e08ed63cd3b41abe0de1 | |
parent | c7b58b40b3307872b9889a278810ee621c73e1c5 (diff) |
feat: don't show attack indicator on hover (only on `a`)
-rw-r--r-- | src/client.rs | 5 |
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 { |