diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-18 07:22:31 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-18 07:22:31 +0100 |
commit | cc19e7c6a5d91abeb55e00e8ece986101c2293bd (patch) | |
tree | ba03313926c60302daf6870c84207d6e146d499b /src | |
parent | 701eee31bff9416a9822ca54388a9ec8fabd09a4 (diff) |
fix: fix swapped projectiles in ranged/ meele attack
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/ability.rs | 10 |
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., }, |