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
8bae15bf
Commit
8bae15bf
authored
Oct 02, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cancel summon when no procedure
parent
f2ebd12e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
operations.cpp
operations.cpp
+3
-1
No files found.
operations.cpp
View file @
8bae15bf
...
@@ -1489,13 +1489,15 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
...
@@ -1489,13 +1489,15 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
core.select_effects.clear();
core.select_effects.clear();
core.select_options.clear();
core.select_options.clear();
if(res > 0) {
if(res > 0) {
core.select_effects.push_back(
0
);
core.select_effects.push_back(
nullptr
);
core.select_options.push_back(1);
core.select_options.push_back(1);
}
}
for(int32 i = 0; i < eset.size(); ++i) {
for(int32 i = 0; i < eset.size(); ++i) {
core.select_effects.push_back(eset[i]);
core.select_effects.push_back(eset[i]);
core.select_options.push_back(eset[i]->description);
core.select_options.push_back(eset[i]->description);
}
}
if (core.select_options.empty())
return TRUE;
if(core.select_options.size() == 1)
if(core.select_options.size() == 1)
returns.ivalue[0] = 0;
returns.ivalue[0] = 0;
else
else
...
...
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