From cbb0f9079d1b65f4fbb5ba4c41d2da7ac577cbc7 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 9 Dec 2024 14:36:11 +0200 Subject: [PATCH] Wand of striking strikes the ground ... if dropped while levitating/flying. --- src/dothrow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dothrow.c b/src/dothrow.c index 5ce3570a2..fc154773c 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -609,6 +609,7 @@ hitfloor( if (IS_ALTAR(levl[u.ux][u.uy].typ)) { doaltarobj(obj); } else if (verbosely) { + const char *verb = (obj->otyp == WAN_STRIKING) ? "strike" : "hit"; const char *surf = surface(u.ux, u.uy); struct trap *t = t_at(u.ux, u.uy); @@ -630,7 +631,7 @@ hitfloor( break; } } - pline("%s %s the %s.", Doname2(obj), otense(obj, "hit"), surf); + pline("%s %s the %s.", Doname2(obj), otense(obj, verb), surf); } if (hero_breaks(obj, u.ux, u.uy, BRK_FROM_INV))