Fixed morning star knockback
This commit is contained in:
parent
8c6f4ec327
commit
fae00cfe1f
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ func _physics_process(delta: float) -> void:
|
|||
damage_target(target)
|
||||
|
||||
func damage_target(target: CollisionObject2D):
|
||||
var dir = (position - target.position).normalized()
|
||||
var dir = -(ball.global_position - target.global_position).normalized()
|
||||
if(target.get_collision_layer_value(3)):
|
||||
target.hurt(player_damage, dir)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue