This commit is contained in:
Rendo 2025-11-29 01:36:00 +05:00
commit bd16f01192
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ func _ready() -> void:
func on_body_entered(body: Node3D):
if body is DroppableWeapon:
if weapon_system.can_add(body.slot) == false:
if weapon_system.can_add(body.slot) == false or (body.team != Session.TEAMS.UNASSIGNED and get_parent().team != body.team):
return
weapon_spawner.spawn({
"ammo": body.weapon.ammo,