mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 14:52:36 -05:00
Fix Charge tag
This commit is contained in:
@@ -2606,6 +2606,7 @@ class PokemonSprite extends Sprite {
|
||||
destinybond: '<span class="good">Destiny 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 set</span>',
|
||||
|
||||
@@ -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}};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user