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

Sparkling Aria cures burns from Pokemon with Shield Dust where it shouldn't #10293

Open
hedara90 opened this issue May 12, 2024 · 1 comment
Open

Comments

@hedara90
Copy link

Sparkling Aria shouldn't cure burns from Pokemon with Shield Dust (and I'm assuming Covert Cloak too) in Single Battles.
Sparkling Aria correctly cures burns from Pokemon with Shield Dust in Double Battles where Sparkling Aria hits multiple Pokemon.
Sparkling Aria incorrectly cures burns from Pokemon with Shield Dust in Double Battles where Sparkling Aria hits only a single Pokemon.
Singles, shouldn't cure.
20240512_18h01m04s_grim

Doubles, should cure.
20240512_17h52m13s_grim

Doubles, shouldn't cure.
20240512_17h57m44s_grim

@Souvikns
Copy link

Souvikns commented Sep 25, 2024

According to bulbapedia,

Shield Dust prevents a Pokémon's burn being cured by Sparkling Aria if it is the only target of the attack (even in battles such as Double Battles, as long as there are no other targets of Sparkling Aria); however, if the attack has multiple targets, all targets will be cured on burn even if they have Shield Dust. (Wake-Up Slap and Smelling Salts, which also cure status conditions, are not considered to have additional effects and thus are not affected by Shield Dust.) This behavior is unique to Sparkling Aria—for example, Shield Dust prevents a Pokémon from being paralyzed by Discharge regardless of the number of targets.

I think this is happening because of this:

pokemon-showdown/data/moves.ts

Lines 18012 to 18018 in d155b49

onAfterMove(source, target, move) {
for (const pokemon of this.getAllActive()) {
if (pokemon !== source && pokemon.removeVolatile('sparklingaria') && pokemon.status === 'brn' && !source.fainted) {
pokemon.cureStatus();
}
}
},

I can open a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants