fix #H4388 - wishing conduct inconsistency
Make wishing for an artifact and not getting it because it already exists break never-wished-for-artifact conduct. The wish was made even if the result wasn't what the player wanted.
This commit is contained in:
@@ -3570,7 +3570,8 @@ typfnd:
|
||||
}
|
||||
|
||||
otmp = oname(otmp, name);
|
||||
if (otmp->oartifact) {
|
||||
/* name==aname => wished for artifact (otmp->oartifact => got it) */
|
||||
if (otmp->oartifact || name == aname) {
|
||||
otmp->quan = 1L;
|
||||
u.uconduct.wisharti++; /* KMH, conduct */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user