Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opponent pokemon sprite disappears after using Roar #481

Closed
PaulBeslin opened this issue May 5, 2024 · 5 comments · Fixed by #3927
Closed

Opponent pokemon sprite disappears after using Roar #481

PaulBeslin opened this issue May 5, 2024 · 5 comments · Fixed by #3927
Labels
(Legacy) Bug Legacy Label, don't apply to new issues/PRs Move Affects a move

Comments

@PaulBeslin
Copy link
Contributor

When an opponent pokemon (Trainer or wild) uses Roar, its sprite disappears. The pokemon is still here and behaves properly, except for the sprite.
Other moves such as whirlwind do not seem to be affected.
Using Roar as the player works as intended.

To reproduce, override the opponent used move to be Roar.

image

@Madmadness65 Madmadness65 added (Legacy) Bug Legacy Label, don't apply to new issues/PRs Move Affects a move labels May 5, 2024
@happinyz
Copy link
Contributor

happinyz commented May 8, 2024

PR for the fix: #625

@happinyz
Copy link
Contributor

happinyz commented May 9, 2024

PR for the fix: #625

I suspect this is something wrong with the animation file, rather than any move application/attribute logic. When changing Roar's attributes to the exact same ones as Whirlwind's, this bug still happens. However, when I switch Roar's animation to use Whirlwind's, this bug does not appear.

I tried playing around with the animation file a bit but I'm not super familiar with how the animation framework works. I've closed my PR for now. I welcome anyone who's more familiar with the animation system to tackle this bug.

@pom-eranian
Copy link
Collaborator

Copy pasted from discord since the issue was brought up there.

I already tried changing or removing the anim file's parameters one by one and it still happened.
The behavior I saw every single time is that no matter who used the move, player or opponent, the opponent disappeared after the anim ends and before the player team UI shows up.
Then I tried extending and shortening the amount of frames, and every time the opponent would disappear after the anim was done.

However having another move do the same thing is interesting. Does anyone know if baneful bunker already did this or is it a new bug? It's new.

The only part that can be fixed through the anim file is the little blip at the end like this: #1660 (comment)

@Snailman11
Copy link
Collaborator

Snailman11 commented Jul 30, 2024

Link to Discord (New Report)
https://discord.com/channels/1125469663833370665/1273010472819494912

-D-tail too now

@flx-sta
Copy link
Collaborator

flx-sta commented Aug 30, 2024

After some debugging I noticed that only Roar and Dragon Tail seem to do a false-swap of user and target during the animation.
I was fighting with Charmander vs a wild Surfskit
I'm going to dump some debug messages in here to show what I mean


Roar

anim:  PRAS- Roar 
    User Charmander  | this.user: Surskit 
    Target Surskit  | this.target: Charmander

Dragon Tail

anim:  PRAS- Dragon Tail 
	User Charmander  | this.user: Surfskit 
	Target Surfskit  | this.target: Charmander 

Whirlwind

anim:  PRAS- Twister 
    User Surskit  | this.user: Surskit 
    Target Charmander  | this.target: Charmander

Scratch

anim:  PRAS- Slash 
    User Charmander  | this.user: Charmander 
    Target Surskit  | this.target: Surskit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(Legacy) Bug Legacy Label, don't apply to new issues/PRs Move Affects a move
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

6 participants