We are aware that some skills are able to penetrate the castle walls during siegewar and have reported the issue multiple times to the developer.
However this thread can only turn into a discussion about how to exploit this broken mechanic, so I will be forced to close it.
If you come across someone that is shooting arrows/throwing/casting skills through walls, this is something that would interest support.
/closed