if GetObjectOwner("garrison_name") == player_who_captured_the_garrison then
AddObjectCreatures("garrison_name", type, quantity)
end
Auto-translated
Add a check to your function for the new day to verify that the garrison belongs to that player.