speed monster vs peacefuls

Testing the shopkeeper speed change, I noticed that zapping the shk
with speed monster made her angry.  Since being hasted is beneficial
for the target, don't become angry.
This commit is contained in:
PatR
2024-08-17 19:07:44 -07:00
parent 214e508890
commit 9bc6e1bee1

View File

@@ -1,4 +1,4 @@
/* NetHack 3.7 zap.c $NHDT-Date: 1715284462 2024/05/09 19:54:22 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.539 $ */
/* NetHack 3.7 zap.c $NHDT-Date: 1723946858 2024/08/18 02:07:38 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.542 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2013. */
/* NetHack may be freely redistributed. See license for details. */
@@ -218,8 +218,8 @@ bhitm(struct monst *mtmp, struct obj *otmp)
mon_adjust_speed(mtmp, 1, otmp);
check_gear_next_turn(mtmp); /* might want speed boots */
}
if (mtmp->mtame)
helpful_gesture = TRUE;
/* wake but don't anger a peaceful target */
helpful_gesture = TRUE;
break;
case WAN_UNDEAD_TURNING:
case SPE_TURN_UNDEAD: