Fix Charge tag

This commit is contained in:
Guangcong Luo
2020-05-08 04:50:35 -04:00
parent 989d6a42ce
commit 0c19bb3c82
2 changed files with 5 additions and 1 deletions

View File

@@ -2606,6 +2606,7 @@ class PokemonSprite extends Sprite {
destinybond: '<span class="good">Destiny&nbsp;Bond</span>',
snatch: '<span class="good">Snatch</span>',
grudge: '<span class="good">Grudge</span>',
charge: '<span class="good">Charge</span>',
endure: '<span class="good">Endure</span>',
focuspunch: '<span class="neutral">Focusing</span>',
shelltrap: '<span class="neutral">Trap&nbsp;set</span>',

View File

@@ -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}};
}