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
5a16238f
Commit
5a16238f
authored
Jan 05, 2020
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update EFFECT_FLAG_EVENT_PLAYER
support EFFECT_TYPE_CONTINUOUS
parent
3af65bab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
processor.cpp
processor.cpp
+4
-0
No files found.
processor.cpp
View file @
5a16238f
...
@@ -1783,6 +1783,8 @@ int32 field::process_instant_event() {
...
@@ -1783,6 +1783,8 @@ int32 field::process_instant_event() {
effect
*
peffect
=
eit
->
second
;
effect
*
peffect
=
eit
->
second
;
++
eit
;
++
eit
;
uint8
owner_player
=
peffect
->
get_handler_player
();
uint8
owner_player
=
peffect
->
get_handler_player
();
if
(
peffect
->
is_flag
(
EFFECT_FLAG_EVENT_PLAYER
)
&&
(
ev
.
event_player
==
0
||
ev
.
event_player
==
1
))
owner_player
=
ev
.
event_player
;
if
(
peffect
->
is_activateable
(
owner_player
,
ev
))
{
if
(
peffect
->
is_activateable
(
owner_player
,
ev
))
{
newchain
.
chain_id
=
0
;
newchain
.
chain_id
=
0
;
newchain
.
chain_count
=
0
;
newchain
.
chain_count
=
0
;
...
@@ -1941,6 +1943,8 @@ int32 field::process_single_event(effect* peffect, const tevent& e, chain_list&
...
@@ -1941,6 +1943,8 @@ int32 field::process_single_event(effect* peffect, const tevent& e, chain_list&
//continuous & trigger (single)
//continuous & trigger (single)
if
(
peffect
->
type
&
EFFECT_TYPE_CONTINUOUS
)
{
if
(
peffect
->
type
&
EFFECT_TYPE_CONTINUOUS
)
{
uint8
owner_player
=
peffect
->
get_handler_player
();
uint8
owner_player
=
peffect
->
get_handler_player
();
if
(
peffect
->
is_flag
(
EFFECT_FLAG_EVENT_PLAYER
)
&&
(
e
.
event_player
==
0
||
e
.
event_player
==
1
))
owner_player
=
e
.
event_player
;
if
(
peffect
->
is_activateable
(
owner_player
,
e
))
{
if
(
peffect
->
is_activateable
(
owner_player
,
e
))
{
chain
newchain
;
chain
newchain
;
newchain
.
chain_id
=
0
;
newchain
.
chain_id
=
0
;
...
...
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