git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1777 c06c8d41-db1a-0410-9941-cceddc491573
S4W5EBZLFX3HA3JNR524LF5RJ7PAPMSMN3FVRZNLQZY4QNEILGLQC
IIK2W5J4NQWD3BVXPJDUCTONSF2ENXPSZBWMZCBC25RCTNMKSK6AC
Y4WR4EIOFFXHRQI2PJAZWD4MVL6A7MNBHLN4KOV6BIKGGA7FXQTQC
QS3ZRS3E6KL3YJHPKYEWCWJYRBJSXD5OOYF6Y25HZVECGPJRDB5QC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
}bool monsters::has_spell_of_type(unsigned disciplines) const{ for (int i = 0; i < NUM_MONSTER_SPELL_SLOTS; ++i) { if (spells[i] == SPELL_NO_SPELL) continue; if (spell_typematch(spells[i], disciplines)) return (true); } return (false);
}
bool monsters::has_spell_of_type(unsigned disciplines) const
{
for (int i = 0; i < NUM_MONSTER_SPELL_SLOTS; ++i)
if (spells[i] == SPELL_NO_SPELL)
continue;
if (spell_typematch(spells[i], disciplines))
return (true);
return (false);
// Prevent monsters that have conjurations / summonings from // grabbing missiles. if (has_spell_of_type(SPTYP_CONJURATION | SPTYP_SUMMONING)) return (false);
// Prevent monsters that have conjurations / summonings from
// grabbing missiles.
if (has_spell_of_type(SPTYP_CONJURATION | SPTYP_SUMMONING))
int &nvalid) const;
int &nvalid) const; bool has_spell_of_type(unsigned) const;
bool has_spell_of_type(unsigned) const;