Bug Report: BuyPotionAction Crashes the Agent
When BuyPotionAction runs, it crashes the agent. The problem occurs in action.py at line 149:
if coordinator.game.are_potions_full():
This line uses the current game state, but it should reference the last game state to avoid inconsistencies, like so:
if coordinator.last_game_state.are_potions_full():
Changing this one variable fixes the crash.
Steps to reproduce:
- Use
BuyPotionAction.
- Observe the crash at the potion check.
Bug Report: BuyPotionAction Crashes the Agent
When
BuyPotionActionruns, it crashes the agent. The problem occurs inaction.pyat line 149:This line uses the current game state, but it should reference the last game state to avoid inconsistencies, like so:
Changing this one variable fixes the crash.
Steps to reproduce:
BuyPotionAction.