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
bd7d5021
Commit
bd7d5021
authored
Apr 18, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert Card.RegisterEffect()
parent
e53f2c95
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
effect.h
effect.h
+1
-1
libcard.cpp
libcard.cpp
+1
-8
No files found.
effect.h
View file @
bd7d5021
...
@@ -169,7 +169,7 @@ enum effect_flag : uint32 {
...
@@ -169,7 +169,7 @@ enum effect_flag : uint32 {
EFFECT_FLAG_AVAILABLE_BD
=
0x2000000
,
EFFECT_FLAG_AVAILABLE_BD
=
0x2000000
,
EFFECT_FLAG_CLIENT_HINT
=
0x4000000
,
EFFECT_FLAG_CLIENT_HINT
=
0x4000000
,
EFFECT_FLAG_CHAIN_UNIQUE
=
0x8000000
,
EFFECT_FLAG_CHAIN_UNIQUE
=
0x8000000
,
EFFECT_FLAG_PHASE_MULTIPLE
=
0x10000000
,
// EFFECT_FLAG_NAGA
= 0x10000000,
// EFFECT_FLAG_COF = 0x20000000,
// EFFECT_FLAG_COF = 0x20000000,
EFFECT_FLAG_CVAL_CHECK
=
0x40000000
,
EFFECT_FLAG_CVAL_CHECK
=
0x40000000
,
EFFECT_FLAG_IMMEDIATELY_APPLY
=
0x80000000
,
EFFECT_FLAG_IMMEDIATELY_APPLY
=
0x80000000
,
...
...
libcard.cpp
View file @
bd7d5021
...
@@ -981,15 +981,8 @@ int32 scriptlib::card_register_effect(lua_State *L) {
...
@@ -981,15 +981,8 @@ int32 scriptlib::card_register_effect(lua_State *L) {
int32
id
;
int32
id
;
if
(
peffect
->
handler
)
if
(
peffect
->
handler
)
id
=
-
1
;
id
=
-
1
;
else
{
else
if
((
peffect
->
type
&
(
EFFECT_TYPE_TRIGGER_O
|
EFFECT_TYPE_TRIGGER_F
))
&&
!
(
peffect
->
code
&
0x10032000
)
&&
(
peffect
->
code
&
EVENT_PHASE
)
&&
!
peffect
->
is_flag
(
EFFECT_FLAG_COUNT_LIMIT
|
EFFECT_FLAG_PHASE_MULTIPLE
))
{
peffect
->
flag
[
0
]
|=
EFFECT_FLAG_COUNT_LIMIT
;
peffect
->
reset_count
|=
((
1
<<
12
)
&
0xf000
)
|
((
1
<<
8
)
&
0xf00
);
}
id
=
pcard
->
add_effect
(
peffect
);
id
=
pcard
->
add_effect
(
peffect
);
}
lua_pushinteger
(
L
,
id
);
lua_pushinteger
(
L
,
id
);
return
1
;
return
1
;
}
}
...
...
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