If anyone in the defending stack has guardsman then the assassins marksman ability is negated and he attacks like normal. Since the best defender in the stack is the ranger, he defends.
Does the Guardsman have higher chance to defend normal attacks then? Or this seems too powerful of a defense against assassins. Since you could do what the previous poster said.