Fix triggerWeatherBasedFormChanges

This commit is contained in:
Dean 2025-09-20 18:07:19 -07:00
parent 6a47cb01da
commit ce8bc325f6

View File

@ -376,7 +376,7 @@ export class Arena {
// TODO - This is a bandaid. Abilities leaving the field needs a better approach than // TODO - This is a bandaid. Abilities leaving the field needs a better approach than
// calling this method for every switch out that happens // calling this method for every switch out that happens
if (p === source) { if (p === source) {
return; continue;
} }
const isCastformWithForecast = p.hasAbility(AbilityId.FORECAST) && p.species.speciesId === SpeciesId.CASTFORM; const isCastformWithForecast = p.hasAbility(AbilityId.FORECAST) && p.species.speciesId === SpeciesId.CASTFORM;
const isCherrimWithFlowerGift = p.hasAbility(AbilityId.FLOWER_GIFT) && p.species.speciesId === SpeciesId.CHERRIM; const isCherrimWithFlowerGift = p.hasAbility(AbilityId.FLOWER_GIFT) && p.species.speciesId === SpeciesId.CHERRIM;