pagefaultgames / pokerogue

A browser based Pokémon fangame heavily inspired by the roguelite genre.
https://pokerogue.net
GNU Affero General Public License v3.0
4.53k stars 1.81k forks source link

[Bug] Future Sight is Kept Upon wave Transition and Prevents Usage and Never Hits the Target #4904

Open Snailman11 opened 3 hours ago

Snailman11 commented 3 hours ago

Describe the bug

When used by the opponent, Future Sight's Status is preserved after fainting, but does not hit the target if the opponent has been KO'd and the wave has advanced. -This prevents subsequent Pokemon from using Future Sight successfully

Reproduction

Override opponent Pokemon to have Future Sight, let it be used, then KO the pokemon and advance the wave.

Expected behavior

Future Sight should either hit the Pokémon it targeted successfully or end when a wave advances to be used successfully by a subsequent Pokémon.

Screenshots / Videos

Used by the Opponent, Future Sight does not hit

https://github.com/user-attachments/assets/5b14f098-5f0e-4863-ae10-193eaa6c7861

Used by Opponent and Opponent isn't KO'd and wave does not advance

https://github.com/user-attachments/assets/20f4929a-9a22-42ad-9058-7564c5178063

Used by the Player, Future Sight hits when the wave advances

https://github.com/user-attachments/assets/272e26ce-6caf-4fd1-8a84-47d13c2f6fa8

Used by a Trainer after the mon is KO'd

https://github.com/user-attachments/assets/de691d8b-91c4-427e-ad7f-41fd015052b0

Session export file

No response

User data export file

No response

Additional context

No response

Snailman11 commented 2 hours ago

https://github.com/user-attachments/assets/927d78f5-2424-4bc5-a4fb-e48294b11008

Screenshot (451)

Seems to still exist post-4905