Skip to content

Commit

Permalink
remove stance selection during auto battle
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisinajar committed Jul 31, 2024
1 parent 06a4b40 commit 156ff5d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/combat/combat-display.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export function CombatDisplay(props: CombatDisplayProps): JSX.Element | null {

return (
<React.Fragment>
<StanceSelector onChange={setDesiredStance} />
{!autoBattle && <StanceSelector onChange={setDesiredStance} />}
<Grid
id="combat-display"
sx={{
Expand Down
1 change: 0 additions & 1 deletion src/components/combat/stance-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export function StanceSelector(props: {
}));

function handleChangeStance(stance: HeroStance) {
console.log("Setting stance to", stance, hero);
setSelectedStance(stance);
if (props.onChange) {
props.onChange(stance);
Expand Down

0 comments on commit 156ff5d

Please sign in to comment.