mirror of
https://github.com/exane/not-gwent-online
synced 2024-11-23 19:36:53 +00:00
remove leaders from list
This commit is contained in:
parent
2c7542df2b
commit
61e04610c0
@ -18,7 +18,12 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
ready: function() {
|
ready: function() {
|
||||||
this.cards = cards;
|
// filter over leaders and store them separately.
|
||||||
|
this.cards = $.map(cards, (n) => {
|
||||||
|
if(n.type != 3) return n;
|
||||||
|
|
||||||
|
this.leaders.push(n);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
@ -30,7 +35,7 @@ module.exports = {
|
|||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.all-cards').removeClass('remove');
|
$('.all-cards').removeClass('remove');
|
||||||
}, 600);
|
}, 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user