Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
61664cd0
Commit
61664cd0
authored
May 31, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
48ecf560
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
ocgcore/field.h
ocgcore/field.h
+1
-0
ocgcore/operations.cpp
ocgcore/operations.cpp
+6
-3
ocgcore/processor.cpp
ocgcore/processor.cpp
+5
-0
No files found.
ocgcore/field.h
View file @
61664cd0
...
...
@@ -198,6 +198,7 @@ struct processor {
card_set
operated_set
;
card_set
discarded_set
;
card_set
destroy_canceled
;
card_set
delayed_enable_set
;
card_set
summoned_cards_pt
[
2
];
card_set
normalsummoned_cards_pt
[
2
];
card_set
spsummoned_cards_pt
[
2
];
...
...
ocgcore/operations.cpp
View file @
61664cd0
...
...
@@ -3448,9 +3448,12 @@ int32 field::change_position(uint16 step, group * targets, effect * reason_effec
raise_single_event
(
pcard
,
0
,
EVENT_FLIP
,
reason_effect
,
0
,
reason_player
,
0
,
noflip
);
flips
.
insert
(
pcard
);
}
if
(
enable
)
pcard
->
enable_field_effect
(
TRUE
);
else
if
(
enable
)
{
if
(
!
reason_effect
||
!
(
reason_effect
->
type
&
0x7f0
))
pcard
->
enable_field_effect
(
TRUE
);
else
core
.
delayed_enable_set
.
insert
(
pcard
);
}
else
pcard
->
refresh_disable_status
();
}
if
(
pcard
->
current
.
location
==
LOCATION_MZONE
)
{
...
...
ocgcore/processor.cpp
View file @
61664cd0
...
...
@@ -4458,6 +4458,11 @@ int32 field::solve_chain(uint16 step, uint32 skip_new) {
if
(
oit
->
second
.
op_cards
)
pduel
->
delete_group
(
oit
->
second
.
op_cards
);
}
for
(
auto
cit
=
core
.
delayed_enable_set
.
begin
();
cit
!=
core
.
delayed_enable_set
.
end
();
++
cit
)
{
if
((
*
cit
)
->
current
.
location
==
LOCATION_MZONE
)
(
*
cit
)
->
enable_field_effect
(
TRUE
);
}
core
.
delayed_enable_set
.
clear
();
adjust_all
();
core
.
current_chain
.
pop_back
();
if
(
!
core
.
current_chain
.
size
())
{
...
...
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