Merge branch 'stm2-flee_spell' into develop

This commit is contained in:
Enno Rehling 2021-03-22 21:10:07 +01:00
commit d38130870a
1 changed files with 2 additions and 2 deletions

View File

@ -882,7 +882,7 @@ int flee_spell(struct castorder * co, int strength)
return 0;
}
fgs = select_fighters(b, fi->side, FS_ENEMY, select_afraid, NULL);
fgs = select_fighters(b, fi->side, FS_ENEMY, (co->sp->sptyp & PRECOMBATSPELL) ? select_afraid : select_alive, NULL);
scramble_fighters(fgs);
for (qi = 0, ql = fgs; force > 0 && ql; selist_advance(&ql, &qi, 1)) {
@ -895,7 +895,7 @@ int flee_spell(struct castorder * co, int strength)
++panik;
}
else if (!(df->person[n].flags & FL_COURAGE)
|| !(u_race(df->unit)->flags & RCF_UNDEAD)) {
&& !(u_race(df->unit)->flags & RCF_UNDEAD)) {
if (!is_magic_resistant(mage, df->unit, 0)) {
df->person[n].flags |= FL_PANICED;
++panik;