Skip to content

Fix cancelling using last item messing the UI

Actual:

  • When closing the bag UI without using the Item via Shortcut Item (V), the HP bars remains behind the choice instead of being hidden.

Expected:

  • HP Bar should be hidden after cancelling using Item via Shortcut Item (V).

Tests to realize

  1. Add yourself potions: $bag.add_item(:potion, 100)
  2. Start a battle: $wild_battle.start_battle(1, 5)
  3. Lower your Pokémon HP (in battle): $scene.logic.battler(0, 0)
  4. Use the potion on your Pokémon via the bag option
  5. Use the potion via the Shortcut Item (V), cancel
  6. Use the potion via the Shortcut Item (V), accept but when the party menu shows up, cancel
  7. Use the potion via the Shortcut Item (V), accept and heal your Pokémon.

In all cases, the choice & the HP bar should not be visible at once after each of the action.

Merge request reports