Kemet
Can you still buy tiles with your pyramid when an ally is alone on it?
Yes. An ally is not an opponent. Allies may also upgrade or buy using each other's pyramids, including in the other player's city, and Hand of God works as in the base game.