Skip to content

Commit

Permalink
Fix ???-type icon loading on type change animations
Browse files Browse the repository at this point in the history
  • Loading branch information
DaWoblefet committed Jul 17, 2024
1 parent 6d1b654 commit 3a9c9c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion play.pokemonshowdown.com/src/battle-animations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ export class BattleScene implements BattleSceneStub {

typeAnim(pokemon: Pokemon, types: string) {
const result = BattleLog.escapeHTML(types).split('/').map(type =>
'<img src="' + Dex.resourcePrefix + 'sprites/types/' + type + '.png" alt="' + type + '" class="pixelated" />'
'<img src="' + Dex.resourcePrefix + 'sprites/types/' + encodeURIComponent(type) + '.png" alt="' + type + '" class="pixelated" />'
).join(' ');
this.resultAnim(pokemon, result, 'neutral');
}
Expand Down

0 comments on commit 3a9c9c6

Please sign in to comment.