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
7e25037d
Commit
7e25037d
authored
Oct 16, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c8aa2374
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
operations.cpp
operations.cpp
+7
-1
No files found.
operations.cpp
View file @
7e25037d
...
...
@@ -5491,8 +5491,10 @@ int32 field::select_tribute_cards(int16 step, uint8 playerid, uint8 cancelable,
core.operated_set.insert(pcard);
core.release_cards.erase(pcard);
if(min <= (int32)pcard->release_param) {
if(max > 1 &&
(!core.release_cards.empty() || !core.release_cards_ex
.empty() || !core.release_cards_ex_sum.empty()))
if(max > 1 &&
core.release_cards_ex.empty() && (!core.release_cards
.empty() || !core.release_cards_ex_sum.empty()))
add_process(PROCESSOR_SELECT_YESNO, 0, 0, 0, playerid, 210);
else if(max > 1 && !core.release_cards_ex.empty())
returns.ivalue[0] = TRUE;
else
core.units.begin()->step = 8;
} else
...
...
@@ -5601,6 +5603,8 @@ int32 field::select_tribute_cards(int16 step, uint8 playerid, uint8 cancelable,
rmax += (*cit)->release_param;
min -= rmax;
max -= rmin;
min = min > 0 ? min : 0;
max = max > 0 ? max : 0;
core.units.begin()->arg2 = (max << 16) + min;
if(min <= 0) {
if(max > 0 && !core.release_cards.empty())
...
...
@@ -5706,6 +5710,8 @@ int32 field::select_tribute_cards(int16 step, uint8 playerid, uint8 cancelable,
max--;
fcount++;
}
min = min > 0 ? min : 0;
max = max > 0 ? max : 0;
core.units.begin()->arg2 = (max << 16) + min;
if(core.release_cards.size() == 0
|| (fcount <= 0 && min < 2)) {
...
...
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