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
2d083d3b
Commit
2d083d3b
authored
Dec 21, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
db4019d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
effect.cpp
effect.cpp
+1
-1
libduel.cpp
libduel.cpp
+1
-1
No files found.
effect.cpp
View file @
2d083d3b
...
@@ -511,7 +511,7 @@ int32 effect::reset(uint32 reset_level, uint32 reset_type) {
...
@@ -511,7 +511,7 @@ int32 effect::reset(uint32 reset_level, uint32 reset_type) {
uint8
pid
=
get_handler_player
();
uint8
pid
=
get_handler_player
();
uint8
tp
=
handler
->
pduel
->
game_field
->
infos
.
turn_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
))
if
((((
reset_flag
&
RESET_SELF_TURN
)
&&
pid
==
tp
)
||
((
reset_flag
&
RESET_OPPO_TURN
)
&&
pid
!=
tp
))
&&
(
reset_level
&
0xff
&
reset_flag
))
&&
(
reset_level
&
0x
3
ff
&
reset_flag
))
reset_count
--
;
reset_count
--
;
if
((
reset_count
&
0xff
)
==
0
)
if
((
reset_count
&
0xff
)
==
0
)
return
TRUE
;
return
TRUE
;
...
...
libduel.cpp
View file @
2d083d3b
...
@@ -1524,7 +1524,7 @@ int32 scriptlib::duel_skip_phase(lua_State *L) {
...
@@ -1524,7 +1524,7 @@ int32 scriptlib::duel_skip_phase(lua_State *L) {
peffect->effect_owner = playerid;
peffect->effect_owner = playerid;
peffect->type = EFFECT_TYPE_FIELD;
peffect->type = EFFECT_TYPE_FIELD;
peffect->code = code;
peffect->code = code;
peffect
->
reset_flag
=
(
reset
&
0xff
)
|
RESET_PHASE
|
RESET_SELF_TURN
;
peffect->reset_flag = (reset & 0x
3
ff) | RESET_PHASE | RESET_SELF_TURN;
peffect->flag[0] = EFFECT_FLAG_CANNOT_DISABLE | EFFECT_FLAG_PLAYER_TARGET;
peffect->flag[0] = EFFECT_FLAG_CANNOT_DISABLE | EFFECT_FLAG_PLAYER_TARGET;
peffect->s_range = 1;
peffect->s_range = 1;
peffect->o_range = 0;
peffect->o_range = 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