libram 0.10.15 → 0.10.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/mood.js +4 -4
  2. package/package.json +1 -1
package/dist/mood.js CHANGED
@@ -316,10 +316,10 @@ export class Mood {
316
316
  */
317
317
  effect(effect, gainEffect) {
318
318
  const skill = toSkill(effect);
319
- if (!gainEffect && skill !== $skill.none) {
320
- const requireAprilShield = aprilShieldEffects
321
- .values()
322
- .some((ef) => ef === effect);
319
+ const requireAprilShield = aprilShieldEffects
320
+ .values()
321
+ .some((ef) => ef === effect);
322
+ if ((!gainEffect && skill !== $skill.none) || requireAprilShield) {
323
323
  this.skill(skill, { requireAprilShield });
324
324
  }
325
325
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libram",
3
- "version": "0.10.15",
3
+ "version": "0.10.16",
4
4
  "description": "JavaScript helper library for KoLmafia",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",