diff options
-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., }, |