afterward. Also, do the pacification check only once and use the result both times instead of doing the pacification check twice, as it has a random factor.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9622 c06c8d41-db1a-0410-9941-cceddc491573
QLPGRCREJNAFOO4BZL55ERZALMWNGE4UUF2GBIWDVP33YN56IIAQC
FDX2FZFBSPP2RMCMRHAQ5T3X7NVZ6M37ITEFUZUEZ6O2T6QQQTQAC
YQYWHEF7JHWPOC2P7XZYK6UQBKEFPYG4W3ZOYUQKUXYOD4YHR2EQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
ERTQJ5ZXDBRGKC5N3GZ6U4MFFK5HB6737FVLVD4GSMGTIFCSJJJQC
ZXIBXDEOAA63LSBMDRGA3IBYXYLFFWX2JMV2SEJTKK3XLJIQNGPQC
QDBILCQHREAKSVXBJJGE2EPNR4ATTQWUZMV7BLJYZWWUI737TSKQC
RSIUBEQUGNU4LO6KH4PKVROWQS33DAKSY4XFVGN7T3CEKSXABCSAC
E5DMZFW6WCFAKTKKOQPYTQXZ2CGLWMVH64LRXDUI2UIG4VYUHIVQC
YCL3W2PFE6ILTGBFODCSXNPDIA46KVSZP2TI7HDMYAOEJT65RIEAC
ENR5ESQYWRTVCHJTZVHKUQN4ZRRQHZN3NFW6UJQFBV5PRNTY6FYAC
SHFSQYLN7WPQC35V3XYYEIZ4CQMREASUNR474CIKFG3C2FYI4SHQC
YDGSUHS2DVFLIQNF76673L7TAMM56CJWM3UH5SOELKIWOMVUD3JAC
FQZQDCMDTH4C3B7JXWPZNHTQKRKZF2VV2SNG2ZULDIYFINNKQCYQC
QYQKV4R47PTERXVFQNNWWQVICGSOMBHW6WM5TAZAKLIYOLLPUAJAC
SYHNAIAJCQHYMVDZWBZC2AUP5F4B5MXL5OY753KGNVH2CLRFSBSAC
if (heal_monster(monster, healed, false))
{
did_something = true;
mprf("You heal %s.", monster->name(DESC_NOCAP_THE).c_str());
if (monster->hit_points == monster->max_hit_points)
simple_monster_message(monster, " is completely healed.");
else
print_wounds(monster);
if (you.religion == GOD_ELYVILON && !_mons_hostile(monster))
{
simple_god_message(" appreciates your healing of a fellow "
"creature.");
if (one_chance_in(8))
gain_piety(1);
}
}
}
}
if (heal_monster(monster, healed, false))
{
did_something = true;
mprf("You heal %s.", monster->name(DESC_NOCAP_THE).c_str());
if (monster->hit_points == monster->max_hit_points)
simple_monster_message(monster, " is completely healed.");
else
print_wounds(monster);
if (you.religion == GOD_ELYVILON && !_mons_hostile(monster))
{
simple_god_message(" appreciates your healing of a fellow "
"creature.");
if (one_chance_in(8))
gain_piety(1);