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
859dcc52
Commit
859dcc52
authored
Dec 12, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-core
parents
6826fb5d
73b237d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
6 deletions
+21
-6
field.cpp
field.cpp
+5
-5
libduel.cpp
libduel.cpp
+5
-1
operations.cpp
operations.cpp
+11
-0
No files found.
field.cpp
View file @
859dcc52
...
...
@@ -3201,11 +3201,11 @@ int32 field::is_chain_disabled(uint8 chaincount) {
if
(
pchain
->
flag
&
CHAIN_DISABLE_EFFECT
)
return
TRUE
;
card
*
pcard
=
pchain
->
triggering_effect
->
get_handler
();
effect_set
eset
;
pcard
->
filter_effect
(
EFFECT_DISABLE_CHAIN
,
&
eset
);
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
if
(
eset
[
i
]
->
get_value
()
==
pchain
->
chain_id
)
{
eset
[
i
]
->
reset_flag
|=
RESET_CHAIN
;
auto
rg
=
pcard
->
single_effect
.
equal_range
(
EFFECT_DISABLE_CHAIN
)
;
for
(;
rg
.
first
!=
rg
.
second
;
++
rg
.
first
)
{
effect
*
peffect
=
rg
.
first
->
second
;
if
(
peffect
->
get_value
()
==
pchain
->
chain_id
)
{
peffect
->
reset_flag
|=
RESET_CHAIN
;
return
TRUE
;
}
}
...
...
libduel.cpp
View file @
859dcc52
...
...
@@ -448,7 +448,11 @@ int32 scriptlib::duel_sets(lua_State *L) {
}
else
luaL_error
(
L
,
"Parameter %d should be
\"
Card
\"
or
\"
Group
\"
."
,
2
);
pduel
->
game_field
->
add_process
(
PROCESSOR_SSET_G
,
0
,
pduel
->
game_field
->
core
.
reason_effect
,
pgroup
,
playerid
,
toplayer
,
confirm
);
return
lua_yield
(
L
,
0
);
return
lua_yieldk
(
L
,
0
,
(
lua_KContext
)
pduel
,
[](
lua_State
*
L
,
int32
status
,
lua_KContext
ctx
)
{
duel
*
pduel
=
(
duel
*
)
ctx
;
lua_pushinteger
(
L
,
pduel
->
game_field
->
returns
.
ivalue
[
0
]);
return
1
;
});
}
int32
scriptlib
::
duel_create_token
(
lua_State
*
L
)
{
check_action_permission
(
L
);
...
...
operations.cpp
View file @
859dcc52
...
...
@@ -2386,6 +2386,17 @@ int32 field::sset_g(uint16 step, uint8 setplayer, uint8 toplayer, group* ptarget
returns
.
ivalue
[
0
]
=
0
;
return
TRUE
;
}
effect_set
eset
;
for
(
auto
&
pcard
:
*
set_cards
)
{
eset
.
clear
();
pcard
->
filter_effect
(
EFFECT_SSET_COST
,
&
eset
);
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
if
(
eset
[
i
]
->
operation
)
{
core
.
sub_solving_event
.
push_back
(
nil_event
);
add_process
(
PROCESSOR_EXECUTE_OPERATION
,
0
,
eset
[
i
],
0
,
setplayer
,
0
);
}
}
}
core
.
set_group_pre_set
.
clear
();
core
.
set_group_set
.
clear
();
core
.
set_group_used_zones
=
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