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
1f1d9cba
Commit
1f1d9cba
authored
Oct 16, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean
parent
7e25037d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
7 deletions
+1
-7
effect.h
effect.h
+1
-1
libcard.cpp
libcard.cpp
+0
-3
libduel.cpp
libduel.cpp
+0
-3
No files found.
effect.h
View file @
1f1d9cba
...
@@ -108,7 +108,7 @@ public:
...
@@ -108,7 +108,7 @@ public:
//status
//status
#define EFFECT_STATUS_AVAILABLE 0x0001
#define EFFECT_STATUS_AVAILABLE 0x0001
#define EFFECT_STATUS_ACTIVATED 0x0002
//
#define EFFECT_STATUS_ACTIVATED 0x0002
#define EFFECT_COUNT_CODE_OATH 0x10000000
#define EFFECT_COUNT_CODE_OATH 0x10000000
#define EFFECT_COUNT_CODE_DUEL 0x20000000
#define EFFECT_COUNT_CODE_DUEL 0x20000000
...
...
libcard.cpp
View file @
1f1d9cba
...
@@ -1351,9 +1351,6 @@ int32 scriptlib::card_register_effect(lua_State *L) {
...
@@ -1351,9 +1351,6 @@ int32 scriptlib::card_register_effect(lua_State *L) {
pduel
->
game_field
->
core
.
reseted_effects
.
insert
(
peffect
);
pduel
->
game_field
->
core
.
reseted_effects
.
insert
(
peffect
);
return
0
;
return
0
;
}
}
if
((
peffect
->
type
&
0x7f0
)
||
(
pduel
->
game_field
->
core
.
reason_effect
&&
(
pduel
->
game_field
->
core
.
reason_effect
->
status
&
EFFECT_STATUS_ACTIVATED
)))
peffect
->
status
|=
EFFECT_STATUS_ACTIVATED
;
int32
id
;
int32
id
;
if
(
peffect
->
handler
)
if
(
peffect
->
handler
)
id
=
-
1
;
id
=
-
1
;
...
...
libduel.cpp
View file @
1f1d9cba
...
@@ -77,9 +77,6 @@ int32 scriptlib::duel_register_effect(lua_State *L) {
...
@@ -77,9 +77,6 @@ int32 scriptlib::duel_register_effect(lua_State *L) {
if
(
playerid
!=
0
&&
playerid
!=
1
)
if
(
playerid
!=
0
&&
playerid
!=
1
)
return
0
;
return
0
;
duel
*
pduel
=
peffect
->
pduel
;
duel
*
pduel
=
peffect
->
pduel
;
if
((
peffect
->
type
&
0x7f0
)
||
(
pduel
->
game_field
->
core
.
reason_effect
&&
(
pduel
->
game_field
->
core
.
reason_effect
->
status
&
EFFECT_STATUS_ACTIVATED
)))
peffect
->
status
|=
EFFECT_STATUS_ACTIVATED
;
pduel
->
game_field
->
add_effect
(
peffect
,
playerid
);
pduel
->
game_field
->
add_effect
(
peffect
,
playerid
);
return
0
;
return
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