Skip to content

Commit

Permalink
Merge pull request #205 from aiannacc/fix-bot-join-bug
Browse files Browse the repository at this point in the history
Fix bug that prevents adding bots
  • Loading branch information
michaeljb committed Apr 24, 2014
2 parents 7bf6b2f + 77d36ae commit 1dc04c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ext/autokick.js
Expand Up @@ -17,7 +17,7 @@
this.kickedOpps = [];

GS.alsoDo(FS.ZoneClassicHelper, 'onPlayerJoinTable', null, function (table, join) {
if (this.isLocalOwner(table)) {
if (this.isLocalOwner(table) && !join.get('player').get('isBot')) {
var tableName = JSON.parse(table.get('settings')).name;
var opp = join.get('player');
var myId = mtgRoom.localPlayer.getId();
Expand Down

0 comments on commit 1dc04c8

Please sign in to comment.