mirror" FR with some suggestions from dploog. A monster affected by this will briefly flash blood-red, and each mirroring costs the square root of the damage in piety. It will not damage a monster if the damage kills you first, but that should only have an effect on gameplay in wizard mode if you use it to avoid death, in which case you don't really need it.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6983 c06c8d41-db1a-0410-9941-cceddc491573
ODQ7LIJ2UROGGENIORRXZFWII3ZM2N45YD53FKWDQB7LLRXR4PHAC
W373P7X7YFM36EMRRJCAQ7FS4FRYZGAF7HGPG43DED7CFGA4S7YQC
VQD5BW56OTUNPILMCASXZ6YZ3OQGXKQ7CSNDMNZUX72AQZXKOE3QC
NVD2HSEW2ONWNYDDCTOMZZOUP6NG4DCXI4LNYYIY4BQEBDMJQK5AC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
EJEHTLHZ5DL4SJQJBMQL5K3IV2ZMCZQBVCRRERER7SPOMNKFJTVQC
UFKLHUYL7WAQ3CI3D42T4C6KBGAUR63DSQAUQTTZG7GJMXSCVJWAC
K6S3LX4GPSVHOVIZVVGJDOMT6GXENOTXD6FM3ZHBN5GO4JA5E6YAC
KFULGQQOHWUTXOM3BXCCYPGGVGGY4Z6265XUFRCBPNLTZAEHJZSQC
KBNY5FWKTEAKABFCLPC3QFKFSVZKAGXINPCIFV6WDSWFO4VCKNTAC
QDTVLBRGHDTRUVT7I3O72K6TMOYAUSAJBZUHGOEFU2RKJNUPWZSQC
}
void yred_mirror_injury(monsters *mon, int dam)
{
if (dam <= 0)
return;
simple_god_message(" mirrors your injury!");
#ifndef USE_TILE
flash_monster_colour(mon, RED, 200);
#endif
hurt_monster(mon, dam);
if (mon->hit_points < 1)
monster_die(mon, KILL_YOU, 0);
else
print_wounds(mon);
lose_piety(integer_sqrt(dam));