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
28734ebf
Commit
28734ebf
authored
Feb 13, 2025
by
nanahira
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update EFFECT_ALLOW_SYNCHRO_KOISHI
parent
21516d9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
card.cpp
card.cpp
+21
-8
No files found.
card.cpp
View file @
28734ebf
...
...
@@ -1069,14 +1069,15 @@ uint32_t card::get_link() {
uint32_t
card
::
get_synchro_level
(
card
*
pcard
)
{
if
((
data
.
type
&
(
TYPE_XYZ
|
TYPE_LINK
))
||
(
status
&
STATUS_NO_LEVEL
))
{
uint32_t
lev
;
effect_set
eset
;
filter_effect
(
EFFECT_ALLOW_SYNCHRO_KOISHI
,
&
eset
);
if
(
eset
.
size
())
lev
=
eset
[
0
]
->
get_value
(
pcard
);
else
lev
=
0
;
return
lev
;
for
(
int32_t
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
uint32_t
lev
=
eset
[
i
]
->
get_value
(
pcard
);
if
(
lev
)
{
return
lev
;
}
}
return
0
;
}
//return 0;
uint32_t
lev
;
...
...
@@ -4217,7 +4218,19 @@ int32_t card::is_can_be_fusion_material(card* fcard, uint32_t summon_type) {
}
int32_t
card
::
is_can_be_synchro_material
(
card
*
scard
,
card
*
tuner
)
{
//support urara
if
(
data
.
type
&
(
TYPE_XYZ
|
TYPE_LINK
)
&&
!
is_affected_by_effect
(
EFFECT_ALLOW_SYNCHRO_KOISHI
))
effect_set
eset
;
if
(
data
.
type
&
(
TYPE_XYZ
|
TYPE_LINK
))
{
filter_effect
(
EFFECT_ALLOW_SYNCHRO_KOISHI
,
&
eset
);
auto
found
=
FALSE
;
for
(
int32_t
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
if
(
eset
[
i
]
->
get_value
(
scard
))
{
found
=
TRUE
;
break
;
}
}
if
(
!
found
)
return
FALSE
;
}
return
FALSE
;
if
(
!
(
get_synchro_type
()
&
TYPE_MONSTER
))
return
FALSE
;
...
...
@@ -4228,7 +4241,7 @@ int32_t card::is_can_be_synchro_material(card* scard, card* tuner) {
if
(
is_affected_by_effect
(
EFFECT_SCRAP_CHIMERA
,
tuner
))
return
false
;
}
e
ffect_set
eset
;
e
set
.
clear
()
;
filter_effect
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
,
&
eset
);
for
(
int32_t
i
=
0
;
i
<
eset
.
size
();
++
i
)
if
(
eset
[
i
]
->
get_value
(
scard
))
...
...
nanahira
@nanahira
mentioned in commit
bebba9f0
·
Mar 20, 2025
mentioned in commit
bebba9f0
mentioned in commit bebba9f0785b5bcacba5482bfa6d5c979061338f
Toggle commit list
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