they turn temporarily neutral instead.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4555 c06c8d41-db1a-0410-9941-cceddc491573
XTGMWL4WEG5O4Y66E5G3MQCOXRDTUTZYFWERRHMUY7OHDWB3LRUQC
// permanently neutral, but same message as enchantment
mons->attitude = ATT_NEUTRAL;
mons->flags |= MF_WAS_NEUTRAL;
if (holiness == MH_UNDEAD || holiness == MH_DEMONIC)
{
if (!mons->add_ench(ENCH_NEUTRAL))
return (0);
}
else
{
// permanently neutral, but same message as enchantment
mons->attitude = ATT_NEUTRAL;
mons->flags |= MF_WAS_NEUTRAL;
// give half of the monster's xp
unsigned int exp_gain = 0, avail_gain = 0;
gain_exp( exper_value(mons) / 2 + 1, &exp_gain, &avail_gain );
mons->flags |= MF_GOT_HALF_XP;
// give half of the monster's xp
unsigned int exp_gain = 0, avail_gain = 0;
gain_exp( exper_value(mons) / 2 + 1, &exp_gain, &avail_gain );
mons->flags |= MF_GOT_HALF_XP;
}