poke-env icon indicating copy to clipboard operation
poke-env copied to clipboard

Determining if opponent has choice scarf

Open mancho2000 opened this issue 3 years ago • 2 comments

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

mancho2000 avatar Jun 18 '21 07:06 mancho2000

Do you think this could be useful for the agent? or the agent should eventually be able to figure all this out by itself?

mancho2000 avatar Jun 18 '21 07:06 mancho2000

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.

hsahovic avatar Jun 21 '21 09:06 hsahovic