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
xiaoye
ygopro-core
Commits
f9cd0df0
Commit
f9cd0df0
authored
Oct 25, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Fluorohydride/ygopro-core
parents
18ab49fe
6efb1560
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
card.cpp
card.cpp
+1
-1
field.cpp
field.cpp
+2
-1
No files found.
card.cpp
View file @
f9cd0df0
...
@@ -3766,7 +3766,7 @@ int32 card::is_capable_cost_to_grave(uint8 playerid) {
...
@@ -3766,7 +3766,7 @@ int32 card::is_capable_cost_to_grave(uint8 playerid) {
uint32
dest
=
LOCATION_GRAVE
;
uint32
dest
=
LOCATION_GRAVE
;
if
(
data
.
type
&
TYPE_TOKEN
)
if
(
data
.
type
&
TYPE_TOKEN
)
return
FALSE
;
return
FALSE
;
if
((
data
.
type
&
TYPE_PENDULUM
)
&&
(
current
.
location
&
LOCATION_ONFIELD
)
&&
!
is_affected_by_effect
(
EFFECT_CANNOT_TO_DECK
))
if
((
data
.
type
&
TYPE_PENDULUM
)
&&
(
current
.
location
&
LOCATION_ONFIELD
)
&&
is_capable_send_to_extra
(
playerid
))
return
FALSE
;
return
FALSE
;
if
(
current
.
location
==
LOCATION_GRAVE
)
if
(
current
.
location
==
LOCATION_GRAVE
)
return
FALSE
;
return
FALSE
;
...
...
field.cpp
View file @
f9cd0df0
...
@@ -843,7 +843,8 @@ uint32 field::get_linked_zone(int32 playerid) {
...
@@ -843,7 +843,8 @@ uint32 field::get_linked_zone(int32 playerid) {
}
}
uint32
field
::
get_rule_zone_fromex
(
int32
playerid
,
card
*
pcard
)
{
uint32
field
::
get_rule_zone_fromex
(
int32
playerid
,
card
*
pcard
)
{
if
(
core
.
duel_rule
>=
4
)
{
if
(
core
.
duel_rule
>=
4
)
{
if
(
core
.
duel_rule
>=
5
&&
pcard
&&
pcard
->
is_position
(
POS_FACEDOWN
)
&&
(
pcard
->
data
.
type
&
(
TYPE_FUSION
|
TYPE_SYNCHRO
|
TYPE_XYZ
)))
if
(
core
.
duel_rule
>=
5
&&
pcard
&&
(
pcard
->
data
.
type
&
(
TYPE_FUSION
|
TYPE_SYNCHRO
|
TYPE_XYZ
))
&&
(
pcard
->
is_position
(
POS_FACEDOWN
)
||
!
(
pcard
->
data
.
type
&
TYPE_PENDULUM
)))
return
0x7f
;
return
0x7f
;
if
(
is_player_affected_by_effect
(
playerid
,
EFFECT_EXTRA_TOMAIN_KOISHI
)
||
pcard
&&
pcard
->
is_affected_by_effect
(
EFFECT_EXTRA_TOMAIN_KOISHI
))
if
(
is_player_affected_by_effect
(
playerid
,
EFFECT_EXTRA_TOMAIN_KOISHI
)
||
pcard
&&
pcard
->
is_affected_by_effect
(
EFFECT_EXTRA_TOMAIN_KOISHI
))
return
0x7f
;
return
0x7f
;
...
...
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