Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
3b16a5a7
Commit
3b16a5a7
authored
Feb 25, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a2076282
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
10 deletions
+23
-10
ocgcore/field.cpp
ocgcore/field.cpp
+2
-1
ocgcore/libduel.cpp
ocgcore/libduel.cpp
+2
-1
ocgcore/operations.cpp
ocgcore/operations.cpp
+10
-0
ocgcore/processor.cpp
ocgcore/processor.cpp
+9
-8
No files found.
ocgcore/field.cpp
View file @
3b16a5a7
...
...
@@ -810,8 +810,9 @@ void field::reset_chain() {
void
field
::
filter_field_effect
(
uint32
code
,
effect_set
*
eset
,
uint8
sort
)
{
effect
*
peffect
;
auto
rg
=
effects
.
aura_effect
.
equal_range
(
code
);
for
(;
rg
.
first
!=
rg
.
second
;
++
rg
.
first
)
{
for
(;
rg
.
first
!=
rg
.
second
;
)
{
peffect
=
rg
.
first
->
second
;
++
rg
.
first
;
if
(
peffect
->
is_available
())
eset
->
add_item
(
peffect
);
}
...
...
ocgcore/libduel.cpp
View file @
3b16a5a7
...
...
@@ -2341,6 +2341,7 @@ int32 scriptlib::duel_overlay(lua_State *L) {
target
->
xyz_overlay
(
&
cset
);
}
else
target
->
xyz_overlay
(
&
pgroup
->
container
);
if
(
target
->
current
.
location
==
LOCATION_MZONE
)
target
->
pduel
->
game_field
->
adjust_all
();
return
lua_yield
(
L
,
0
);
}
...
...
ocgcore/operations.cpp
View file @
3b16a5a7
...
...
@@ -964,6 +964,14 @@ int32 field::control_adjust(uint16 step) {
return
FALSE
;
}
case
2
:
{
for
(
auto
cit
=
core
.
control_adjust_set
[
0
].
begin
();
cit
!=
core
.
control_adjust_set
[
0
].
end
();
++
cit
)
{
if
((
*
cit
)
->
unique_code
)
remove_unique_card
(
*
cit
);
}
for
(
auto
cit
=
core
.
control_adjust_set
[
1
].
begin
();
cit
!=
core
.
control_adjust_set
[
1
].
end
();
++
cit
)
{
if
((
*
cit
)
->
unique_code
)
remove_unique_card
(
*
cit
);
}
auto
cit1
=
core
.
control_adjust_set
[
0
].
begin
();
auto
cit2
=
core
.
control_adjust_set
[
1
].
begin
();
while
(
cit1
!=
core
.
control_adjust_set
[
0
].
end
()
&&
cit2
!=
core
.
control_adjust_set
[
1
].
end
())
{
...
...
@@ -1009,6 +1017,8 @@ int32 field::control_adjust(uint16 step) {
core
.
control_adjust_set
[
0
].
insert
(
core
.
control_adjust_set
[
1
].
begin
(),
core
.
control_adjust_set
[
1
].
end
());
for
(
auto
cit
=
core
.
control_adjust_set
[
0
].
begin
();
cit
!=
core
.
control_adjust_set
[
0
].
end
();
++
cit
)
{
(
*
cit
)
->
filter_disable_related_cards
();
if
((
*
cit
)
->
unique_code
)
add_unique_card
(
*
cit
);
raise_single_event
((
*
cit
),
0
,
EVENT_CONTROL_CHANGED
,
0
,
REASON_RULE
,
0
,
0
,
0
);
}
raise_event
(
&
core
.
control_adjust_set
[
0
],
EVENT_CONTROL_CHANGED
,
0
,
0
,
0
,
0
,
0
);
...
...
ocgcore/processor.cpp
View file @
3b16a5a7
...
...
@@ -1937,18 +1937,19 @@ int32 field::process_quick_effect(int16 step, int32 special, uint8 priority) {
bool
act
=
true
;
for
(
auto
ifit
=
core
.
quick_f_chain
.
begin
();
ifit
!=
core
.
quick_f_chain
.
end
();
++
ifit
)
{
peffect
=
ifit
->
first
;
if
(
peffect
->
is_chainable
(
ifit
->
second
.
triggering_player
)
&&
peffect
->
handler
->
is_has_relation
(
peffect
))
{
if
(
ifit
->
second
.
triggering_player
==
infos
.
turn_player
){
act
=
true
;
if
(
peffect
->
flag
&
EFFECT_FLAG_CHAIN_UNIQUE
)
{
for
(
auto
cait
=
core
.
ntpchain
.
begin
();
cait
!=
core
.
n
tpchain
.
end
();
++
cait
)
{
for
(
auto
cait
=
core
.
tpchain
.
begin
();
cait
!=
core
.
tpchain
.
end
();
++
cait
)
{
if
(
cait
->
triggering_effect
->
handler
->
data
.
code
==
peffect
->
handler
->
data
.
code
)
{
act
=
false
;
break
;
}
}
for
(
auto
cait
=
core
.
current_chain
.
begin
();
cait
!=
core
.
current_chain
.
end
();
++
cait
)
{
if
((
cait
->
triggering_effect
->
handler
->
data
.
code
==
peffect
->
handler
->
data
.
code
)
&&
(
cait
->
triggering_effect
->
get_owner_player
()
==
infos
.
turn_player
))
{
if
((
cait
->
triggering_effect
->
handler
->
data
.
code
==
peffect
->
handler
->
data
.
code
)
&&
(
cait
->
triggering_player
==
infos
.
turn_player
))
{
act
=
false
;
break
;
}
...
...
@@ -1958,8 +1959,7 @@ int32 field::process_quick_effect(int16 step, int32 special, uint8 priority) {
core
.
tpchain
.
push_back
(
ifit
->
second
);
peffect
->
handler
->
set_status
(
STATUS_CHAINING
,
TRUE
);
}
}
else
{
}
else
{
act
=
true
;
if
(
peffect
->
flag
&
EFFECT_FLAG_CHAIN_UNIQUE
)
{
for
(
auto
cait
=
core
.
ntpchain
.
begin
();
cait
!=
core
.
ntpchain
.
end
();
++
cait
)
{
...
...
@@ -1969,8 +1969,8 @@ int32 field::process_quick_effect(int16 step, int32 special, uint8 priority) {
}
}
for
(
auto
cait
=
core
.
current_chain
.
begin
();
cait
!=
core
.
current_chain
.
end
();
++
cait
)
{
if
((
cait
->
triggering_effect
->
handler
->
data
.
code
==
peffect
->
handler
->
data
.
code
)
&&
(
cait
->
triggering_effect
->
get_owner_player
()
!=
infos
.
turn_player
))
{
if
((
cait
->
triggering_effect
->
handler
->
data
.
code
==
peffect
->
handler
->
data
.
code
)
&&
(
cait
->
triggering_player
!=
infos
.
turn_player
))
{
act
=
false
;
break
;
}
...
...
@@ -1982,6 +1982,7 @@ int32 field::process_quick_effect(int16 step, int32 special, uint8 priority) {
}
}
}
}
core
.
quick_f_chain
.
clear
();
if
(
core
.
tpchain
.
size
()
>
1
)
add_process
(
PROCESSOR_SORT_CHAIN
,
0
,
0
,
0
,
1
,
infos
.
turn_player
);
...
...
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