mirror of
https://github.com/exane/not-gwent-online
synced 2024-10-31 10: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() {
|
||||
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: {
|
||||
@ -30,7 +35,7 @@ module.exports = {
|
||||
|
||||
setTimeout(function() {
|
||||
$('.all-cards').removeClass('remove');
|
||||
}, 600);
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user