diff --git a/assets/data/abilities.js b/assets/data/abilities.js index 12ac982..c4e8b64 100644 --- a/assets/data/abilities.js +++ b/assets/data/abilities.js @@ -51,8 +51,7 @@ module.exports = { } }, "weather_fog": { - onEachTurn: function(args) { - card = args[0] + onEachTurn: function(card) { var targetRow = card.constructor.TYPE.RANGED; var forcedPower = 1; var field1 = this.field[targetRow].get(); @@ -66,7 +65,6 @@ module.exports = { }); }, onEachCardPlace: function(card) { - card = args[0] var targetRow = card.constructor.TYPE.RANGED; var forcedPower = 1; var field1 = this.field[targetRow].get(); @@ -122,5 +120,13 @@ module.exports = { }, "decoy": { replaceWith: true + }, + "foltest_leader1": { + onActivate: function() { + var cards = this.deck.find("key", "impenetrable_fog") + if(!cards.length) return; + var card = this.deck.removeFromDeck(cards[0]); + this.placeCard(card); + } } } \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index cbf1ac8..43c0d8e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -26,7 +26,7 @@ gulp.task('browserify', function(){ }); gulp.task('sass', function(){ - gulp.src('./public/scss/*.scss') + gulp.src('./public/scss/main.scss') .pipe(sass({ outputStyle: 'compressed' }).on("error", function(err){ diff --git a/package.json b/package.json index cbb8435..28f86cb 100644 --- a/package.json +++ b/package.json @@ -10,17 +10,18 @@ "devDependencies": { "babelify": "^6.1.2", "browserify": "^10.2.4", + "connect": "3.0.1", + "express": "4.12.3", "gulp": "^3.9.0", "gulp-livereload": "^3.8.0", "gulp-sass": "^2.0.1", "handlebars": "^3.0.3", "jquery": "^2.1.4", - "promise": "^7.0.1", - "shortid": "^2.2.2", - "connect": "3.0.1", - "express": "4.12.3", "minimist": "1.1.0", + "promise": "^7.0.1", "serve-static": "1.8.0", + "shortid": "^2.2.2", + "underscore": "^1.8.3", "vinyl-source-stream": "^1.1.0" }, "scripts": { diff --git a/public/index.html b/public/index.html index 329c79d..33d7bda 100644 --- a/public/index.html +++ b/public/index.html @@ -131,11 +131,9 @@