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
37165af5
Commit
37165af5
authored
Oct 03, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f6e773d4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
operations.cpp
operations.cpp
+1
-1
processor.cpp
processor.cpp
+2
-2
No files found.
operations.cpp
View file @
37165af5
...
...
@@ -3826,7 +3826,7 @@ int32 field::move_to_field(uint16 step, card * target, uint32 enable, uint32 ret
resetflag
|=
RESET_LEAVE
;
effect
*
peffect
=
target
->
is_affected_by_effect
(
EFFECT_PRE_MONSTER
);
if
((
location
&
LOCATION_ONFIELD
)
&&
(
target
->
current
.
location
&
LOCATION_ONFIELD
)
&&
!
(
peffect
&&
(
peffect
->
value
&
TYPE_TRAP
))
&&
!
(
target
->
get_type
()
&
TYPE_TRAPMONSTER
))
&&
!
(
peffect
&&
(
peffect
->
value
&
TYPE_TRAP
))
&&
!
(
ret
==
2
&&
(
target
->
get_type
()
&
TYPE_TRAPMONSTER
)
))
resetflag
|=
RESET_MSCHANGE
;
target
->
reset
(
resetflag
,
RESET_EVENT
);
}
...
...
processor.cpp
View file @
37165af5
...
...
@@ -5038,10 +5038,10 @@ int32 field::adjust_step(uint16 step) {
for
(
uint8
i
=
0
;
i
<
5
;
++
i
)
{
pcard
=
player
[
tp
].
list_mzone
[
i
];
if
(
!
pcard
)
continue
;
if
((
pcard
->
get_type
()
&
TYPE_TRAPMONSTER
)
&&
pcard
->
is_affected_by_effect
(
EFFECT_DISABLE_TRAPMONSTER
))
{
if
((
pcard
->
get_type
()
&
TYPE_TRAPMONSTER
)
&&
pcard
->
is_affected_by_effect
(
EFFECT_DISABLE_TRAPMONSTER
))
{
pcard
->
reset
(
RESET_TURN_SET
,
RESET_EVENT
);
refresh_location_info_instant
();
move_to_field
(
pcard
,
tp
,
tp
,
LOCATION_SZONE
,
pcard
->
current
.
position
);
move_to_field
(
pcard
,
tp
,
tp
,
LOCATION_SZONE
,
pcard
->
current
.
position
,
FALSE
,
2
);
core
.
re_adjust
=
TRUE
;
}
}
...
...
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