Please be aware of the Forum Rules of Conduct.
I believe you already can't change your capital during war.