1
0
mirror of https://github.com/exane/not-gwent-online synced 2025-10-09 07:39:08 +00:00

update stuff

This commit is contained in:
exane
2015-06-22 18:48:08 +02:00
parent 03f6645211
commit d4fc3b0404
5 changed files with 78 additions and 78 deletions

View File

@@ -405,9 +405,10 @@ var BattleView = Backbone.View.extend({
},
clickLeader: function(e){
var $card = $(e.target).closest(".field-leader");
console.log("click leader");
if(!$card.parent().hasClass("player")) return;
if($card.hasClass("disabled")) return;
if($card.find(".card").hasClass("disabled")) return;
console.log("click leader");
this.app.send("activate:leader")