Figure it out. It's a reasonable and fairly simple system taking into account relative strengths and something else. Basically, if your unit is strong enough, and the militia weak, you can loot. If your unit is weak and the militia strong, you can't.