Sleep Talk fails on repeated attempts
Closed this issue · 9 comments
Description
Sleep Talk works fine on 1st attempt but every attempt after this fails.
komala.mp4
Here's the Komala from the video:
.lvl = 30,
.species = SPECIES_KOMALA,
.ability = ABILITY_COMATOSE,
.heldItem = ITEM_CHOICE_BAND,
.moves = {MOVE_SLEEP_TALK, MOVE_LAST_RESORT},
Version
1.8.5 (Latest release)
Upcoming/master Version
No response
Discord contact info
No response
Do you know if this behavior occurs for moves other than Last Resort?
No idea. I did try some basic moves but the problem is that it's hard to test because then the AI will prefer using them directly
Have you tried reproducing this as a player? Does Sleep Talk fail if you do the things the AI did, with the Komala the AI had?
Not yet but I can try
Same issue when used by the player
Perfect, thank you! Could you check if it's specific to Last Resort? I ask because you could imagine Last Resort getting a bit weird due to it caring about which other moves have been chosen.
Tried with rapid spin instead and had the same issue. However, I think the issue is with the choice items instead because i tried unequipping the choice band and both last resort and rapid spin started working fine afterwards
Ah, cool, thanks for digging into what's going on. That'll make it easier to work out what's going wrong in the code :)
I also tried it in vanilla Ultra Sun to see if it was intended behavior but it seemed to work perfectly fine there