Skip to content

fix(RoguesDen): reset potion bank flags on plugin init#457

Merged
chsami merged 1 commit into
chsami:developmentfrom
runsonmypc:fix/rogues-den-potion-logic
May 29, 2026
Merged

fix(RoguesDen): reset potion bank flags on plugin init#457
chsami merged 1 commit into
chsami:developmentfrom
runsonmypc:fix/rogues-den-potion-logic

Conversation

@runsonmypc
Copy link
Copy Markdown
Contributor

@runsonmypc runsonmypc commented May 26, 2026

Summary

  • hasStaminaPotionInBank and hasEnergyPotionInBank were not reset when the plugin was toggled off and back on, causing the script to permanently skip potion withdrawal for the rest of the client session.
  • Moved the flag reset into the init block so a fresh plugin start always re-checks the bank for potions.

Test plan

  • Start Rogues' Den plugin with stamina/energy potions in bank, verify it withdraws and drinks them
  • Stop and restart the plugin, verify it withdraws and drinks potions again on the next round

hasStaminaPotionInBank and hasEnergyPotionInBank were not reset when the
plugin restarted, causing the script to skip potion withdrawal on
subsequent runs within the same client session.
@chsami chsami merged commit fcda05f into chsami:development May 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants