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
5844a137
Commit
5844a137
authored
May 13, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert
parent
992cd238
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
effect.h
effect.h
+0
-1
interpreter.cpp
interpreter.cpp
+0
-2
processor.cpp
processor.cpp
+3
-3
No files found.
effect.h
View file @
5844a137
...
...
@@ -216,7 +216,6 @@ enum effect_flag2 : uint32 {
EFFECT_FLAG2_COF
=
0x0002
,
EFFECT_FLAG2_SPOSITCH
=
0x0100
,
// flag2 from 0x0100 are koishipro use
EFFECT_FLAG2_AVAILABLE_BD
=
0x0200
,
EFFECT_FLAG2_CONTINUOUS_OPPOTURN
=
0x0400
,
};
inline
effect_flag
operator
|
(
effect_flag
flag1
,
effect_flag
flag2
)
{
...
...
interpreter.cpp
View file @
5844a137
...
...
@@ -81,8 +81,6 @@ interpreter::interpreter(duel* pd): coroutines(256) {
lua_setglobal
(
lua_state
,
"EFFECT_FLAG2_SPOSITCH"
);
lua_pushinteger
(
lua_state
,
EFFECT_FLAG2_AVAILABLE_BD
);
lua_setglobal
(
lua_state
,
"EFFECT_FLAG2_AVAILABLE_BD"
);
lua_pushinteger
(
lua_state
,
EFFECT_FLAG2_CONTINUOUS_OPPOTURN
);
lua_setglobal
(
lua_state
,
"EFFECT_FLAG2_CONTINUOUS_OPPOTURN"
);
//effects
lua_pushinteger
(
lua_state
,
EFFECT_CHANGE_LINK_MARKER_KOISHI
);
lua_setglobal
(
lua_state
,
"EFFECT_CHANGE_LINK_MARKER_KOISHI"
);
...
...
processor.cpp
View file @
5844a137
...
...
@@ -1505,7 +1505,7 @@ int32 field::process_point_event(int16 step, int32 skip_trigger, int32 skip_free
effect
*
peffect
=
eit
->
second
;
++
eit
;
newchain
.
triggering_effect
=
peffect
;
if
(
(
peffect
->
is_flag
(
EFFECT_FLAG2_CONTINUOUS_OPPOTURN
)
||
peffect
->
get_handler_player
()
==
infos
.
turn_player
)
&&
peffect
->
is_activateable
(
check_player
,
nil_event
))
{
if
(
peffect
->
get_handler_player
()
==
check_player
&&
peffect
->
is_activateable
(
check_player
,
nil_event
))
{
core
.
select_chains
.
push_back
(
newchain
);
core
.
spe_effect
[
check_player
]
++
;
}
...
...
@@ -2096,7 +2096,7 @@ int32 field::process_idle_command(uint16 step) {
effect
*
peffect
=
eit
->
second
;
++
eit
;
newchain
.
triggering_effect
=
peffect
;
if
(
(
peffect
->
is_flag
(
EFFECT_FLAG2_CONTINUOUS_OPPOTURN
)
||
peffect
->
get_handler_player
()
==
infos
.
turn_player
)
&&
peffect
->
is_activateable
(
infos
.
turn_player
,
nil_event
))
if
(
peffect
->
get_handler_player
()
==
infos
.
turn_player
&&
peffect
->
is_activateable
(
infos
.
turn_player
,
nil_event
))
core
.
select_chains
.
push_back
(
newchain
);
}
for
(
auto
eit
=
effects
.
ignition_effect
.
begin
();
eit
!=
effects
.
ignition_effect
.
end
();)
{
...
...
@@ -2407,7 +2407,7 @@ int32 field::process_battle_command(uint16 step) {
effect
*
peffect
=
eit
->
second
;
++
eit
;
newchain
.
triggering_effect
=
peffect
;
if
(
(
peffect
->
is_flag
(
EFFECT_FLAG2_CONTINUOUS_OPPOTURN
)
||
peffect
->
get_handler_player
()
==
infos
.
turn_player
)
&&
peffect
->
is_activateable
(
infos
.
turn_player
,
nil_event
))
if
(
peffect
->
get_handler_player
()
==
infos
.
turn_player
&&
peffect
->
is_activateable
(
infos
.
turn_player
,
nil_event
))
core
.
select_chains
.
push_back
(
newchain
);
}
core
.
attackable_cards
.
clear
();
...
...
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