After still more thought, put back the preservation of the foe, as well

as the charm and neutral enchantments for polymorphed monsters, and do it for all of them, not just shapeshifters. If you polymorph them using the spell or the wand, it counts as an attack, so they'll lose the charm and neutral enchantments anyway, and their foe will be set to you. On the other hand, if e.g. Xom polymorphs them (since he doesn't check for temporary charm or neutrality), they'll remain as they were.

git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4841 c06c8d41-db1a-0410-9941-cceddc491573

Created by  dolorous  on May 3, 2008
BZBI4JX6Y6D3ZXNW6SQXIVQFZKVDDOSD6XRFDVY2ZZFIJ4LED4YQC
Change contents