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
nanahira
ygopro-core
Commits
a258dd0d
Commit
a258dd0d
authored
Aug 04, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add EFFECT_SKIP_EP, update EFFECT_SKIP_BP
parent
2504f2bc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
effect.h
effect.h
+1
-0
libduel.cpp
libduel.cpp
+2
-0
processor.cpp
processor.cpp
+10
-2
No files found.
effect.h
View file @
a258dd0d
...
...
@@ -345,6 +345,7 @@ inline effect_flag operator|(effect_flag flag1, effect_flag flag2)
#define EFFECT_CANNOT_M2 186
#define EFFECT_CANNOT_EP 187
#define EFFECT_SKIP_TURN 188
#define EFFECT_SKIP_EP 189
#define EFFECT_DEFENSE_ATTACK 190
#define EFFECT_MUST_ATTACK 191
#define EFFECT_FIRST_ATTACK 192
...
...
libduel.cpp
View file @
a258dd0d
...
...
@@ -1986,6 +1986,8 @@ int32 scriptlib::duel_skip_phase(lua_State *L) {
code
=
EFFECT_SKIP_BP
;
else
if
(
phase
==
PHASE_MAIN2
)
code
=
EFFECT_SKIP_M2
;
else
if
(
phase
==
PHASE_END
)
code
=
EFFECT_SKIP_EP
;
else
return
0
;
effect
*
peffect
=
pduel
->
new_effect
();
...
...
processor.cpp
View file @
a258dd0d
...
...
@@ -1366,7 +1366,9 @@ int32 field::process_phase_event(int16 step, int32 phase) {
case
0
:
{
if
((
phase
==
PHASE_DRAW
&&
is_player_affected_by_effect
(
infos
.
turn_player
,
EFFECT_SKIP_DP
))
||
(
phase
==
PHASE_STANDBY
&&
is_player_affected_by_effect
(
infos
.
turn_player
,
EFFECT_SKIP_SP
))
||
(
phase
==
PHASE_BATTLE_START
&&
is_player_affected_by_effect
(
infos
.
turn_player
,
EFFECT_SKIP_BP
)))
{
||
(
phase
==
PHASE_BATTLE_START
&&
is_player_affected_by_effect
(
infos
.
turn_player
,
EFFECT_SKIP_BP
))
||
(
phase
==
PHASE_BATTLE
&&
is_player_affected_by_effect
(
infos
.
turn_player
,
EFFECT_SKIP_BP
))
||
(
phase
==
PHASE_END
&&
is_player_affected_by_effect
(
infos
.
turn_player
,
EFFECT_SKIP_EP
)))
{
core
.
units
.
begin
()
->
step
=
24
;
return
FALSE
;
}
...
...
@@ -4198,6 +4200,12 @@ int32 field::process_turn(uint16 step, uint8 turn_player) {
//End Phase
infos
.
phase
=
PHASE_END
;
core
.
phase_action
=
FALSE
;
if
(
is_player_affected_by_effect
(
infos
.
turn_player
,
EFFECT_SKIP_EP
))
{
core
.
units
.
begin
()
->
step
=
17
;
reset_phase
(
PHASE_END
);
adjust_all
();
return
FALSE
;
}
pduel
->
write_buffer8
(
MSG_NEW_PHASE
);
pduel
->
write_buffer16
(
infos
.
phase
);
raise_event
((
card
*
)
0
,
EVENT_PHASE_START
+
PHASE_END
,
0
,
0
,
0
,
turn_player
,
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