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
f04cccc6
Commit
f04cccc6
authored
Mar 01, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-core
parents
82b74b7c
169d577b
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
38 deletions
+52
-38
field.cpp
field.cpp
+6
-4
operations.cpp
operations.cpp
+3
-2
processor.cpp
processor.cpp
+43
-32
No files found.
field.cpp
View file @
f04cccc6
...
@@ -3381,8 +3381,9 @@ int32 field::get_cteffect(effect* peffect, int32 playerid, int32 store) {
...
@@ -3381,8 +3381,9 @@ int32 field::get_cteffect(effect* peffect, int32 playerid, int32 store) {
continue
;
continue
;
uint32
code
=
efit
.
first
;
uint32
code
=
efit
.
first
;
if
(
code
==
EVENT_FREE_CHAIN
||
code
==
EVENT_PHASE
+
infos
.
phase
)
{
if
(
code
==
EVENT_FREE_CHAIN
||
code
==
EVENT_PHASE
+
infos
.
phase
)
{
nil_event
.
event_code
=
code
;
tevent
test_event
;
if
(
get_cteffect_evt
(
feffect
,
playerid
,
nil_event
,
store
)
&&
!
store
)
test_event
.
event_code
=
code
;
if
(
get_cteffect_evt
(
feffect
,
playerid
,
test_event
,
store
)
&&
!
store
)
return
TRUE
;
return
TRUE
;
}
else
{
}
else
{
for
(
const
auto
&
ev
:
core
.
point_event
)
{
for
(
const
auto
&
ev
:
core
.
point_event
)
{
...
@@ -3431,8 +3432,9 @@ int32 field::check_cteffect_hint(effect* peffect, uint8 playerid) {
...
@@ -3431,8 +3432,9 @@ int32 field::check_cteffect_hint(effect* peffect, uint8 playerid) {
continue
;
continue
;
uint32
code
=
efit
.
first
;
uint32
code
=
efit
.
first
;
if
(
code
==
EVENT_FREE_CHAIN
||
code
==
EVENT_PHASE
+
infos
.
phase
)
{
if
(
code
==
EVENT_FREE_CHAIN
||
code
==
EVENT_PHASE
+
infos
.
phase
)
{
nil_event
.
event_code
=
code
;
tevent
test_event
;
if
(
get_cteffect_evt
(
feffect
,
playerid
,
nil_event
,
FALSE
)
test_event
.
event_code
=
code
;
if
(
get_cteffect_evt
(
feffect
,
playerid
,
test_event
,
FALSE
)
&&
(
code
!=
EVENT_FREE_CHAIN
||
check_hint_timing
(
feffect
)))
&&
(
code
!=
EVENT_FREE_CHAIN
||
check_hint_timing
(
feffect
)))
return
TRUE
;
return
TRUE
;
}
else
{
}
else
{
...
...
operations.cpp
View file @
f04cccc6
...
@@ -5092,8 +5092,9 @@ int32 field::activate_effect(uint16 step, effect* peffect) {
...
@@ -5092,8 +5092,9 @@ int32 field::activate_effect(uint16 step, effect* peffect) {
case
0
:
{
case
0
:
{
card
*
phandler
=
peffect
->
get_handler
();
card
*
phandler
=
peffect
->
get_handler
();
int32
playerid
=
phandler
->
current
.
controler
;
int32
playerid
=
phandler
->
current
.
controler
;
nil_event
.
event_code
=
EVENT_FREE_CHAIN
;
tevent
test_event
;
if
(
!
peffect
->
is_activateable
(
playerid
,
nil_event
))
test_event
.
event_code
=
EVENT_FREE_CHAIN
;
if
(
!
peffect
->
is_activateable
(
playerid
,
test_event
))
return
TRUE
;
return
TRUE
;
chain
newchain
;
chain
newchain
;
newchain
.
flag
=
0
;
newchain
.
flag
=
0
;
...
...
processor.cpp
View file @
f04cccc6
This diff is collapsed.
Click to expand it.
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