CORE: alliance formation fixes