Skip to content

Commit 5bfa08b

Browse files
committed
Battles: Support overriding line sections
Really this should probably be handled with `|` rather than with a complicated system for guessing where to break messages... but it's easier not to change these old systems.
1 parent dd5f8eb commit 5bfa08b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

play.pokemonshowdown.com/src/battle-text-parser.ts

+4
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,10 @@ export class BattleTextParser {
385385
}
386386

387387
lineSection(args: Args, kwArgs: KWArgs) {
388+
if (kwArgs.premajor) return 'preMajor';
389+
if (kwArgs.postmajor) return 'postMajor';
390+
if (kwArgs.major) return 'major';
391+
388392
const cmd = args[0];
389393
switch (cmd) {
390394
case 'done' : case 'turn':

0 commit comments

Comments
 (0)