Auto-translated
Castles are stationary (each race has its own "pre-assigned" one), but a two-way teleporter leads directly to the respawn point, which will drop you into a random zone. That is, there is nothing at all near the castle, only a teleporter.
In general, at this stage I am testing the following scheme:
Neutral castles are generated as they wish, but each castle has a variable, and each castle's "race" is checked for a match with the player's race. If there is a match, the variable is assigned the value true. Accordingly, if there are multiple "matches", the choice will probably be among them (I'm not sure yet, the scheme is at the implementation stage). In short, as a result of all these machinations, the player gets a castle of their race on a previously unknown respawn point.
Something like that:)

Барон "Vampires"
Отдай свои прошлые сны,
В сомненьях себя обрети,
В бешеном танце душа кружится!
Не думай, что будет потом,
Здесь и сейчас мы живем,
Стань хоть на миг сам собой, слышишь!