CleverRaven/Cataclysm-DDA — pull request #9217 by BevapDin (2014-09-24 16:06:41+00:00)
Title: Fix triggering anger/morale on monster death [CR]

Fixes #9212 Dogs have MTRIG_FRIEND_DIED as trigger for anger.

`monster::die` checks for the MTRIG_FRIEND_DIED trigger in the dying monster and changes anger / morale of the monsters around that could see the dying monster. It would apply those changes to *all* monsters, whether they are of the same species as the dying one or not. This seems to be wrong and stands in contrast to the comment "If our species fears seeing one of our own die, process that".

I added the appropriate check for the species, but species in this context is MAMMAL, AMPHIBIAN, REPTILE etc. A dying dog will still affect a rabbit and moose and wolfs as they are all of the species MAMAL. So maybe it should actually check for the monster type? That's why there is a CR on this PR.