mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 04:23:45 -05:00
Only show debug messages in debug mode
This commit is contained in:
parent
fe7d362c91
commit
4001463370
|
|
@ -146,6 +146,7 @@ exports.BattleFormats = {
|
|||
name: "Debug Mode",
|
||||
challengeShow: true,
|
||||
canUseRandomTeam: true,
|
||||
debug: true,
|
||||
// no restrictions, for serious
|
||||
ruleset: []
|
||||
},
|
||||
|
|
@ -163,6 +164,7 @@ exports.BattleFormats = {
|
|||
name: "Debug Mode (Gen 4)",
|
||||
challengeShow: true,
|
||||
canUseRandomTeam: true,
|
||||
debug: true,
|
||||
// no restrictions, for serious
|
||||
ruleset: []
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2514,7 +2514,9 @@ function Battle(roomid, format, rated) {
|
|||
selfB.log.push('| '+Array.prototype.slice.call(arguments).join(' | '));
|
||||
};
|
||||
this.debug = function(activity) {
|
||||
selfB.add('debug', activity);
|
||||
if (selfB.getFormat(selfB.format).debug) {
|
||||
selfB.add('debug', activity);
|
||||
}
|
||||
};
|
||||
this.join = function(user, slot) {
|
||||
if (selfB.p1 && selfB.p1.user && selfB.p2 && selfB.p2.user) return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user