don't catch thrown objects while asleep

Reported directly to devteam.
This commit is contained in:
nhmall
2026-08-07 08:46:53 -04:00
parent 411c8becb9
commit cd493962b1
+1 -1
View File
@@ -535,7 +535,7 @@ u_catch_thrown_obj(struct obj *otmp)
int catch_chance = 100 - ACURR(A_DEX)
- ((Role_if(PM_MONK) || Role_if(PM_ROGUE)) ? 20 : 0);
if (!Blind && !Confusion && !Stunned && !Fumbling
if (!Blind && !Confusion && !Stunned && !Fumbling && !Unaware
&& otmp->oclass != VENOM_CLASS
&& !nohands(gy.youmonst.data) && freehand()
&& calc_capacity(otmp->owt) <= SLT_ENCUMBER && !rn2(catch_chance)) {