From 1b0a9f8e31be620c98634ebd62c580ae9ba0e255 Mon Sep 17 00:00:00 2001 From: nhmall Date: Wed, 7 Oct 2020 09:23:41 -0400 Subject: [PATCH] follow-up to previous --- src/worn.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/worn.c b/src/worn.c index 24dfdd998..ad52e2474 100644 --- a/src/worn.c +++ b/src/worn.c @@ -892,6 +892,9 @@ boolean polyspot; m_useup(mon, otmp); } } else if (sliparm(mdat)) { + /* sliparm checks whirly, noncorporeal, and small or under */ + boolean passes_thru_clothes = !(mdat->msize <= MZ_SMALL); + if ((otmp = which_armor(mon, W_ARM)) != 0) { if (vis) pline("%s armor falls around %s!", s_suffix(Monnam(mon)), @@ -917,8 +920,7 @@ boolean polyspot; } if ((otmp = which_armor(mon, W_ARMU)) != 0) { if (vis) { - /* sliparm checks whirly, noncorporeal, and small or under */ - if (sliparm(mdat) && !(mdat->msize <= MZ_SMALL)) + if (passes_thru_clothes) pline("%s seeps right through %s shirt!", Monnam(mon), ppronoun); else