Enemies can be sent to a base when the hero is on certain walkable node types. Look at the Main class for example.