That would need a whole new game mechanic and a whole new engine becuase I think that isnt possible right now because the building doesnt know what unit is attacking currently.My suggestion is to add a new element. Lets say that once Arson is researched, any building attacked by Longswords cannot function. You cannot drop res at camps, prod buildings cannot produce or research, houses do not give pop space. Only Stone buildings should not ve affected.