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
dc2a6c41
Commit
dc2a6c41
authored
Feb 14, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add everything for EFFECT_ALLOW_FOR_RITUAL as well
parent
231f1c45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
field.cpp
field.cpp
+5
-5
No files found.
field.cpp
View file @
dc2a6c41
...
...
@@ -1842,18 +1842,18 @@ void field::get_ritual_material(uint8_t playerid, effect* peffect, card_set* mat
for
(
auto
&
pcard
:
player
[
playerid
].
list_mzone
)
{
if
(
pcard
&&
pcard
->
is_affect_by_effect
(
peffect
)
&&
pcard
->
is_releasable_by_nonsummon
(
playerid
,
REASON_EFFECT
)
&&
pcard
->
is_releasable_by_effect
(
playerid
,
peffect
)
&&
(
no_level
||
pcard
->
get_level
()
>
0
))
&&
(
no_level
||
pcard
->
get_level
()
>
0
||
pcard
->
is_affected_by_effect
(
EFFECT_ALLOW_FOR_RITUAL
)
))
material
->
insert
(
pcard
);
if
(
pcard
&&
pcard
->
is_affected_by_effect
(
EFFECT_OVERLAY_RITUAL_MATERIAL
))
for
(
auto
&
mcard
:
pcard
->
xyz_materials
)
if
(
no_level
||
mcard
->
get_level
()
>
0
)
if
(
no_level
||
mcard
->
get_level
()
>
0
||
pcard
->
is_affected_by_effect
(
EFFECT_ALLOW_FOR_RITUAL
)
)
material
->
insert
(
mcard
);
}
for
(
auto
&
pcard
:
player
[
1
-
playerid
].
list_mzone
)
{
if
(
pcard
&&
pcard
->
is_affect_by_effect
(
peffect
)
&&
pcard
->
is_affected_by_effect
(
EFFECT_EXTRA_RELEASE
)
&&
pcard
->
is_position
(
POS_FACEUP
)
&&
pcard
->
is_releasable_by_nonsummon
(
playerid
,
REASON_EFFECT
)
&&
pcard
->
is_releasable_by_effect
(
playerid
,
peffect
)
&&
(
no_level
||
pcard
->
get_level
()
>
0
))
&&
(
no_level
||
pcard
->
get_level
()
>
0
||
pcard
->
is_affected_by_effect
(
EFFECT_ALLOW_FOR_RITUAL
)
))
material
->
insert
(
pcard
);
}
for
(
auto
&
pcard
:
player
[
playerid
].
list_hand
)
...
...
@@ -1862,11 +1862,11 @@ void field::get_ritual_material(uint8_t playerid, effect* peffect, card_set* mat
for
(
auto
&
pcard
:
player
[
playerid
].
list_grave
)
if
((
pcard
->
data
.
type
&
TYPE_MONSTER
)
&&
pcard
->
is_affected_by_effect
(
EFFECT_EXTRA_RITUAL_MATERIAL
)
&&
pcard
->
is_removeable
(
playerid
,
POS_FACEUP
,
REASON_EFFECT
)
&&
(
no_level
||
pcard
->
get_level
()
>
0
))
&&
(
no_level
||
pcard
->
get_level
()
>
0
||
pcard
->
is_affected_by_effect
(
EFFECT_ALLOW_FOR_RITUAL
)
))
material
->
insert
(
pcard
);
for
(
auto
&
pcard
:
player
[
playerid
].
list_extra
)
if
(
pcard
->
is_affected_by_effect
(
EFFECT_EXTRA_RITUAL_MATERIAL
)
&&
(
no_level
||
pcard
->
get_level
()
>
0
))
&&
(
no_level
||
pcard
->
get_level
()
>
0
||
pcard
->
is_affected_by_effect
(
EFFECT_ALLOW_FOR_RITUAL
)
))
material
->
insert
(
pcard
);
}
void
field
::
get_fusion_material
(
uint8_t
playerid
,
card_set
*
material_all
,
card_set
*
material_base
,
uint32_t
location
)
{
...
...
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