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
baichixing
Neos
Commits
a8c0b184
Commit
a8c0b184
authored
Jul 13, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: hand cards should move together
parent
dbb6ef00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
src/service/duel/move.ts
src/service/duel/move.ts
+8
-7
No files found.
src/service/duel/move.ts
View file @
a8c0b184
...
@@ -157,15 +157,16 @@ export default async (move: MsgMove) => {
...
@@ -157,15 +157,16 @@ export default async (move: MsgMove) => {
target
.
location
=
to
;
target
.
location
=
to
;
// 维护完了之后,开始动画
// 维护完了之后,开始动画
await
eventbus
.
call
(
Task
.
Move
,
target
.
uuid
,
from
.
zone
);
const
p
=
eventbus
.
call
(
Task
.
Move
,
target
.
uuid
,
from
.
zone
);
// 如果from或者to是手卡,那么需要刷新除了这张卡之外,这个玩家的所有手卡
// 如果from或者to是手卡,那么需要刷新除了这张卡之外,这个玩家的所有手卡
if
([
from
.
zone
,
to
.
zone
].
includes
(
HAND
))
{
if
([
from
.
zone
,
to
.
zone
].
includes
(
HAND
))
{
await
Promise
.
all
(
const
pHands
=
cardStore
cardStore
.
at
(
HAND
,
target
.
location
.
controller
)
.
at
(
HAND
,
target
.
location
.
controller
)
.
filter
((
c
)
=>
c
.
uuid
!==
target
.
uuid
)
.
filter
((
c
)
=>
c
.
uuid
!==
target
.
uuid
)
.
map
(
async
(
c
)
=>
await
eventbus
.
call
(
Task
.
Move
,
c
.
uuid
));
.
map
(
async
(
c
)
=>
await
eventbus
.
call
(
Task
.
Move
,
c
.
uuid
))
await
Promise
.
all
([
p
,
...
pHands
]);
);
}
else
{
await
p
;
}
}
// 超量素材位置跟随超量怪兽移动
// 超量素材位置跟随超量怪兽移动
...
...
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