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
xiaoye
ygopro-core
Commits
e98fd8cc
Commit
e98fd8cc
authored
Mar 31, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-core
parents
7b4cd8d5
ac12ab98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
field.cpp
field.cpp
+2
-0
libduel.cpp
libduel.cpp
+7
-5
No files found.
field.cpp
View file @
e98fd8cc
...
...
@@ -120,6 +120,8 @@ field::field(duel* pduel) {
nil_event
.
reason
=
0
;
nil_event
.
reason_effect
=
0
;
nil_event
.
reason_player
=
PLAYER_NONE
;
returns
=
{
0
};
temp_card
=
NULL
;
}
void
field
::
reload_field_info
()
{
pduel
->
write_buffer8
(
MSG_RELOAD_FIELD
);
...
...
libduel.cpp
View file @
e98fd8cc
...
...
@@ -865,11 +865,13 @@ int32 scriptlib::duel_move_sequence(lua_State *L) {
int32
seq
=
(
int32
)
lua_tointeger
(
L
,
2
);
duel
*
pduel
=
pcard
->
pduel
;
int32
playerid
=
pcard
->
current
.
controler
;
pduel
->
game_field
->
move_card
(
playerid
,
pcard
,
pcard
->
current
.
location
,
seq
);
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
->
raise_event
(
pcard
,
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
->
process_instant_event
();
if
(
pcard
->
is_affect_by_effect
(
pduel
->
game_field
->
core
.
reason_effect
))
{
pduel
->
game_field
->
move_card
(
playerid
,
pcard
,
pcard
->
current
.
location
,
seq
);
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
->
raise_event
(
pcard
,
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
->
process_instant_event
();
}
return
0
;
}
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