Fix messages for Queenly Majesty, Dazzling, and Damp (#1332)

This commit is contained in:
Jacob McLemore
2019-07-21 07:30:31 -04:00
committed by Kirk Scheibelhut
parent 8ca9916bdc
commit 212bffd87f

View File

@@ -140,10 +140,10 @@ class BattleTextParser {
}
case 'cant': {
let [, pokemon, effect] = args;
let [, pokemon, effect, move] = args;
if (['ability: Queenly Majesty', 'ability: Damp', 'ability: Dazzling'].includes(effect)) {
args[0] = '-block';
return {args: ['-block', pokemon, effect, kwArgs.of], kwArgs: {}};
return {args: ['-block', pokemon, effect, move, kwArgs.of], kwArgs: {}};
}
break;
}