I personally think that no one in either of the warring guilds should be allowed to start hostilities with their opposite inside of a town. The town guards should be all about kicking both of you out. You are tearing up their town after all. I have no idea how you would implement something like this though.
What about when the bad man is chasing right behind me and I run into my house and try to shut the door but "God" tells me I have to wait 2 seconds to shut it
Here's a possible 2nd option. Door cannot be "used" more than twice every 3 seconds. Open = 1 use, Close = 1 use. That way it would allow for people to quickly get inside their houses but still stop spam.