Fix Forewarn and Symbiosis (#1201)

This commit is contained in:
urkerab
2018-12-31 08:33:50 +00:00
committed by Guangcong Luo
parent 0f3145b1ef
commit cc934a8061

View File

@@ -599,7 +599,7 @@ class BattleTextParser {
} else if (!arg4 && [
'grudge', 'forewarn', 'magnitude', 'sketch', 'persistent', 'symbiosis', 'safetygoggles', 'matblock', 'safetygoggles', 'leppaberry',
].includes(id)) {
[target, arg4] = [pokemon, target];
[target, arg4] = [kwArgs.of, target];
} else if (!target && ['hyperspacefury', 'hyperspacehole', 'phantomforce', 'shadowforce', 'feint'].includes(id)) {
[pokemon, target] = [kwArgs.of, pokemon];
if (!pokemon) pokemon = target;