Commit 24ec4c9
committed
Fix an error that makes the
The `can_use` method of the `NoReducedCred.pm` achiievent item returns 0
unless the condition for which it can be used is true, and then there is
no follow up return value for the case that the condition is true. As a
result the method always returns a false value. Thus the achievement
item can never be used.
Since the result of the `can_use` method is used in a purely boolean
fashion it should just return the condition result.NoReducedCred achievement item unusable.1 parent 0974272 commit 24ec4c9
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments