if your character is in range of the enemy when it spawns on the blue castle, it will start attacking once you pick a path. The enemies cannot target the unit while it's on the starting area. If it moves or you summon a second unit, then they can be targeted.