Add untapCard helper

develop
Nathan Steel 1 year ago
parent 3ed1be6bc8
commit 572fc1b40b

@ -758,6 +758,10 @@ class Board{
cardStatus[itemKey] = 'tapped'; cardStatus[itemKey] = 'tapped';
// Do any other 'on tap' effects, etc. in the future // Do any other 'on tap' effects, etc. in the future
} }
untapCard(itemKey){
cardStatus[itemKey] = null;
// Do any other 'on tap' effects, etc. in the future
}
remainingShieldCount(playerId){ remainingShieldCount(playerId){
return getCurrentPositionAndLength('shield', playerId)[1]; return getCurrentPositionAndLength('shield', playerId)[1];
} }
@ -1045,7 +1049,7 @@ function untapZone(elementFrom, playerFrom){
// Just basic, if tapped, untap logic // Just basic, if tapped, untap logic
// See why the loop shouldn't need re-adding each time? // See why the loop shouldn't need re-adding each time?
if(cardStatus[itemKey] == 'tapped'){ if(cardStatus[itemKey] == 'tapped'){
cardStatus[itemKey] = null; board.untapCard(itemKey);
} }
} }
} }

Loading…
Cancel
Save