forked from github/server
Merge branch 'stm2-flee_spell' into develop
This commit is contained in:
commit
d38130870a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue