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
72da9d3a
Commit
72da9d3a
authored
Sep 16, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a zone param to Duel.MoveToField
parent
a6d1bf9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
libduel.cpp
libduel.cpp
+4
-1
No files found.
libduel.cpp
View file @
72da9d3a
...
...
@@ -681,10 +681,13 @@ int32 scriptlib::duel_move_to_field(lua_State *L) {
uint32
destination
=
lua_tointeger
(
L
,
4
);
uint32
positions
=
lua_tointeger
(
L
,
5
);
uint32
enable
=
lua_toboolean
(
L
,
6
);
uint32
zone
=
0xff
;
if
(
lua_gettop
(
L
)
>
6
)
zone
=
lua_tointeger
(
L
,
7
);
duel
*
pduel
=
pcard
->
pduel
;
pcard
->
enable_field_effect
(
false
);
pduel
->
game_field
->
adjust_instant
();
pduel
->
game_field
->
move_to_field
(
pcard
,
move_player
,
playerid
,
destination
,
positions
,
enable
);
pduel
->
game_field
->
move_to_field
(
pcard
,
move_player
,
playerid
,
destination
,
positions
,
enable
,
0
,
FALSE
,
zone
);
pduel
->
game_field
->
core
.
subunits
.
back
().
type
=
PROCESSOR_MOVETOFIELD_S
;
return
lua_yield
(
L
,
0
);
}
...
...
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