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
82cc1830
Commit
82cc1830
authored
Jan 24, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update RaiseEvent
parent
76f9331c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
libduel.cpp
libduel.cpp
+10
-4
No files found.
libduel.cpp
View file @
82cc1830
...
...
@@ -818,9 +818,12 @@ int32 scriptlib::duel_raise_event(lua_State *L) {
pduel
=
pgroup
->
pduel
;
}
else
return
luaL_error
(
L
,
"Parameter %d should be
\"
Card
\"
or
\"
Group
\"
."
,
1
);
check_param
(
L
,
PARAM_TYPE_EFFECT
,
3
);
uint32
code
=
lua_tointeger
(
L
,
2
);
effect
*
peffect
=
*
(
effect
**
)
lua_touserdata
(
L
,
3
);
effect
*
peffect
=
0
;
if
(
!
lua_isnil
(
L
,
3
))
{
check_param
(
L
,
PARAM_TYPE_EFFECT
,
3
);
peffect
=
*
(
effect
**
)
lua_touserdata
(
L
,
3
);
}
uint32
r
=
lua_tointeger
(
L
,
4
);
uint32
rp
=
lua_tointeger
(
L
,
5
);
uint32
ep
=
lua_tointeger
(
L
,
6
);
...
...
@@ -836,10 +839,13 @@ int32 scriptlib::duel_raise_single_event(lua_State *L) {
check_action_permission
(
L
);
check_param_count
(
L
,
7
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
check_param
(
L
,
PARAM_TYPE_EFFECT
,
3
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
uint32
code
=
lua_tointeger
(
L
,
2
);
effect
*
peffect
=
*
(
effect
**
)
lua_touserdata
(
L
,
3
);
effect
*
peffect
=
0
;
if
(
!
lua_isnil
(
L
,
3
))
{
check_param
(
L
,
PARAM_TYPE_EFFECT
,
3
);
peffect
=
*
(
effect
**
)
lua_touserdata
(
L
,
3
);
}
uint32
r
=
lua_tointeger
(
L
,
4
);
uint32
rp
=
lua_tointeger
(
L
,
5
);
uint32
ep
=
lua_tointeger
(
L
,
6
);
...
...
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