AI BehaviourTree: Champion AI are unable to use their health potions (Item ID 2003)
Base bt.Heal has logic for using an already-bought health potion on self if health is below a certain threshold
AtBaseHealAndBuy has logic for purchasing a Health Potion (ID 2003) if the Champion currently does not have one
While the Champion actually does purchase potions for their inventory, they seem unable to use the potions on themselves to heal.
I have tested this across multiple Champion AI, and despite having and carrying Health Potions, they do not use them under any circumstance.
At the moment, all this is doing is just filling their inventory with an item they can't use, rather than more stats by continuing to finish their currently building item.
How to reproduce:
- Start a match with a bunch of Champion AI assigned to the enemy team
- Observe that they have bought potions, or are carrying them in-inventory
- Go in lane and beat them up a bit until their health gets low
- Observe that no matter what, they never use the Health Potion
I attempted to add potion use logic in a Champion's individual Heal script (example: Alistar), and it did not work.
Not sure what the cause is, is the base bt.Heal being overridden by the Champions individual Heal class? If so, then adding potion use logic to the Champions own Heal class should have been the fix, but it wasn't.
Listing this here on the issue board for smarter minds.