mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 15:53:11 -05:00
Fix team/side messages
This commit is contained in:
@@ -73,12 +73,14 @@ class BattleTextParser {
|
||||
}
|
||||
|
||||
trainer(side: string) {
|
||||
side = side.slice(0, 2);
|
||||
if (side === 'p1') return this.p1;
|
||||
if (side === 'p2') return this.p2;
|
||||
return `???side:${side}???`;
|
||||
}
|
||||
|
||||
team(side: string) {
|
||||
side = side.slice(0, 2);
|
||||
if (side === (this.perspective === 0 ? 'p1' : 'p2')) {
|
||||
return BattleText.default.team;
|
||||
}
|
||||
@@ -86,6 +88,7 @@ class BattleTextParser {
|
||||
}
|
||||
|
||||
own(side: string) {
|
||||
side = side.slice(0, 2);
|
||||
if (side === (this.perspective === 0 ? 'p1' : 'p2')) {
|
||||
return 'OWN';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user