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
f05e302c
Commit
f05e302c
authored
Oct 22, 2018
by
mercury233
Committed by
GitHub
Oct 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update (#188)
don't move cards in grave and removed when them activate effect or become target
parent
9b568145
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
10 deletions
+0
-10
libduel.cpp
libduel.cpp
+0
-4
operations.cpp
operations.cpp
+0
-2
processor.cpp
processor.cpp
+0
-4
No files found.
libduel.cpp
View file @
f05e302c
...
...
@@ -2837,15 +2837,11 @@ int32 scriptlib::duel_set_target_card(lua_State *L) {
}
if
(
peffect
->
is_flag
(
EFFECT_FLAG_CARD_TARGET
))
{
if
(
pcard
)
{
if
(
pcard
->
current
.
location
&
0x30
)
pduel
->
game_field
->
move_card
(
pcard
->
current
.
controler
,
pcard
,
pcard
->
current
.
location
,
0
);
pduel
->
write_buffer8
(
MSG_BECOME_TARGET
);
pduel
->
write_buffer8
(
1
);
pduel
->
write_buffer32
(
pcard
->
get_info_location
());
}
else
{
for
(
auto
&
pcard
:
pgroup
->
container
)
{
if
(
pcard
->
current
.
location
&
0x30
)
pduel
->
game_field
->
move_card
(
pcard
->
current
.
controler
,
pcard
,
pcard
->
current
.
location
,
0
);
pduel
->
write_buffer8
(
MSG_BECOME_TARGET
);
pduel
->
write_buffer8
(
1
);
pduel
->
write_buffer32
(
pcard
->
get_info_location
());
...
...
operations.cpp
View file @
f05e302c
...
...
@@ -76,8 +76,6 @@ void field::change_target(uint8 chaincount, group* targets) {
pcard
->
create_relation
(
core
.
current_chain
[
chaincount
-
1
]);
if
(
te
->
is_flag
(
EFFECT_FLAG_CARD_TARGET
))
{
for
(
auto
&
pcard
:
ot
->
container
)
{
if
(
pcard
->
current
.
location
&
0x30
)
move_card
(
pcard
->
current
.
controler
,
pcard
,
pcard
->
current
.
location
,
0
);
pduel
->
write_buffer8
(
MSG_BECOME_TARGET
);
pduel
->
write_buffer8
(
1
);
pduel
->
write_buffer32
(
pcard
->
get_info_location
());
...
...
processor.cpp
View file @
f05e302c
...
...
@@ -771,8 +771,6 @@ int32 field::process() {
if
((
returns
.
bvalue
[
0
]
>
0
)
&&
peffect
->
is_flag
(
EFFECT_FLAG_CARD_TARGET
))
{
for
(
int32
i
=
0
;
i
<
returns
.
bvalue
[
0
];
++
i
)
{
card
*
pcard
=
core
.
select_cards
[
returns
.
bvalue
[
i
+
1
]];
if
(
pcard
->
current
.
location
&
0x30
)
move_card
(
pcard
->
current
.
controler
,
pcard
,
pcard
->
current
.
location
,
0
);
pduel
->
write_buffer8
(
MSG_BECOME_TARGET
);
pduel
->
write_buffer8
(
1
);
pduel
->
write_buffer32
(
pcard
->
get_info_location
());
...
...
@@ -4246,8 +4244,6 @@ int32 field::add_chain(uint16 step) {
change_position
(
phandler
,
0
,
phandler
->
current
.
controler
,
POS_FACEUP
,
0
);
}
}
if
(
phandler
->
current
.
location
&
(
LOCATION_GRAVE
|
LOCATION_REMOVED
))
move_card
(
phandler
->
current
.
controler
,
phandler
,
phandler
->
current
.
location
,
0
);
return
FALSE
;
}
case
1
:
{
...
...
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