|
|
|
|
@ -478,6 +478,8 @@ class Board{
|
|
|
|
|
this.moveElementPositions(0, elementFrom, fromPosition, playerFrom);
|
|
|
|
|
//console.log(JSON.stringify(boardElement));
|
|
|
|
|
//console.log(JSON.stringify(listPosition));
|
|
|
|
|
|
|
|
|
|
this.removeItemStatus(itemKey);
|
|
|
|
|
this.drawBoard();
|
|
|
|
|
return 1; // Got a loop that calls a loop, and checks the new values atm, so this keeps counting down
|
|
|
|
|
|
|
|
|
|
@ -765,6 +767,10 @@ class Board{
|
|
|
|
|
remainingShieldCount(playerId){
|
|
|
|
|
return getCurrentPositionAndLength('shield', playerId)[1];
|
|
|
|
|
}
|
|
|
|
|
removeItemStatus(itemKey){
|
|
|
|
|
// TODO: Remove status of card, and do/don't do effect depending on locationTo/locationFrom?
|
|
|
|
|
cardStatus[itemKey] = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// TODO: TEMP!! Replace soon
|
|
|
|
|
|