Those tests were only checking the permonst mflags2 field so anytime those tests were used in the code, they came up false for things like an elven ranger. An elven ranger should return true for an is_elf() test, as an example. That happens because the profession monsters in monst.c are defined with M2_HUMAN. This augments those is_*() race tests to also check for a matching player race as well.
13 KiB
13 KiB