Fix block messages

This commit is contained in:
Guangcong Luo
2019-01-07 22:46:39 -05:00
parent 655b7e1d99
commit 4e37bd0e8d

View File

@@ -73,7 +73,7 @@ class BattleTextParser {
'electricterrain', 'mistyterrain', 'psychicterrain', 'telepathy', 'stickyhold', 'suctioncups', 'aromaveil',
'flowerveil', 'sweetveil', 'disguise', 'safetygoggles', 'protectivepads',
].includes(id)) {
return {args: ['-block', target, effect, arg3], kwArgs: {}};
return {args: ['-block', target || pokemon, effect, arg3], kwArgs: {}};
}
if ([