Yeah I suggest you watch just any war documentary and ask yourself the question "where are the courts??"
Can you not delineate between a war against a separate government, and a government killing its own civilians without due process?
And yes..... There are always courts involved in just about any modern conflict. The Nuremberg trials for example kinda cover what should happen when a government participates in extrajudicial murder of their civilians.