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
5ad51909
Commit
5ad51909
authored
Mar 08, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Fluorohydride/ygopro-core
parents
5d11f91d
889a3bd9
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
39 deletions
+53
-39
effect.h
effect.h
+1
-1
field.cpp
field.cpp
+6
-4
operations.cpp
operations.cpp
+3
-2
processor.cpp
processor.cpp
+43
-32
No files found.
effect.h
View file @
5ad51909
...
...
@@ -218,7 +218,7 @@ enum effect_flag : uint32 {
EFFECT_FLAG_IMMEDIATELY_APPLY
=
0x80000000
,
};
enum
effect_flag2
:
uint32
{
EFFECT_FLAG2_MILLENNIUM_RESTRICT
=
0x0001
,
//
EFFECT_FLAG2_MILLENNIUM_RESTRICT = 0x0001,
EFFECT_FLAG2_COF
=
0x0002
,
EFFECT_FLAG2_WICKED
=
0x0004
,
EFFECT_FLAG2_OPTION
=
0x0008
,
...
...
field.cpp
View file @
5ad51909
...
...
@@ -3433,8 +3433,9 @@ int32 field::get_cteffect(effect* peffect, int32 playerid, int32 store) {
continue
;
uint32
code
=
efit
.
first
;
if
(
code
==
EVENT_FREE_CHAIN
||
code
==
EVENT_PHASE
+
infos
.
phase
)
{
nil_event
.
event_code
=
code
;
if
(
get_cteffect_evt
(
feffect
,
playerid
,
nil_event
,
store
)
&&
!
store
)
tevent
test_event
;
test_event
.
event_code
=
code
;
if
(
get_cteffect_evt
(
feffect
,
playerid
,
test_event
,
store
)
&&
!
store
)
return
TRUE
;
}
else
{
for
(
const
auto
&
ev
:
core
.
point_event
)
{
...
...
@@ -3483,8 +3484,9 @@ int32 field::check_cteffect_hint(effect* peffect, uint8 playerid) {
continue
;
uint32
code
=
efit
.
first
;
if
(
code
==
EVENT_FREE_CHAIN
||
code
==
EVENT_PHASE
+
infos
.
phase
)
{
nil_event
.
event_code
=
code
;
if
(
get_cteffect_evt
(
feffect
,
playerid
,
nil_event
,
FALSE
)
tevent
test_event
;
test_event
.
event_code
=
code
;
if
(
get_cteffect_evt
(
feffect
,
playerid
,
test_event
,
FALSE
)
&&
(
code
!=
EVENT_FREE_CHAIN
||
check_hint_timing
(
feffect
)))
return
TRUE
;
}
else
{
...
...
operations.cpp
View file @
5ad51909
...
...
@@ -5148,8 +5148,9 @@ int32 field::activate_effect(uint16 step, effect* peffect) {
case
0
:
{
card
*
phandler
=
peffect
->
get_handler
();
int32
playerid
=
phandler
->
current
.
controler
;
nil_event
.
event_code
=
EVENT_FREE_CHAIN
;
if
(
!
peffect
->
is_activateable
(
playerid
,
nil_event
))
tevent
test_event
;
test_event
.
event_code
=
EVENT_FREE_CHAIN
;
if
(
!
peffect
->
is_activateable
(
playerid
,
test_event
))
return
TRUE
;
chain
newchain
;
newchain
.
flag
=
0
;
...
...
processor.cpp
View file @
5ad51909
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