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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
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
MyCard
Neos
Commits
7fcc5c00
Commit
7fcc5c00
authored
Mar 20, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/reload' into 'main'
fix reload See merge request
!149
parents
0eb554ec
9549cfbe
Pipeline
#20853
passed with stages
in 18 minutes and 41 seconds
Changes
2
Pipelines
1
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 @
7fcc5c00
...
...
@@ -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 @
7fcc5c00
...
...
@@ -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