In wizard mode if you're already polymorphed and you choose your role's form when polymorphing again, polyself() calls rehumanize() to restore your original shape. rehumanize() turns off any light the hero is emitting from polymorph form. After it returned, polyself() then tried to do the same thing based on a cached value. If the previous form had been emitting light, that resulted in an impossible() warning "del_light_source: not found type=1, id=N". Couldn't happen in normal play because a request to polymorph into any role monster is usually rejected; it's only honored in wizard mode for current role. Noticed when testing something while in gold dragon form but this bug predates addition of that monster. Clear the cached value when rehumanize() returns to polyself().
78 KiB
78 KiB