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
eca4db36
Commit
eca4db36
authored
Dec 02, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3dcd4627
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
operations.cpp
operations.cpp
+4
-4
No files found.
operations.cpp
View file @
eca4db36
...
...
@@ -3063,10 +3063,10 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card* target, uin
pcard
->
current
.
reason_effect
=
peffect
;
pcard
->
current
.
reason_player
=
sumplayer
;
pcard
->
summon_player
=
sumplayer
;
std
::
vector
<
int32
>
retval
;
peffect
->
get_value
(
pcard
,
0
,
&
retval
);
pcard
->
summon_info
=
retval
.
size
()
>
0
?
retval
[
0
]
:
0
;
uint32
zone
=
retval
.
size
()
>
1
?
retval
[
1
]
:
0xff
;
std
::
vector
<
lua_Integer
>
retval
;
peffect
->
get_value
(
target
,
0
,
retval
);
// pcard->summon_info = retval.size() > 0 ? static_cast<uint32>(retval[0])
: 0;
uint32
zone
=
retval
.
size
()
>
1
?
static_cast
<
uint32
>
(
retval
[
1
])
:
0xff
;
pcard
->
summon_info
=
(
peffect
->
get_value
(
pcard
)
&
DEFAULT_SUMMON_TYPE
)
|
SUMMON_TYPE_SPECIAL
|
((
uint32
)
pcard
->
current
.
location
<<
16
);
uint32
flag1
,
flag2
;
int32
ct1
=
get_tofield_count
(
pcard
,
sumplayer
,
LOCATION_MZONE
,
sumplayer
,
LOCATION_REASON_TOFIELD
,
zone
,
&
flag1
);
...
...
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