| 210 | } |
| 211 | |
| 212 | void |
| 213 | you_unwere(boolean purify) |
| 214 | { |
| 215 | boolean controllable_poly = Polymorph_control && !(Stunned || Unaware); |
| 216 | |
| 217 | if (purify) { |
| 218 | You_feel("purified."); |
| 219 | set_ulycn(NON_PM); /* cure lycanthropy */ |
| 220 | } |
| 221 | if (!Unchanging && is_were(gy.youmonst.data) |
| 222 | && !monster_nearby() |
| 223 | && (!controllable_poly |
| 224 | || !paranoid_query(ParanoidWerechange, "Remain in beast form?"))) |
| 225 | rehumanize(); |
| 226 | else if (is_were(gy.youmonst.data) && !u.mtimedone) |
| 227 | u.mtimedone = rn1(200, 200); /* 40% of initial were change */ |
| 228 | } |
| 229 | |
| 230 | /* lycanthropy is being caught or cured, but no shape change is involved */ |
| 231 | void |
no test coverage detected