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
f10091b7
Commit
f10091b7
authored
Jul 02, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-core
parents
e8041df1
fadc016f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
card.cpp
card.cpp
+2
-0
field.cpp
field.cpp
+6
-3
operations.cpp
operations.cpp
+2
-2
No files found.
card.cpp
View file @
f10091b7
...
@@ -3630,6 +3630,8 @@ int32 card::is_capable_be_battle_target(card* pcard) {
...
@@ -3630,6 +3630,8 @@ int32 card::is_capable_be_battle_target(card* pcard) {
int32
card
::
is_capable_be_effect_target
(
effect
*
reason_effect
,
uint8
playerid
)
{
int32
card
::
is_capable_be_effect_target
(
effect
*
reason_effect
,
uint8
playerid
)
{
if
(
is_status
(
STATUS_SUMMONING
)
||
is_status
(
STATUS_BATTLE_DESTROYED
))
if
(
is_status
(
STATUS_SUMMONING
)
||
is_status
(
STATUS_BATTLE_DESTROYED
))
return
FALSE
;
return
FALSE
;
if
(
current
.
location
&
(
LOCATION_DECK
|
LOCATION_EXTRA
|
LOCATION_HAND
))
return
FALSE
;
effect_set
eset
;
effect_set
eset
;
filter_effect
(
EFFECT_CANNOT_BE_EFFECT_TARGET
,
&
eset
);
filter_effect
(
EFFECT_CANNOT_BE_EFFECT_TARGET
,
&
eset
);
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
...
...
field.cpp
View file @
f10091b7
...
@@ -1798,10 +1798,13 @@ int32 field::get_summon_count_limit(uint8 playerid) {
...
@@ -1798,10 +1798,13 @@ int32 field::get_summon_count_limit(uint8 playerid) {
}
}
int32
field
::
get_draw_count
(
uint8
playerid
)
{
int32
field
::
get_draw_count
(
uint8
playerid
)
{
effect_set
eset
;
effect_set
eset
;
filter_player_effect
(
infos
.
turn_player
,
EFFECT_DRAW_COUNT
,
&
eset
);
filter_player_effect
(
playerid
,
EFFECT_DRAW_COUNT
,
&
eset
);
int32
count
=
player
[
playerid
].
draw_count
;
int32
count
=
player
[
playerid
].
draw_count
;
if
(
eset
.
size
())
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
count
=
eset
.
get_last
()
->
get_value
();
int32
c
=
eset
[
i
]
->
get_value
();
if
(
c
>
count
)
count
=
c
;
}
return
count
;
return
count
;
}
}
void
field
::
get_ritual_material
(
uint8
playerid
,
effect
*
peffect
,
card_set
*
material
)
{
void
field
::
get_ritual_material
(
uint8
playerid
,
effect
*
peffect
,
card_set
*
material
)
{
...
...
operations.cpp
View file @
f10091b7
...
@@ -1863,7 +1863,7 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
...
@@ -1863,7 +1863,7 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
if
(
is_player_affected_by_effect
(
sumplayer
,
EFFECT_DEVINE_LIGHT
))
if
(
is_player_affected_by_effect
(
sumplayer
,
EFFECT_DEVINE_LIGHT
))
positions
=
POS_FACEUP
;
positions
=
POS_FACEUP
;
if
(
proc
&&
proc
->
is_flag
(
EFFECT_FLAG_SPSUM_PARAM
))
{
if
(
proc
&&
proc
->
is_flag
(
EFFECT_FLAG_SPSUM_PARAM
))
{
positions
=
(
uint8
)
proc
->
s_range
;
positions
=
(
uint8
)
proc
->
s_range
&
POS_FACEUP
;
if
(
proc
->
o_range
)
if
(
proc
->
o_range
)
targetplayer
=
1
-
sumplayer
;
targetplayer
=
1
-
sumplayer
;
}
}
...
@@ -2342,7 +2342,7 @@ int32 field::mset(uint16 step, uint8 setplayer, card* target, effect* proc, uint
...
@@ -2342,7 +2342,7 @@ int32 field::mset(uint16 step, uint8 setplayer, card* target, effect* proc, uint
uint8
targetplayer
=
setplayer
;
uint8
targetplayer
=
setplayer
;
uint8
positions
=
POS_FACEDOWN_DEFENSE
;
uint8
positions
=
POS_FACEDOWN_DEFENSE
;
if
(
proc
&&
proc
->
is_flag
(
EFFECT_FLAG_SPSUM_PARAM
))
{
if
(
proc
&&
proc
->
is_flag
(
EFFECT_FLAG_SPSUM_PARAM
))
{
positions
=
(
uint8
)
proc
->
s_range
;
positions
=
(
uint8
)
proc
->
s_range
&
POS_FACEDOWN
;
if
(
proc
->
o_range
)
if
(
proc
->
o_range
)
targetplayer
=
1
-
setplayer
;
targetplayer
=
1
-
setplayer
;
}
}
...
...
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