Asmodeus' cold magic attack when hero is resistant

Asmodeus kept using the cold magic attack when hero was cold resistant.
The distance magic attack already considered hero resistances, so
use the same logic for the close-up magic attack.
This commit is contained in:
Pasi Kallinen
2023-08-25 10:58:07 +03:00
parent e407af4477
commit b5a43a60f2

View File

@@ -221,7 +221,8 @@ castmu(
}
/* monster unable to cast spells? */
if (mtmp->mcan || mtmp->mspec_used || !ml) {
if (mtmp->mcan || mtmp->mspec_used || !ml
|| m_seenres(mtmp, cvt_adtyp_to_mseenres(mattk->adtyp))) {
cursetxt(mtmp, is_undirected_spell(mattk->adtyp, spellnum));
return M_ATTK_MISS;
}