mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Make Battle#debug more flexible (#11685)
This commit is contained in:
parent
f5483a18d0
commit
1a18b3dd55
|
|
@ -3144,9 +3144,9 @@ export class Battle {
|
|||
this.log[this.lastMoveLine] = parts.join('|');
|
||||
}
|
||||
|
||||
debug(activity: string) {
|
||||
debug(...activity: Part[]) {
|
||||
if (this.debugMode) {
|
||||
this.add('debug', activity);
|
||||
this.add('debug', ...activity);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user