Spitting monsters try to stay away from melee range
This commit is contained in:
@@ -1015,10 +1015,11 @@ register int after;
|
||||
> ((ygold = findgold(g.invent)) ? ygold->quan : 0L))))
|
||||
appr = -1;
|
||||
|
||||
/* hostile monsters with ranged thrown weapons try to stay away */
|
||||
/* hostiles with ranged weapons or spit attack try to stay away */
|
||||
if (!mtmp->mpeaceful
|
||||
&& (dist2(mtmp->mx, mtmp->my, mtmp->mux, mtmp->muy) < 5*5)
|
||||
&& m_canseeu(mtmp) && m_has_launcher_and_ammo(mtmp))
|
||||
&& m_canseeu(mtmp) &&
|
||||
(m_has_launcher_and_ammo(mtmp) || attacktype(mtmp->data, AT_SPIT)))
|
||||
appr = -1;
|
||||
|
||||
if (!should_see && can_track(ptr)) {
|
||||
|
||||
Reference in New Issue
Block a user