diff --git a/src/client/src/modules/game/GameView.tsx b/src/client/src/modules/game/GameView.tsx index 2fdf88c..e322605 100644 --- a/src/client/src/modules/game/GameView.tsx +++ b/src/client/src/modules/game/GameView.tsx @@ -672,6 +672,13 @@ export const GameView: React.FC = ({ gameState, currentPlayerId } const allLands = myBattlefield.filter(c => c.types?.includes('Land') && !c.types?.includes('Creature')); const others = myBattlefield.filter(c => !c.types?.includes('Creature') && !c.types?.includes('Land')); + const landGroups = allLands.reduce((acc, card) => { + const key = card.name || 'Unknown Land'; + if (!acc[key]) acc[key] = []; + acc[key].push(card); + return acc; + }, {} as Record); + const renderCard = (card: CardInstance) => { @@ -797,7 +804,29 @@ export const GameView: React.FC = ({ gameState, currentPlayerId } Lands )} - {allLands.map(renderCard)} + {Object.entries(landGroups).map(([name, group]) => ( +
+ {group.map((card, index) => ( +
+ {renderCard(card)} +
+ ))} +
+ ))} );