From 0771823ff43d9c89c2d45243c0d450e5313da935 Mon Sep 17 00:00:00 2001 From: Sam Gaus Date: Thu, 25 Sep 2025 12:51:58 +0100 Subject: [PATCH] Check advs as well as MP for skills --- src/commons.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commons.ts b/src/commons.ts index 6ea81e9..f53a5e4 100644 --- a/src/commons.ts +++ b/src/commons.ts @@ -4,6 +4,7 @@ import uniform from "./outfit"; import { abort, adv1, + advCost, availableAmount, buy, canEquip, @@ -18,6 +19,7 @@ import { handlingChoice, Item, mpCost, + myAdventures, myLevel, myMp, npcPrice, @@ -134,7 +136,7 @@ export function skillTask( return { name: skill.name, completed: () => have(effect), - ready: () => myMp() >= mpCost(skill), + ready: () => myMp() >= mpCost(skill) && myAdventures() >= advCost(skill), do: () => useSkill(skill), outfit: includeAprilShield ? { offhand: $item`April Shower Thoughts shield` }