Ancestor Identity doesn't work properly if used before ancestor spawns #3300
Description
PLATFORM and OS or BROWSER:
console, playing on underhound.eu via ssh
DCSS VERSION AND GAME INFORMATION:
0.30.1-4-g462c640d31
DESCRIPTION:
I noticed a minor bug with Hepliaklqana's "Ancestor Identity".
I was using Passwall to go through a wall and got enough piety for an ancestor ("Hepliaklqana forms a fragment of your life essence into the memory of your ancestor") immediately when I emerged on the other side. The ancestor didn't spawn right away, but appeared three turns later. I used "Ancestor Identity" before the ancestor spawned for the first time, and when it did it didn't have the name I chose, instead it had the default random name. I had to change the name to something else and then back to make it apply.
There is a ttyrec recording of this happening (frame 30266) at https://underhound.eu/crawl/ttyrec/chujev/2023-09-11.21%3A06%3A06.ttyrec.bz2
Morgue: https://underhound.eu/crawl/morgue/chujev/morgue-chujev-20230912-200136.txt