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
1d378cf9
Commit
1d378cf9
authored
Mar 29, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable extra monster zone
parent
ea67cf7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
field.cpp
field.cpp
+2
-2
processor.cpp
processor.cpp
+13
-9
No files found.
field.cpp
View file @
1d378cf9
...
...
@@ -541,9 +541,9 @@ int32 field::get_useable_count_fromex(uint8 playerid, uint8 uplayer, uint32 zone
if
(
player
[
playerid
].
list_mzone
[
5
]
||
player
[
playerid
].
list_mzone
[
6
]
||
!
(
zone
&
((
1u
<<
5
)
|
(
1u
<<
6
))))
{
flag
|=
(
1u
<<
5
)
|
(
1u
<<
6
);
maxcount
=
5
;
}
else
if
(
player
[
1
-
playerid
].
list_mzone
[
5
]
||
!
(
zone
&
(
1u
<<
6
)))
}
else
if
(
player
[
1
-
playerid
].
list_mzone
[
5
]
||
!
is_location_useable
(
playerid
,
LOCATION_MZONE
,
6
)
||
!
(
zone
&
(
1u
<<
6
)))
flag
|=
1u
<<
6
;
else
if
(
player
[
1
-
playerid
].
list_mzone
[
6
]
||
!
(
zone
&
(
1u
<<
5
)))
else
if
(
player
[
1
-
playerid
].
list_mzone
[
6
]
||
!
is_location_useable
(
playerid
,
LOCATION_MZONE
,
5
)
||
!
(
zone
&
(
1u
<<
5
)))
flag
|=
1u
<<
5
;
if
(
list
)
*
list
=
flag
;
...
...
processor.cpp
View file @
1d378cf9
...
...
@@ -4832,8 +4832,8 @@ void field::refresh_location_info_instant() {
filter_field_effect
(
EFFECT_DISABLE_FIELD
,
&
eset
);
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
value
=
eset
[
i
]
->
get_value
();
player
[
0
].
disabled_location
|=
value
&
0x1f
1
f
;
player
[
1
].
disabled_location
|=
(
value
>>
16
)
&
0x1f
1
f
;
player
[
0
].
disabled_location
|=
value
&
0x1f
7
f
;
player
[
1
].
disabled_location
|=
(
value
>>
16
)
&
0x1f
7
f
;
}
eset
.
clear
();
filter_field_effect
(
EFFECT_USE_EXTRA_MZONE
,
&
eset
);
...
...
@@ -4849,6 +4849,8 @@ void field::refresh_location_info_instant() {
value
=
eset
[
i
]
->
get_value
();
player
[
p
].
disabled_location
|=
(
value
>>
8
)
&
0x1f00
;
}
player
[
0
].
disabled_location
|=
((
player
[
1
].
disabled_location
>>
5
)
<<
6
)
|
((
player
[
1
].
disabled_location
>>
6
)
<<
5
);
player
[
1
].
disabled_location
|=
((
player
[
0
].
disabled_location
>>
5
)
<<
6
)
|
((
player
[
0
].
disabled_location
>>
6
)
<<
5
);
uint32
dis2
=
player
[
0
].
disabled_location
|
(
player
[
1
].
disabled_location
<<
16
);
if
(
dis1
!=
dis2
)
{
pduel
->
write_buffer8
(
MSG_FIELD_DISABLED
);
...
...
@@ -4877,8 +4879,8 @@ int32 field::refresh_location_info(uint16 step) {
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
value
=
eset
[
i
]
->
get_value
();
if
(
value
)
{
player
[
0
].
disabled_location
|=
value
&
0x1f
1
f
;
player
[
1
].
disabled_location
|=
(
value
>>
16
)
&
0x1f
1
f
;
player
[
0
].
disabled_location
|=
value
&
0x1f
7
f
;
player
[
1
].
disabled_location
|=
(
value
>>
16
)
&
0x1f
7
f
;
}
else
core
.
disfield_effects
.
add_item
(
eset
[
i
]);
}
...
...
@@ -4920,17 +4922,17 @@ int32 field::refresh_location_info(uint16 step) {
return
FALSE
;
}
case
2
:
{
returns
.
ivalue
[
0
]
&=
0x1f
1f1f1
f
;
returns
.
ivalue
[
0
]
&=
0x1f
7f1f7
f
;
if
(
returns
.
ivalue
[
0
]
==
0
)
returns
.
ivalue
[
0
]
=
0x80
;
if
(
core
.
units
.
begin
()
->
peffect
->
get_handler_player
()
==
0
)
{
core
.
units
.
begin
()
->
peffect
->
value
=
returns
.
ivalue
[
0
];
player
[
0
].
disabled_location
|=
returns
.
ivalue
[
0
]
&
0x1f
1
f
;
player
[
1
].
disabled_location
|=
(
returns
.
ivalue
[
0
]
>>
16
)
&
0x1f
1
f
;
player
[
0
].
disabled_location
|=
returns
.
ivalue
[
0
]
&
0x1f
7
f
;
player
[
1
].
disabled_location
|=
(
returns
.
ivalue
[
0
]
>>
16
)
&
0x1f
7
f
;
}
else
{
core
.
units
.
begin
()
->
peffect
->
value
=
((
returns
.
ivalue
[
0
]
<<
16
)
|
(
returns
.
ivalue
[
0
]
>>
16
));
player
[
1
].
disabled_location
|=
returns
.
ivalue
[
0
]
&
0x1f
1
f
;
player
[
0
].
disabled_location
|=
(
returns
.
ivalue
[
0
]
>>
16
)
&
0x1f
1
f
;
player
[
1
].
disabled_location
|=
returns
.
ivalue
[
0
]
&
0x1f
7
f
;
player
[
0
].
disabled_location
|=
(
returns
.
ivalue
[
0
]
>>
16
)
&
0x1f
7
f
;
}
core
.
units
.
begin
()
->
step
=
0
;
return
FALSE
;
...
...
@@ -5016,6 +5018,8 @@ int32 field::refresh_location_info(uint16 step) {
return
FALSE
;
}
case
7
:
{
player
[
0
].
disabled_location
|=
((
player
[
1
].
disabled_location
>>
5
)
<<
6
)
|
((
player
[
1
].
disabled_location
>>
6
)
<<
5
);
player
[
1
].
disabled_location
|=
((
player
[
0
].
disabled_location
>>
5
)
<<
6
)
|
((
player
[
0
].
disabled_location
>>
6
)
<<
5
);
uint32
dis
=
player
[
0
].
disabled_location
|
(
player
[
1
].
disabled_location
<<
16
);
if
(
dis
!=
(
uint32
)
core
.
units
.
begin
()
->
arg2
)
{
pduel
->
write_buffer8
(
MSG_FIELD_DISABLED
);
...
...
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