Use #monster to make dragon steed breathe

This commit is contained in:
Pasi Kallinen
2023-09-30 22:44:46 +03:00
parent b1e3863b43
commit 6e09c980d2
4 changed files with 6 additions and 2 deletions

View File

@@ -960,6 +960,9 @@ domonability(void)
aggravate();
} else if (is_vampire(uptr) || is_vampshifter(&gy.youmonst)) {
return dopoly();
} else if (u.usteed && can_breathe(u.usteed->data)) {
(void) pet_ranged_attk(u.usteed);
return ECMD_TIME;
} else if (Upolyd) {
pline("Any special ability you may have is purely reflexive.");
} else {

View File

@@ -18,7 +18,6 @@ static int dog_goal(struct monst *, struct edog *, int, int, int);
static struct monst *find_targ(struct monst *, int, int, int);
static int find_friends(struct monst *, struct monst *, int);
static struct monst *best_target(struct monst *);
static int pet_ranged_attk(struct monst *);
static long score_targ(struct monst *, struct monst *);
static boolean can_reach_location(struct monst *, coordxy, coordxy, coordxy,
coordxy);
@@ -866,7 +865,7 @@ best_target(struct monst *mtmp) /* Pet */
}
/* Pet considers and maybe executes a ranged attack */
static int
int
pet_ranged_attk(struct monst *mtmp)
{
struct monst *mtarg;