All the time AAP just stops working and my Lif ends up dying, even though Alchemist Auto Attack still works in MirAI, but when I try to fix it by Rest/Recall, a lot of the time it says "Skill failed" when I try to use Rest. What's the cause and a fix for either or both?
Rest only works if the pet's HP is above a certain percent.
As for AAP...This takes some explanation...
As I understand it, MirAI will turn off auto potion pitching if it detects that you are out of potions. The way that it detects you're out of potions is not by checking your inventory, MirAI can't do that. What it does, is check to see if the HP of your pet changes once it pitches a potion. If it does not detect that the pet's HP goes up a lot, then it assumes that you're out of potions and stops pitching.
For example, let's say your pet has 1000 hp. MirAI detects that it is low and pitches a potion and heals 1890. However, before MirAI checks the hp again, your pet takes 2000 damage and now has 890 hp. MirAI thinks that the potion pitch was unsuccessful, because it has less HP than when it last checked, so AAP is turned off.