From 0c19bb3c82d39c9b01cdf44723af945b7622fc4a Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Fri, 8 May 2020 04:50:35 -0400 Subject: [PATCH] Fix Charge tag --- src/battle-animations.ts | 1 + src/battle-text-parser.ts | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/battle-animations.ts b/src/battle-animations.ts index f8e1072fa..7c9f03c56 100644 --- a/src/battle-animations.ts +++ b/src/battle-animations.ts @@ -2606,6 +2606,7 @@ class PokemonSprite extends Sprite { destinybond: 'Destiny Bond', snatch: 'Snatch', grudge: 'Grudge', + charge: 'Charge', endure: 'Endure', focuspunch: 'Focusing', shelltrap: 'Trap set', diff --git a/src/battle-text-parser.ts b/src/battle-text-parser.ts index 9c6fea824..e9a574674 100644 --- a/src/battle-text-parser.ts +++ b/src/battle-text-parser.ts @@ -123,8 +123,11 @@ class BattleTextParser { return {args: ['-block', pokemon, effect, arg3], kwArgs}; } + if (id === 'charge') { + return {args: ['-singlemove', pokemon, effect], kwArgs: {of: target}}; + } if ([ - 'bind', 'wrap', 'clamp', 'whirlpool', 'firespin', 'magmastorm', 'sandtomb', 'infestation', 'charge', 'trapped', + 'bind', 'wrap', 'clamp', 'whirlpool', 'firespin', 'magmastorm', 'sandtomb', 'infestation', 'trapped', ].includes(id)) { return {args: ['-start', pokemon, effect], kwArgs: {of: target}}; }