mirror of
https://github.com/exane/not-gwent-online
synced 2024-11-23 19:36:53 +00:00
minor bugfixes
This commit is contained in:
parent
a48d36b5ba
commit
e139077ee5
@ -4,7 +4,6 @@ var Backbone = require("backbone");
|
||||
require("./backbone.modal-min");
|
||||
var Handlebars = require("handlebars");
|
||||
var $ = require("jquery");
|
||||
//var Lobby = require("./client-lobby");
|
||||
|
||||
window.$ = $;
|
||||
|
||||
@ -307,6 +306,7 @@ var BattleView = Backbone.View.extend({
|
||||
onClickFieldCard: function(e){
|
||||
if(this.user.get("waitForDecoy")){
|
||||
var $card = $(e.target).closest(".card");
|
||||
if(!$card.length) return;
|
||||
var _id = $card.data("id");
|
||||
|
||||
if($card.parent().hasClass("field-horn")) return;
|
||||
|
@ -89,7 +89,7 @@
|
||||
</div>
|
||||
<div class="col-xs-2 field-horn field-horn-siege">
|
||||
</div>
|
||||
<div class="col-xs-10 field{{#if active.range}} active{{/if}}">
|
||||
<div class="col-xs-10 field{{#if active.siege}} active{{/if}}">
|
||||
<div class="col-xs-1 large-field-counter">0</div>
|
||||
<div class="col-xs-11 field-siege"></div>
|
||||
</div>
|
||||
|
@ -59,6 +59,7 @@ gulp.task("unit tests", function(){
|
||||
|
||||
gulp.task("watch", function(){
|
||||
gulp.watch("./client/js/*", ["browserify"]);
|
||||
gulp.watch("./client/templates/*", ["browserify"]);
|
||||
gulp.watch("./client/scss/*", ["sass"]);
|
||||
gulp.watch("./client/*.html", ["index"]);
|
||||
gulp.watch("./test/src/*", ["unit tests"]);
|
||||
|
@ -61,9 +61,13 @@ var Battle = (function(){
|
||||
this.p2.setLeadercard();
|
||||
this.p1.draw(10);
|
||||
this.p2.draw(10);
|
||||
/*this.p1.hand.add(Card("commanders_horn"));
|
||||
this.p1.hand.add(Card("commanders_horn"));
|
||||
this.p2.hand.add(Card("commanders_horn"));
|
||||
this.p1.hand.add(Card("milva"));
|
||||
this.p1.hand.add(Card("ciaran_aep_easnillien"));
|
||||
this.p2.hand.add(Card("ciaran_aep_easnillien"));
|
||||
/*this.p1.hand.add(Card("decoy"));
|
||||
this.p2.hand.add(Card("decoy"));*/
|
||||
/*this.p1.hand.add(Card("milva"));
|
||||
this.p2.hand.add(Card("milva"));
|
||||
this.p1.hand.add(Card("havekar_healer"));
|
||||
this.p2.hand.add(Card("havekar_healer"));
|
||||
@ -96,8 +100,7 @@ var Battle = (function(){
|
||||
this.p2.hand.add(Card("ballista"));
|
||||
this.p1.hand.add(Card("ballista"));
|
||||
this.p2.hand.add(Card("ballista"));*/
|
||||
/*this.p1.hand.add(Card("decoy"));
|
||||
this.p2.hand.add(Card("decoy"));*/
|
||||
|
||||
/*
|
||||
this.p1.hand.add(Card("dun_banner_medic"));
|
||||
this.p2.hand.add(Card("dun_banner_medic"));
|
||||
|
Loading…
Reference in New Issue
Block a user