Skip to content

Commit

Permalink
handle hidelines/swapsideconditions/ability better
Browse files Browse the repository at this point in the history
  • Loading branch information
scheibo committed Dec 7, 2024
1 parent b2f20e6 commit af55c00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion anon/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ function anonymize(
case 'chatmsg':
case 'chatmsg-raw':
case 'controlshtml':
case 'hidelines':
case 'fieldhtml':
case 'inactive':
case 'inactiveoff':
Expand Down Expand Up @@ -259,6 +260,7 @@ function anonymize(
case '-ohko':
case '-center':
case '-combine':
case '-swapsideconditions':
case '-fieldactivate': {
return combine(args);
}
Expand Down Expand Up @@ -369,7 +371,7 @@ function anonymize(
}

case '-ability': {
args[1] = anonymizePokemon(args[1], pokemonMap);
if (args[1] !== '') args[1] = anonymizePokemon(args[1], pokemonMap);
if (args[3] && IDENT.test(args[3])) {
args[3] = anonymizePokemon(args[3] as PokemonIdent, pokemonMap);
} else if (args[3]?.includes(':')) {
Expand Down

0 comments on commit af55c00

Please sign in to comment.