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
048c4e6b
Commit
048c4e6b
authored
Feb 09, 2021
by
mercury233
Committed by
GitHub
Feb 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix RESET_SELF_TURN RESET_OPPO_TURN (#356)
parent
ec916a77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
effect.cpp
effect.cpp
+1
-1
libcard.cpp
libcard.cpp
+1
-0
No files found.
effect.cpp
View file @
048c4e6b
...
...
@@ -580,7 +580,7 @@ int32 effect::reset(uint32 reset_level, uint32 reset_type) {
case
RESET_PHASE
:
{
if
(
!
(
reset_flag
&
RESET_PHASE
))
return
FALSE
;
uint8
pid
=
get_
handl
er_player
();
uint8
pid
=
get_
own
er_player
();
uint8
tp
=
handler
->
pduel
->
game_field
->
infos
.
turn_player
;
if
((((
reset_flag
&
RESET_SELF_TURN
)
&&
pid
==
tp
)
||
((
reset_flag
&
RESET_OPPO_TURN
)
&&
pid
!=
tp
))
&&
(
reset_level
&
0x3ff
&
reset_flag
))
...
...
libcard.cpp
View file @
048c4e6b
...
...
@@ -1745,6 +1745,7 @@ int32 scriptlib::card_register_flag_effect(lua_State *L) {
reset
|=
(
RESET_SELF_TURN
|
RESET_OPPO_TURN
);
duel
*
pduel
=
pcard
->
pduel
;
effect
*
peffect
=
pduel
->
new_effect
();
peffect
->
effect_owner
=
pduel
->
game_field
->
core
.
reason_player
;
peffect
->
owner
=
pcard
;
peffect
->
handler
=
0
;
peffect
->
type
=
EFFECT_TYPE_SINGLE
;
...
...
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