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
82fb81ad
Commit
82fb81ad
authored
Jun 09, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
261de912
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
field.cpp
field.cpp
+1
-1
libcard.cpp
libcard.cpp
+3
-3
operations.cpp
operations.cpp
+6
-0
No files found.
field.cpp
View file @
82fb81ad
...
...
@@ -115,7 +115,7 @@ field::~field() {
}
void
field
::
reload_field_info
()
{
pduel
->
write_buffer8
(
MSG_RELOAD_FIELD
);
pduel
->
write_buffer8
(
core
.
duel_rule
-
1
);
pduel
->
write_buffer8
(
core
.
duel_rule
);
for
(
int32
playerid
=
0
;
playerid
<
2
;
++
playerid
)
{
pduel
->
write_buffer32
(
player
[
playerid
].
lp
);
for
(
auto
cit
=
player
[
playerid
].
list_mzone
.
begin
();
cit
!=
player
[
playerid
].
list_mzone
.
end
();
++
cit
)
{
...
...
libcard.cpp
View file @
82fb81ad
...
...
@@ -1114,10 +1114,10 @@ int32 scriptlib::card_is_has_effect(lua_State *L) {
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
uint32
code
=
lua_tointeger
(
L
,
2
);
if
(
pcard
&&
pcard
->
is_affected_by_effect
(
code
)
)
lua_pushboolean
(
L
,
1
);
if
(
pcard
)
interpreter
::
effect2value
(
L
,
pcard
->
is_affected_by_effect
(
code
)
);
else
lua_push
boolean
(
L
,
0
);
lua_push
nil
(
L
);
return
1
;
}
int32
scriptlib
::
card_reset_effect
(
lua_State
*
L
)
{
...
...
operations.cpp
View file @
82fb81ad
...
...
@@ -1693,6 +1693,8 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
if
(
core
.
summon_depth
)
return
TRUE
;
break_effect
();
if
(
ignore_count
)
return
FALSE
;
effect
*
pextra
=
(
effect
*
)
core
.
units
.
begin
()
->
ptr1
;
if
(
!
pextra
)
core
.
summon_count
[
sumplayer
]
++
;
...
...
@@ -1745,6 +1747,8 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
return
FALSE
;
}
case
10
:
{
if
(
ignore_count
)
return
FALSE
;
effect
*
pextra
=
(
effect
*
)
core
.
units
.
begin
()
->
ptr1
;
if
(
!
pextra
)
core
.
summon_count
[
sumplayer
]
++
;
...
...
@@ -2173,6 +2177,8 @@ int32 field::mset(uint16 step, uint8 setplayer, card* target, effect* proc, uint
}
case
7
:
{
break_effect
();
if
(
ignore_count
)
return
FALSE
;
effect
*
pextra
=
(
effect
*
)
core
.
units
.
begin
()
->
ptr1
;
if
(
!
pextra
)
core
.
summon_count
[
setplayer
]
++
;
...
...
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