Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
a678477e
Commit
a678477e
authored
Apr 21, 2014
by
sidschingis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update libcard.cpp
parent
fa3a227c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ocgcore/libcard.cpp
ocgcore/libcard.cpp
+4
-1
No files found.
ocgcore/libcard.cpp
View file @
a678477e
...
...
@@ -1617,7 +1617,10 @@ int32 scriptlib::card_add_counter(lua_State *L) {
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
uint32
countertype
=
lua_tointeger
(
L
,
2
);
uint32
count
=
lua_tointeger
(
L
,
3
);
if
(
pcard
->
is_affect_by_effect
(
pcard
->
pduel
->
game_field
->
core
.
reason_effect
))
field
*
game_field
=
pcard
->
pduel
->
game_field
;
uint8
player
=
game_field
->
core
.
reason_player
;
if
(
pcard
->
is_affect_by_effect
(
game_field
->
core
.
reason_effect
)
&&
game_field
->
is_player_can_place_counter
(
player
,
pcard
,
countertype
,
count
))
lua_pushboolean
(
L
,
pcard
->
add_counter
(
countertype
,
count
));
else
lua_pushboolean
(
L
,
0
);
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