Cataclysm-DDA
Cataclysm-DDA copied to clipboard
Monsters that cast spells on death have two death entries in the log.
Describe the bug
Any monster that casts a spell when it dies will die twice, at least according to the message log.
Steps to reproduce
- Spawn or locate a zombie that casts a spell on death. Zombie children are a great example
- Kill them
- "The zombie child dies x2!"
Expected behavior
Only one entry in the log per death.
Screenshots
Versions and configuration
- OS: Windows
- OS Version: 10.0.19044.1826 (21H2)
- Game Version: d6a1777 [64-bit]
- Graphics Version: Tiles
- Game Language: System language []
- Mods loaded: [ Dark Days Ahead [dda], Disable NPC Needs [no_npc_food], No Fungal Growth [no_fungal_growth], Bionic Professions [package_bionic_professions], No Rail Stations [No_Rail_Stations], No Vault [No_Vault], ASCIITiles overmap color fix [colors_fix_asciitiles] ]
Additional context
Discovered while trying to fix #59054. This is a separate and unrelated issue.
/confirmed
I've see it myself all the time, and the discussion in the referenced PR makes it clear others consider it to be an existing behavior as well.
Seems like it's a known problem: https://github.com/CleverRaven/Cataclysm-DDA/blob/ae2ff5c29769bf5d281ea36f83ede876ec378871/src/mondeath.cpp#L69-L70
This bug is present in near-latest experimental: