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
36bfb558
Commit
36bfb558
authored
Apr 18, 2024
by
salix5
Committed by
GitHub
Apr 18, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add scope operator (#577)
parent
04e359db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
card.cpp
card.cpp
+2
-2
playerop.cpp
playerop.cpp
+1
-1
No files found.
card.cpp
View file @
36bfb558
...
...
@@ -1996,7 +1996,7 @@ void card::remove_effect(effect* peffect, effect_container::iterator it) {
}
int32
card
::
copy_effect
(
uint32
code
,
uint32
reset
,
uint32
count
)
{
card_data
cdata
;
read_card
(
code
,
&
cdata
);
::
read_card
(
code
,
&
cdata
);
if
(
cdata
.
type
&
TYPE_NORMAL
)
return
-
1
;
set_status
(
STATUS_COPYING_EFFECT
,
TRUE
);
...
...
@@ -2032,7 +2032,7 @@ int32 card::copy_effect(uint32 code, uint32 reset, uint32 count) {
}
int32
card
::
replace_effect
(
uint32
code
,
uint32
reset
,
uint32
count
)
{
card_data
cdata
;
read_card
(
code
,
&
cdata
);
::
read_card
(
code
,
&
cdata
);
if
(
cdata
.
type
&
TYPE_NORMAL
)
return
-
1
;
if
(
is_status
(
STATUS_EFFECT_REPLACED
))
...
...
playerop.cpp
View file @
36bfb558
...
...
@@ -985,7 +985,7 @@ int32 field::announce_card(int16 step, uint8 playerid) {
}
else
{
int32
code
=
returns
.
ivalue
[
0
];
card_data
data
;
read_card
(
code
,
&
data
);
::
read_card
(
code
,
&
data
);
if
(
!
data
.
code
)
{
pduel
->
write_buffer8
(
MSG_RETRY
);
return
FALSE
;
...
...
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