Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
love_飞影
Neos
Commits
9549cfbe
Commit
9549cfbe
authored
Mar 20, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix reload
parent
0eb554ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/reducers/duel/commonSlice.ts
src/reducers/duel/commonSlice.ts
+1
-1
src/reducers/duel/util.ts
src/reducers/duel/util.ts
+2
-2
No files found.
src/reducers/duel/commonSlice.ts
View file @
9549cfbe
...
...
@@ -72,7 +72,7 @@ export const updateFieldDataImpl: DuelReducer<MsgUpdateData> = (
const
zone
=
action
.
payload
.
zone
;
const
actions
=
action
.
payload
.
actions
;
if
(
player
&&
zone
&&
actions
)
{
if
(
player
!==
undefined
&&
zone
!==
undefined
&&
actions
!==
undefined
)
{
switch
(
zone
)
{
case
ygopro
.
CardZone
.
HAND
:
{
const
hand
=
judgeSelf
(
player
,
state
)
?
state
.
meHands
:
state
.
opHands
;
...
...
src/reducers/duel/util.ts
View file @
9549cfbe
...
...
@@ -15,10 +15,10 @@ export function judgeSelf(player: number, state: Draft<DuelState>): boolean {
const
selfType
=
state
.
selfType
;
if
(
selfType
===
1
)
{
// 自己是先攻
return
player
==
=
0
;
return
player
==
0
;
}
else
if
(
selfType
===
2
)
{
// 自己是后攻
return
player
==
=
1
;
return
player
==
1
;
}
else
{
// currently never reach
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment