mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-13 20:56:11 +01:00
fix: remove shot when swithcing shells
This commit is contained in:
1 parent
01e7353ef4
commit
1b9cf8b604
3 files changed
+17
-2
No files matched your search
@@ -18,7 +18,10 @@ import {
|
||||
TIER_ROMAN_NUMERALS,
|
||||
} from '../../../../../../core/blitzkrieg/tankDefinitions';
|
||||
import { mutateDuel, useDuel } from '../../../../../../stores/duel';
|
||||
import { useTankopediaTemporary } from '../../../../../../stores/tankopedia';
|
||||
import {
|
||||
mutateTankopediaTemporary,
|
||||
useTankopediaTemporary,
|
||||
} from '../../../../../../stores/tankopedia';
|
||||
import { TankSearch } from '../../../components/TankSearch';
|
||||
|
||||
export function AntagonistBar() {
|
||||
@@ -47,6 +50,9 @@ export function AntagonistBar() {
|
||||
onClick={() => {
|
||||
mutateDuel((draft) => {
|
||||
draft.antagonist!.shell = shell;
|
||||
mutateTankopediaTemporary((draft) => {
|
||||
draft.shot = undefined;
|
||||
});
|
||||
});
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user