Skip to content

Commit d178b78

Browse files
committed
Batalla finalizada con test aptos incluido lint
1 parent 95fed7e commit d178b78

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ gulp.task('lint', function () {
1313
.pipe(eslint.format());
1414
});
1515

16-
gulp.task('test', function () {
16+
gulp.task('test', ['lint'], function () {
1717
gulp.src('./spec/**/*')
1818
.pipe(jasmine({ includeStackTrace: true }));
1919
});

src/Battle.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,10 @@ Battle.prototype._attack = function () {
235235
Battle.prototype._cast = function () {
236236
var self = this;
237237
self._showScrolls(function onScroll(scrollId, scroll) {
238-
// Implementa lo que pasa cuando se ha seleccionado el hechizo.
239238
var aux = self._charactersById[self._turns.activeCharacterId].party;
240239
scroll = self._grimoires[aux][scrollId];
241240
self._charactersById[self._turns.activeCharacterId].mp -= scroll.cost;
242-
241+
243242
self._showTargets(function onTarget(targetId){
244243
self._action.targetId = targetId;
245244
self._action.effect = scroll.effect

0 commit comments

Comments
 (0)