aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-18 07:22:31 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-18 07:22:31 +0100
commitcc19e7c6a5d91abeb55e00e8ece986101c2293bd (patch)
treeba03313926c60302daf6870c84207d6e146d499b /src
parent701eee31bff9416a9822ca54388a9ec8fabd09a4 (diff)
fix: fix swapped projectiles in ranged/ meele attack
Diffstat (limited to 'src')
-rw-r--r--src/shared/ability.rs10
1 files 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.,
},