summaryrefslogtreecommitdiff
path: root/godot/scripts/ballistics
diff options
context:
space:
mode:
Diffstat (limited to 'godot/scripts/ballistics')
-rw-r--r--godot/scripts/ballistics/Cannonball.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/godot/scripts/ballistics/Cannonball.gd b/godot/scripts/ballistics/Cannonball.gd
index 14de00c..d1937f4 100644
--- a/godot/scripts/ballistics/Cannonball.gd
+++ b/godot/scripts/ballistics/Cannonball.gd
@@ -13,5 +13,5 @@ func get_init_info():
func _on_collision(body):
if oldvel.length() > 20 and !damage_exceptions.has(body) and body.has_method("damage"):
- body.rpc("damage", oldvel.length(), "blunt", shooter, "using 'cannon'")
+ body.rpc("damage", oldvel.length(), "blunt", [shooter_id, shooter], "using 'cannon'")
damage_exceptions.append(body)