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
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
ygopro-core
Commits
ce731760
Commit
ce731760
authored
Jul 14, 2019
by
DailyShana
Committed by
nekrozar
Jul 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Duel.SelectDisableField (#232)
close #231
parent
28d954ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
libduel.cpp
libduel.cpp
+15
-1
No files found.
libduel.cpp
View file @
ce731760
...
@@ -3458,7 +3458,17 @@ int32 scriptlib::duel_select_disable_field(lua_State * L) {
...
@@ -3458,7 +3458,17 @@ int32 scriptlib::duel_select_disable_field(lua_State * L) {
ct4
=
pduel
->
game_field
->
get_useable_count
(
NULL
,
1
-
playerid
,
LOCATION_SZONE
,
PLAYER_NONE
,
0
,
0xff
,
&
plist
);
ct4
=
pduel
->
game_field
->
get_useable_count
(
NULL
,
1
-
playerid
,
LOCATION_SZONE
,
PLAYER_NONE
,
0
,
0xff
,
&
plist
);
flag
=
(
flag
&
0xffffff
)
|
(
plist
<<
24
);
flag
=
(
flag
&
0xffffff
)
|
(
plist
<<
24
);
}
}
flag
|=
filter
|
0xe0e0e0e0
;
if
((
location1
&
LOCATION_MZONE
)
&&
(
location2
&
LOCATION_MZONE
)
&&
pduel
->
game_field
->
core
.
duel_rule
>=
4
)
{
if
(
pduel
->
game_field
->
is_location_useable
(
playerid
,
LOCATION_MZONE
,
5
))
{
flag
&=
~
(
0x1
<<
5
);
ct1
+=
1
;
}
if
(
pduel
->
game_field
->
is_location_useable
(
playerid
,
LOCATION_MZONE
,
6
))
{
flag
&=
~
(
0x1
<<
6
);
ct1
+=
1
;
}
}
flag
|=
filter
|
0xe080e080
;
if
(
count
>
ct1
+
ct2
+
ct3
+
ct4
)
if
(
count
>
ct1
+
ct2
+
ct3
+
ct4
)
count
=
ct1
+
ct2
+
ct3
+
ct4
;
count
=
ct1
+
ct2
+
ct3
+
ct4
;
if
(
count
==
0
)
if
(
count
==
0
)
...
@@ -3477,6 +3487,10 @@ int32 scriptlib::duel_select_disable_field(lua_State * L) {
...
@@ -3477,6 +3487,10 @@ int32 scriptlib::duel_select_disable_field(lua_State * L) {
dfflag
|=
0x1u
<<
(
s
+
(
p
==
playerid
?
0
:
16
)
+
(
l
==
LOCATION_MZONE
?
0
:
8
));
dfflag
|=
0x1u
<<
(
s
+
(
p
==
playerid
?
0
:
16
)
+
(
l
==
LOCATION_MZONE
?
0
:
8
));
pa
+=
3
;
pa
+=
3
;
}
}
if
(
dfflag
&
(
0x1
<<
5
))
dfflag
|=
0x1
<<
(
16
+
6
);
if
(
dfflag
&
(
0x1
<<
6
))
dfflag
|=
0x1
<<
(
16
+
5
);
lua_pushinteger
(
L
,
dfflag
);
lua_pushinteger
(
L
,
dfflag
);
return
1
;
return
1
;
});
});
...
...
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