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
c658d787
Commit
c658d787
authored
Oct 08, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Effect.IsActivated
parent
0f903247
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
libcard.cpp
libcard.cpp
+1
-1
libduel.cpp
libduel.cpp
+1
-1
No files found.
libcard.cpp
View file @
c658d787
...
@@ -985,7 +985,7 @@ int32 scriptlib::card_register_effect(lua_State *L) {
...
@@ -985,7 +985,7 @@ 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
&
0x7
e
0
)
if
((
peffect
->
type
&
0x7
f
0
)
||
(
pduel
->
game_field
->
core
.
reason_effect
&&
(
pduel
->
game_field
->
core
.
reason_effect
->
status
&
EFFECT_STATUS_ACTIVATED
)))
||
(
pduel
->
game_field
->
core
.
reason_effect
&&
(
pduel
->
game_field
->
core
.
reason_effect
->
status
&
EFFECT_STATUS_ACTIVATED
)))
peffect
->
status
|=
EFFECT_STATUS_ACTIVATED
;
peffect
->
status
|=
EFFECT_STATUS_ACTIVATED
;
int32
id
;
int32
id
;
...
...
libduel.cpp
View file @
c658d787
...
@@ -71,7 +71,7 @@ int32 scriptlib::duel_register_effect(lua_State *L) {
...
@@ -71,7 +71,7 @@ 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
&
0x7
e
0
)
if
((
peffect
->
type
&
0x7
f
0
)
||
(
pduel
->
game_field
->
core
.
reason_effect
&&
(
pduel
->
game_field
->
core
.
reason_effect
->
status
&
EFFECT_STATUS_ACTIVATED
)))
||
(
pduel
->
game_field
->
core
.
reason_effect
&&
(
pduel
->
game_field
->
core
.
reason_effect
->
status
&
EFFECT_STATUS_ACTIVATED
)))
peffect
->
status
|=
EFFECT_STATUS_ACTIVATED
;
peffect
->
status
|=
EFFECT_STATUS_ACTIVATED
;
pduel
->
game_field
->
add_effect
(
peffect
,
playerid
);
pduel
->
game_field
->
add_effect
(
peffect
,
playerid
);
...
...
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