Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
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
fallenstardust
YGOMobile-Cn-Ko-En
Commits
7e424b78
Commit
7e424b78
authored
Feb 24, 2020
by
fallenstardust
Committed by
GitHub
Feb 24, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #35 from mercury233/patch-3
temp workaround
parents
d8510201
4152bb05
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Classes/ocgcore/card.cpp
Classes/ocgcore/card.cpp
+1
-1
Classes/ocgcore/field.cpp
Classes/ocgcore/field.cpp
+1
-1
Classes/ocgcore/processor.cpp
Classes/ocgcore/processor.cpp
+2
-2
No files found.
Classes/ocgcore/card.cpp
View file @
7e424b78
...
...
@@ -1903,7 +1903,7 @@ void card::reset(uint32 id, uint32 reset_type) {
}
}
if
(
id
&
RESET_TURN_SET
)
{
effect
*
peffect
=
std
::
get
<
effect
*
>
(
refresh_control_status
());
effect
*
peffect
=
std
::
get
<
1
>
(
refresh_control_status
());
if
(
peffect
&&
(
!
(
peffect
->
type
&
EFFECT_TYPE_SINGLE
)
||
peffect
->
condition
))
{
effect
*
new_effect
=
pduel
->
new_effect
();
new_effect
->
id
=
peffect
->
id
;
...
...
Classes/ocgcore/field.cpp
View file @
7e424b78
...
...
@@ -523,7 +523,7 @@ void field::swap_card(card* pcard1, card* pcard2) {
return
swap_card
(
pcard1
,
pcard2
,
pcard1
->
current
.
sequence
,
pcard2
->
current
.
sequence
);
}
void
field
::
set_control
(
card
*
pcard
,
uint8
playerid
,
uint16
reset_phase
,
uint8
reset_count
)
{
if
((
core
.
remove_brainwashing
&&
pcard
->
is_affected_by_effect
(
EFFECT_REMOVE_BRAINWASHING
))
||
std
::
get
<
uint8
>
(
pcard
->
refresh_control_status
())
==
playerid
)
if
((
core
.
remove_brainwashing
&&
pcard
->
is_affected_by_effect
(
EFFECT_REMOVE_BRAINWASHING
))
||
std
::
get
<
0
>
(
pcard
->
refresh_control_status
())
==
playerid
)
return
;
effect
*
peffect
=
pduel
->
new_effect
();
if
(
core
.
reason_effect
)
...
...
Classes/ocgcore/processor.cpp
View file @
7e424b78
...
...
@@ -4852,8 +4852,8 @@ int32 field::adjust_step(uint16 step) {
if
(
!
pcard
)
continue
;
uint8
cur
=
pcard
->
current
.
controler
;
auto
res
=
pcard
->
refresh_control_status
();
uint8
ref
=
std
::
get
<
uint8
>
(
res
);
effect
*
peffect
=
std
::
get
<
effect
*
>
(
res
);
uint8
ref
=
std
::
get
<
0
>
(
res
);
effect
*
peffect
=
std
::
get
<
1
>
(
res
);
if
(
cur
!=
ref
&&
pcard
->
is_capable_change_control
())
{
core
.
control_adjust_set
[
p
].
insert
(
pcard
);
if
(
peffect
&&
(
!
(
peffect
->
type
&
EFFECT_TYPE_SINGLE
)
||
peffect
->
condition
))
...
...
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