poke-env
poke-env copied to clipboard
Determining if opponent has choice scarf
Hey Haris,
How can I get the info of which mon went faster last turn? I would like to add some logic to determine if opponent mon needs to have a choice scarf. Could you give me some pointers as to how to do this? I guess I would need to know as well if the opponent last move had priority or not, as well as if it has prankster.
After this, I would also like to try something for choice band/specs, which I am thinking that I would need to know the damage made last turn, and compare it to the maximum damage roll
Do you think this could be useful for the agent? or the agent should eventually be able to figure all this out by itself?
Hey @mancho2000,
Apologies for the delay in response.
This would clearly be an important improvement to poke-env. It is in its roadmap.
The main blocker right now is that there is no stats deduction mechanism that's implement, which would make detecting choice objects relatively easy.
If you are interested in implementing it, you'll need to add some kind of records to Battle
's handling mechanisms.