Skip to content

Commit

Permalink
Do not allow selecting units and taking actions while messages are pl…
Browse files Browse the repository at this point in the history
…aying.

GitOrigin-RevId: ed9a1c021eaa6ac036b0ec46bcef64010ece868d
  • Loading branch information
cpojer committed May 27, 2024
1 parent 9fc0b4f commit 2e19113
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hera/GameMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,10 @@ export default class GameMap extends Component<Props, State> {
transformOrigin: string | undefined,
isEscape: boolean,
) => {
if (this.state.behavior?.type === 'null') {
return;
}

this._update((state) => {
const newState = {
...state.behavior?.deactivate?.(),
Expand Down

0 comments on commit 2e19113

Please sign in to comment.