From 4f9957fc6b4bdb4c7430f878101b07051b40a2ff Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Sun, 17 Mar 2024 12:48:41 +0100 Subject: feat: abilities --- src/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server.rs') diff --git a/src/server.rs b/src/server.rs index d9f2653..e3d5a72 100644 --- a/src/server.rs +++ b/src/server.rs @@ -198,7 +198,7 @@ fn imperative_attack_approach( ) { for (id, mut imperative) in players.iter_mut() { match *imperative { - Imperative::Attack(target_player) => { + Imperative::Attack(AttackKey::A, target_player) => { let Some(entity) = entity_map.0.get(&id.0) else { *imperative = Imperative::Idle; return; @@ -242,7 +242,7 @@ fn imperative_attack_attack( ) { for (id, mut imperative) in players.iter_mut() { match *imperative { - Imperative::Attack(target_player) => { + Imperative::Attack(AttackKey::A, target_player) => { let Some(entity) = entity_map.0.get(&id.0) else { *imperative = Imperative::Idle; return; -- cgit v1.2.3