This commit is contained in:
libccy 2017-03-27 15:50:51 +08:00
parent eb131c89fb
commit 1cdf9da9a8
1 changed files with 8 additions and 4 deletions

View File

@ -19677,11 +19677,15 @@
} }
} }
}, },
broadcastAll:function(func){ broadcastAll:function(){
if(game.online) return; if(game.online) return;
game.broadcast.apply(this,arguments); var argc=arguments.length;
var args=Array.from(arguments); var args=new Array(argc);
args.shift(); for(var i=0;i<argc;i++){
args[i]=arguments[i];
}
game.broadcast.apply(this,args);
var func=args.shift();
if(typeof func=='string'){ if(typeof func=='string'){
func=lib.message.client[func]; func=lib.message.client[func];
} }