From cc19e7c6a5d91abeb55e00e8ece986101c2293bd Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Mon, 18 Mar 2024 07:22:31 +0100 Subject: fix: fix swapped projectiles in ranged/ meele attack --- src/shared/ability.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/shared/ability.rs b/src/shared/ability.rs index e776015..dd843e0 100644 --- a/src/shared/ability.rs +++ b/src/shared/ability.rs @@ -26,15 +26,15 @@ impl TargetedAbility { ) -> Projectile { match self { TargetedAbility::MeeleAttack => Projectile { - type_: ProjectileType::Targeted(TargetedProjectile { - target_player, - position, - }), + type_: ProjectileType::Instant(InstantProjectile { target_player }), source_player, damage: 5., }, TargetedAbility::RangedAttack => Projectile { - type_: ProjectileType::Instant(InstantProjectile { target_player }), + type_: ProjectileType::Targeted(TargetedProjectile { + target_player, + position, + }), source_player, damage: 6., }, -- cgit v1.2.3