magicians resisting their own spells.
This commit is contained in:
Enno Rehling 2021-03-26 19:56:32 +01:00
parent 5a8d0221e8
commit 8ba80d7dbf
1 changed files with 3 additions and 0 deletions

View File

@ -1168,6 +1168,9 @@ target_resists_magic(unit * magician, void *obj, int objtyp, int t_bonus)
skill *sv; skill *sv;
unit *u = (unit *)obj; unit *u = (unit *)obj;
if (ucontact(u, magician)) {
return false;
}
at = effskill(magician, SK_MAGIC, NULL); at = effskill(magician, SK_MAGIC, NULL);
for (sv = u->skills; sv != u->skills + u->skill_size; ++sv) { for (sv = u->skills; sv != u->skills + u->skill_size; ++sv) {