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
bcbe69d9
Commit
bcbe69d9
authored
Feb 15, 2025
by
wind2009
Committed by
GitHub
Feb 15, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update change_position (#723)
* Update change_position * erase outside the loop
parent
fe48b4fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
operations.cpp
operations.cpp
+5
-1
No files found.
operations.cpp
View file @
bcbe69d9
...
@@ -4965,8 +4965,12 @@ int32_t field::change_position(uint16_t step, group * targets, effect * reason_e
...
@@ -4965,8 +4965,12 @@ int32_t field::change_position(uint16_t step, group * targets, effect * reason_e
process_single_event();
process_single_event();
if(flips.size())
if(flips.size())
raise_event(flips, EVENT_FLIP, reason_effect, 0, reason_player, 0, 0);
raise_event(flips, EVENT_FLIP, reason_effect, 0, reason_player, 0, 0);
if(ssets.size())
if(ssets.size()) {
for(auto& pcard : ssets) {
targets->container.erase(pcard);
}
raise_event(ssets, EVENT_SSET, reason_effect, 0, reason_player, 0, 0);
raise_event(ssets, EVENT_SSET, reason_effect, 0, reason_player, 0, 0);
}
if(pos_changed.size())
if(pos_changed.size())
raise_event(pos_changed, EVENT_CHANGE_POS, reason_effect, 0, reason_player, 0, 0);
raise_event(pos_changed, EVENT_CHANGE_POS, reason_effect, 0, reason_player, 0, 0);
process_instant_event();
process_instant_event();
...
...
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