mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-25 07:57:01 -05:00
Battles: Support overriding line sections
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
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.
This commit is contained in:
parent
dd5f8eb9c9
commit
5bfa08b1bd
|
|
@ -385,6 +385,10 @@ export class BattleTextParser {
|
|||
}
|
||||
|
||||
lineSection(args: Args, kwArgs: KWArgs) {
|
||||
if (kwArgs.premajor) return 'preMajor';
|
||||
if (kwArgs.postmajor) return 'postMajor';
|
||||
if (kwArgs.major) return 'major';
|
||||
|
||||
const cmd = args[0];
|
||||
switch (cmd) {
|
||||
case 'done' : case 'turn':
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user