Fixed various declareWar bugs