monster that created them is a priest, assume they're from priestly abilities, and if the monster that created them is neither a priest nor a wizard, assume they're from intrinsic abilities; in both cases, they'll have the same god as the monster. The latter should cover cases such as god-summoned shadow imps' casting Animate Dead; if the imp abandons you due to your abandoning its god, its zombies will abandon you too.
Also, mark skeletal warriors as no longer being wizards, so that their casting Animate Dead is an intrinsic ability, and the above rule will apply when the skeletal warrior is a gift of Yredelemnul; if the skeletal warrior abandons you due to your abandoning Yredelemnul, its zombies will abandon you too.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8951 c06c8d41-db1a-0410-9941-cceddc491573
K3HAD5I366XYS5PVG5QSNNNJI5EIUCHD4JZWSXL3KKIVFHHAA4YAC XGPPA2X3G3266EVSTXGQ7ZWYOCJ32FEYPEUJV55AI5TGFYHTYTQQC 2FHNLTLN3DVVD67N4QMAQ2LO7YY4GVZWXJAOIWGCCYYGIX7UHSVQC ZEFGFQHN6J2S6EIPX7EPDG22C5YXTI6DMKQHHRCLWN5MQC44KY3AC K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC 7OUAAZXWRGOXSQR5ELUZ25KQ5DMWAZBBPFIIZNSEXTTANSJKONLAC OEITBWQWZDJ2VBG24XPTJYA445XKT3X7XHGZL3F2WX4IVZEXQL5QC AA3I6WU2SPJUPKRIPGXCLU4EZOV4QELVVZ7EIAW3H73GES5DSFXQC 5ETBQI75XWCYG5UALQR6TKD7FCJYTCVQEN64D6OHXVOGO3QB3AKAC JBB7GZTVO3UJSPFVELSP4WPJZ5SC5LY36FJJ7WF2BJGZTVPNIV3AC DQBVHSQ2AD3666R763NHIJ7KVJ7GER5NHXPVQCISIUFSNNRSIM6QC HTMZ765OSIVTX2W5JRE6QFYRCLDXII3DZWH3SQNIVXCR6D6AYGXAC 3BYQVNIM2NMSGEW7MJCZDSH5WSQQDM5NKJFGR4GVMB6DGAOCOEXAC DDU4A3JGN5IUIPP5IASOODKPR2WBHSDSV4FITZ6HNXNSXXQACWAQC YO7TE72UUQA22IZVAYEFAKVFC24Q3AMVUQZHQGKVKKM34T52TJZAC UAJN2CFA2QHYDHW2UFAVPPHDQFCD54RKM6V2UC4AMEDJUBBLNWIQC KEYK3CH5J46U6TTOKTWRNMYTZXMQXFVEAZUC4ZQ4QCOSJHVIBDRQC 3WHI3KM43ZCN4ITJLFQQBQBC4OJPRS7QTBPIQ6QBCUVKRSK476SAC // If the monster's a priest, assume summons come from priestly// abilities, in which case they'll have the same god. If the// monster is neither a priest nor a wizard, assume summons come// from intrinsic abilities, in which case they'll also have the// same god.const bool priest = mons_class_flag(monster->type, M_PRIEST);const bool wizard = mons_class_flag(monster->type, M_ACTUAL_SPELLS);god_type god = (priest || !(priest || wizard)) ? monster->god : GOD_NO_GOD;