The situation appears to be synthetic (I mean, it didn't occur during normal play, didn't it?). Though, it's clearly a bug.
An NPC is already synthetic
Yeah, I found it while testing #19831.
I dunno, committing suicide when surrounded by amoebic molds is a perfectly reasonable choice. (It's probably the aiming code failing to choose a target and defaulting to pointing at the shooter).
Spawning a monster group centered on the NPC creates a monster on the same tile as the NPC.
The debug message (EDIT: for me) comes from Creature::projectile_attack(...) in ranged.cpp:161 - the NPC targets the same tile as it's standing on, because there's a blob there.
Same happens if spawning a single monster on the same tile as the NPC (no need to spawn a monster group).
There's a check (and appropriate debug message) not to spawn monsters on the same tiles as other monsters. Guess: there's no such check for NPCs?..
Guess: there's no such check for NPCs?..
@keyspace Good find. That seems to be the case (the debug message comes from Creature_tracker::add).
Most helpful comment
I dunno, committing suicide when surrounded by amoebic molds is a perfectly reasonable choice. (It's probably the aiming code failing to choose a target and defaulting to pointing at the shooter).