If the actor stands outside the mosque but the person struck is inside, what matters?

Legal Signification of Fi and Ba: Circumstance, Condition and Attachment