Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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
nanahira
ygopro-core
Commits
ac12ab98
Commit
ac12ab98
authored
Mar 31, 2021
by
mercury233
Committed by
GitHub
Mar 31, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Duel.MoveSequence (#371)
parent
d11d5321
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
libduel.cpp
libduel.cpp
+7
-5
No files found.
libduel.cpp
View file @
ac12ab98
...
@@ -865,11 +865,13 @@ int32 scriptlib::duel_move_sequence(lua_State *L) {
...
@@ -865,11 +865,13 @@ int32 scriptlib::duel_move_sequence(lua_State *L) {
int32
seq
=
(
int32
)
lua_tointeger
(
L
,
2
);
int32
seq
=
(
int32
)
lua_tointeger
(
L
,
2
);
duel
*
pduel
=
pcard
->
pduel
;
duel
*
pduel
=
pcard
->
pduel
;
int32
playerid
=
pcard
->
current
.
controler
;
int32
playerid
=
pcard
->
current
.
controler
;
pduel->game_field->move_card(playerid, pcard, pcard->current.location, seq);
if
(
pcard
->
is_affect_by_effect
(
pduel
->
game_field
->
core
.
reason_effect
))
{
pduel->game_field->raise_single_event(pcard, 0, EVENT_MOVE, pduel->game_field->core.reason_effect, 0, pduel->game_field->core.reason_player, playerid, 0);
pduel
->
game_field
->
move_card
(
playerid
,
pcard
,
pcard
->
current
.
location
,
seq
);
pduel->game_field->raise_event(pcard, EVENT_MOVE, pduel->game_field->core.reason_effect, 0, pduel->game_field->core.reason_player, playerid, 0);
pduel
->
game_field
->
raise_single_event
(
pcard
,
0
,
EVENT_MOVE
,
pduel
->
game_field
->
core
.
reason_effect
,
0
,
pduel
->
game_field
->
core
.
reason_player
,
playerid
,
0
);
pduel->game_field->process_single_event();
pduel
->
game_field
->
raise_event
(
pcard
,
EVENT_MOVE
,
pduel
->
game_field
->
core
.
reason_effect
,
0
,
pduel
->
game_field
->
core
.
reason_player
,
playerid
,
0
);
pduel->game_field->process_instant_event();
pduel
->
game_field
->
process_single_event
();
pduel
->
game_field
->
process_instant_event
();
}
return
0
;
return
0
;
}
}
int32
scriptlib
::
duel_swap_sequence
(
lua_State
*
L
)
{
int32
scriptlib
::
duel_swap_sequence
(
lua_State
*
L
)
{
...
...
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