feat: practicing disciplines set currentAction to block meditation/crafting
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m20s

This commit is contained in:
2026-05-26 18:39:54 +02:00
parent ef850e98e2
commit 1c1bbf8017
7 changed files with 36 additions and 11 deletions
+12
View File
@@ -163,6 +163,18 @@ export const useCombatStore = create<CombatStore>()(
startClimbDown: () => set({ climbDirection: 'down', currentAction: 'climb' }),
startPracticing: () => set((s) => {
// Only override if the current action is 'meditate' — don't clobber climb/study/etc.
if (s.currentAction !== 'meditate') return s;
return { currentAction: 'practicing' };
}),
stopPracticing: () => set((s) => {
// Only restore to meditate if we're currently practicing (don't clobber other actions)
if (s.currentAction !== 'practicing') return s;
return { currentAction: 'meditate' };
}),
// Golemancy
toggleGolem: (golemId: string) => {
set((s) => {