Ill correct yours but will use java as i aint into c++
while(true){
If(player.getMana() <= player.getMana() * (2/3)/* u get about 30% mana recovered with a pot */){
player.usePot();
}
}
U actually did the mistake to make it <= 50 which would end up in using the pot everytime u fall below 50HP which isnt good xD
Btw as u need the Native Client for AL
AL should be written in C++
PS: pls ignore syntax i cant write on mobile phone
Bookmarks