Wand of striking strikes the ground

... if dropped while levitating/flying.
This commit is contained in:
Pasi Kallinen
2024-12-09 14:36:11 +02:00
parent 57abae29e8
commit cbb0f9079d

View File

@@ -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))