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
bae2a48f
Commit
bae2a48f
authored
Oct 08, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/patch-summon' into develop
parents
801f9264
bdba284b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
card.cpp
card.cpp
+2
-2
field.cpp
field.cpp
+6
-6
operations.cpp
operations.cpp
+3
-1
No files found.
card.cpp
View file @
bae2a48f
...
...
@@ -2720,8 +2720,8 @@ void card::filter_disable_related_cards() {
// return value:
// -2 = this has a EFFECT_LIMIT_SUMMON_PROC, 0 available
// -1 = this has a EFFECT_LIMIT_SUMMON_PROC, at least 1 available
// 0 = no EFFECT_LIMIT_SUMMON_PROC, and ordinary summon i
a
not available
// 1 = no EFFECT_LIMIT_SUMMON_PROC, and ordinary summon i
a
available
// 0 = no EFFECT_LIMIT_SUMMON_PROC, and ordinary summon i
s
not available
// 1 = no EFFECT_LIMIT_SUMMON_PROC, and ordinary summon i
s
available
int32
card
::
filter_summon_procedure
(
uint8
playerid
,
effect_set
*
peset
,
uint8
ignore_count
,
uint8
min_tribute
,
uint32
zone
)
{
effect_set
eset
;
filter_effect
(
EFFECT_LIMIT_SUMMON_PROC
,
&
eset
);
...
...
field.cpp
View file @
bae2a48f
...
...
@@ -192,7 +192,7 @@ void field::add_card(uint8 playerid, card* pcard, uint8 location, uint8 sequence
refresh_player_info
(
playerid
);
}
void
field
::
remove_card
(
card
*
pcard
)
{
if
(
pcard
->
current
.
controler
==
PLAYER_NONE
||
pcard
->
current
.
location
==
0
)
if
(
!
check_playerid
(
pcard
->
current
.
controler
)
||
pcard
->
current
.
location
==
0
)
return
;
uint8
playerid
=
pcard
->
current
.
controler
;
switch
(
pcard
->
current
.
location
)
{
...
...
@@ -1394,7 +1394,7 @@ void field::filter_affected_cards(effect* peffect, card_set* cset) {
||
peffect
->
is_flag
(
EFFECT_FLAG_PLAYER_TARGET
|
EFFECT_FLAG_SPSUM_PARAM
))
return
;
uint8
self
=
peffect
->
get_handler_player
();
if
(
self
==
PLAYER_NONE
)
if
(
!
check_playerid
(
self
)
)
return
;
std
::
vector
<
card_vector
*>
cvec
;
uint16
range
=
peffect
->
s_range
;
...
...
@@ -1427,11 +1427,11 @@ void field::filter_inrange_cards(effect* peffect, card_set* cset) {
if
(
peffect
->
is_flag
(
EFFECT_FLAG_PLAYER_TARGET
|
EFFECT_FLAG_SPSUM_PARAM
))
return
;
uint8
self
=
peffect
->
get_handler_player
();
if
(
self
==
PLAYER_NONE
)
if
(
!
check_playerid
(
self
)
)
return
;
uint16
range
=
peffect
->
s_range
;
std
::
vector
<
card_vector
*>
cvec
;
for
(
u
int32
p
=
0
;
p
<
2
;
++
p
)
{
for
(
int32
p
=
0
;
p
<
2
;
++
p
)
{
if
(
range
&
LOCATION_MZONE
)
cvec
.
push_back
(
&
player
[
self
].
list_mzone
);
if
(
range
&
LOCATION_SZONE
)
...
...
@@ -1451,7 +1451,7 @@ void field::filter_inrange_cards(effect* peffect, card_set* cset) {
}
for
(
auto
&
cvit
:
cvec
)
{
for
(
auto
&
pcard
:
*
cvit
)
{
if
(
pcard
&&
peffect
->
is_fit_target_function
(
pcard
))
if
(
pcard
&&
(
!
(
pcard
->
current
.
location
&
LOCATION_ONFIELD
)
||
!
pcard
->
is_treated_as_not_on_field
())
&&
peffect
->
is_fit_target_function
(
pcard
))
cset
->
insert
(
pcard
);
}
}
...
...
@@ -2167,7 +2167,7 @@ void field::add_unique_card(card* pcard) {
}
void
field
::
remove_unique_card
(
card
*
pcard
)
{
uint8
con
=
pcard
->
current
.
controler
;
if
(
con
==
PLAYER_NONE
)
if
(
!
check_playerid
(
con
)
)
return
;
if
(
pcard
->
unique_pos
[
0
])
core
.
unique_cards
[
con
].
erase
(
pcard
);
...
...
operations.cpp
View file @
bae2a48f
...
...
@@ -1489,13 +1489,15 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
core
.
select_effects
.
clear
();
core
.
select_options
.
clear
();
if
(
res
>
0
)
{
core
.
select_effects
.
push_back
(
0
);
core
.
select_effects
.
push_back
(
nullptr
);
core
.
select_options
.
push_back
(
1
);
}
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
core
.
select_effects
.
push_back
(
eset
[
i
]);
core
.
select_options
.
push_back
(
eset
[
i
]
->
description
);
}
if
(
core
.
select_options
.
empty
())
return
TRUE
;
if
(
core
.
select_options
.
size
()
==
1
)
returns
.
ivalue
[
0
]
=
0
;
else
...
...
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