gas spores attempting to attack
From a bug report, but pulls back" while successfully
praying. Gas spores' only "attack" is to explode when dying, so the code
that checks whether the monster has any attack needs to handle AT_BOOM as
a special case. Unfortunately this change means that you won't interrupt
an occupation when a gas spore approaches, and a subsequent kill by your
pet might end up causing you harm while still occupied. The callers of
`noattacks()' are messy enough that I didn't want to try to address that.
This also moves noattacks() from mhitm.c to somewhere more sensible.
This commit is contained in:
@@ -996,7 +996,6 @@ E int FDECL(mattackm, (struct monst *,struct monst *));
|
||||
#ifdef BARGETHROUGH
|
||||
E int FDECL(mdisplacem, (struct monst *,struct monst *,BOOLEAN_P));
|
||||
#endif
|
||||
E int FDECL(noattacks, (struct permonst *));
|
||||
E int FDECL(sleep_monst, (struct monst *,int,int));
|
||||
E void FDECL(slept_monst, (struct monst *));
|
||||
E long FDECL(attk_protection, (int));
|
||||
@@ -1203,6 +1202,7 @@ E void FDECL(decide_to_shapeshift, (struct monst *,int));
|
||||
E void FDECL(set_mon_data, (struct monst *,struct permonst *,int));
|
||||
E struct attack *FDECL(attacktype_fordmg, (struct permonst *,int,int));
|
||||
E boolean FDECL(attacktype, (struct permonst *,int));
|
||||
E boolean FDECL(noattacks, (struct permonst *));
|
||||
E boolean FDECL(poly_when_stoned, (struct permonst *));
|
||||
E boolean FDECL(resists_drli, (struct monst *));
|
||||
E boolean FDECL(resists_magm, (struct monst *));
|
||||
|
||||
Reference in New Issue
Block a user