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

[Bug] Moves that add Certain BattlerTags Return Score of NaN #4748

Open
Snailman11 opened this issue Oct 28, 2024 · 3 comments
Open

[Bug] Moves that add Certain BattlerTags Return Score of NaN #4748

Snailman11 opened this issue Oct 28, 2024 · 3 comments
Assignees
Labels
Move Affects a move P2 Bug Minor. Non crashing Incorrect move/ability/interaction

Comments

@Snailman11
Copy link
Collaborator

Describe the bug

Throat Chop returns a score of -20, Torment returns 0, Endure returns -20

Please Cross-reference Battlertags here

with the ones that currently have scoring here

switch (this.tagType) {

Reproduction

Look at the code please

Expected behavior

It should be a move the enemy selects

Screenshots / Videos

Throat Chop

Throat Chop Scores 0 for AI

Torment

Torment

Endure

Endure scores 0

Session export file

No response

User data export file

No response

Additional context

getTagTargetBenefitScore(user: Pokemon, target: Pokemon, move: Move): integer | void {

Might be a list of current, it seems incomplete?

@Snailman11 Snailman11 added the Move Affects a move label Oct 28, 2024
@Snailman11 Snailman11 changed the title [Bug] Throat Chop and Torment Returns a Score of NaN [Bug] Moves that add Certain BattlerTags Return Score of NaN Oct 28, 2024
@Snailman11 Snailman11 added the P2 Bug Minor. Non crashing Incorrect move/ability/interaction label Oct 28, 2024
@Snailman11 Snailman11 moved this from To triage to Ready in PokéRogue Bug Management Oct 28, 2024
@Ceimir
Copy link

Ceimir commented Oct 28, 2024

I have also ran into the moves Ingrain, Charge, Magnet Rise, Stockpile, Obstruct, Taunt, Smack Down, No Retreat, Thousand Arrows, Rage Powder, Spiky Shield, King's Shield and Power Trick returning a score of NaN, in addition to the moves already listed.

@Snailman11
Copy link
Collaborator Author

Roost might be included

@Snailman11
Copy link
Collaborator Author

Syrup Bomb
Syrup Bomb NAN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Move Affects a move P2 Bug Minor. Non crashing Incorrect move/ability/interaction
Projects
Status: Ready
Development

No branches or pull requests

3 participants