diff --git a/packages/client/src/components/MapCell/index.tsx b/packages/client/src/components/MapCell/index.tsx index 6ad81157..54d69844 100644 --- a/packages/client/src/components/MapCell/index.tsx +++ b/packages/client/src/components/MapCell/index.tsx @@ -43,7 +43,7 @@ const MapCell = (props: IProps) => { const [menuVisible, setMenuVisible] = useState(false); const [activePlayerId, setActivePlayerId] = useState(-1); - const { mapData, openTreasureChest } = useContext(GameContext); + const { mapData, openTreasureChest, setStartBattleData } = useContext(GameContext); const isDelivery = DELIVERY.x === x && DELIVERY.y === y; @@ -85,6 +85,7 @@ const MapCell = (props: IProps) => { case 'info': break; case 'attack': + setStartBattleData(true); break; } } diff --git a/packages/client/src/components/MapCell/styles.scss b/packages/client/src/components/MapCell/styles.scss index 527d6d62..627c95e6 100644 --- a/packages/client/src/components/MapCell/styles.scss +++ b/packages/client/src/components/MapCell/styles.scss @@ -57,7 +57,7 @@ } .mi-btn { - font-size: 24px; + font-size: 16px; width: 136px; height: 46px; }