Subset of Data in a gravity model
This regression may work. Two issues, however. 


How do you identify the "trade costs of war" given that trade and war are potentially endogenous?
Dropping the developed countries, which are the main exporters, may affect the estimates of the bilateral and multilateral trade resistance terms. But this is easy to check by comparing the estimates with and without the main exporters.