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
75ba9362
Commit
75ba9362
authored
Mar 16, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Card.RegisterEffect()
parent
051aa8b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
effect.h
effect.h
+1
-0
libcard.cpp
libcard.cpp
+6
-1
No files found.
effect.h
View file @
75ba9362
...
...
@@ -462,5 +462,6 @@ inline effect_flag operator|(effect_flag flag1, effect_flag flag2)
#define EVENT_PHASE_START 0x2000
#define EVENT_ADD_COUNTER 0x10000
#define EVENT_REMOVE_COUNTER 0x20000
#define EVENT_CARD 0x10000000
#endif
/* EFFECT_H_ */
libcard.cpp
View file @
75ba9362
...
...
@@ -981,8 +981,13 @@ int32 scriptlib::card_register_effect(lua_State *L) {
int32
id
;
if
(
peffect
->
handler
)
id
=
-
1
;
else
else
{
if
((
peffect
->
type
&
(
EFFECT_TYPE_TRIGGER_O
|
EFFECT_TYPE_TRIGGER_F
))
&&
!
(
peffect
->
code
&
EVENT_CARD
)
&&
(
peffect
->
code
&
EVENT_PHASE
))
{
peffect
->
flag
[
0
]
|=
EFFECT_FLAG_COUNT_LIMIT
;
peffect
->
reset_count
|=
((
1
<<
12
)
&
0xf000
)
|
((
1
<<
8
)
&
0xf00
);
}
id
=
pcard
->
add_effect
(
peffect
);
}
lua_pushinteger
(
L
,
id
);
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