1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-11-23 19:36:53 +00:00

fix leader choose

This commit is contained in:
devfake 2015-06-25 21:25:39 +02:00
parent 8c3f7417c0
commit 05a7655980

View File

@ -14,8 +14,8 @@ module.exports = {
chooseLeader(card) { chooseLeader(card) {
// todo: make own leader variable // todo: make own leader variable
for(var item in this.deck) { for(var item in this.deck) {
if(this.deck[item].type == 3) { if(this.deck[item].card.type == 3) {
this.deck.$set(item, card); this.deck.$set(item, {card});
} }
} }