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
2d9be2ac
Commit
2d9be2ac
authored
Sep 30, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dont move card in grave and removed when them become target
parent
60e18710
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
8 deletions
+0
-8
libduel.cpp
libduel.cpp
+0
-4
operations.cpp
operations.cpp
+0
-2
processor.cpp
processor.cpp
+0
-2
No files found.
libduel.cpp
View file @
2d9be2ac
...
@@ -2831,15 +2831,11 @@ int32 scriptlib::duel_set_target_card(lua_State *L) {
...
@@ -2831,15 +2831,11 @@ int32 scriptlib::duel_set_target_card(lua_State *L) {
}
}
if
(
peffect
->
is_flag
(
EFFECT_FLAG_CARD_TARGET
))
{
if
(
peffect
->
is_flag
(
EFFECT_FLAG_CARD_TARGET
))
{
if
(
pcard
)
{
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
(
MSG_BECOME_TARGET
);
pduel
->
write_buffer8
(
1
);
pduel
->
write_buffer8
(
1
);
pduel
->
write_buffer32
(
pcard
->
get_info_location
());
pduel
->
write_buffer32
(
pcard
->
get_info_location
());
}
else
{
}
else
{
for
(
auto
&
pcard
:
pgroup
->
container
)
{
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
(
MSG_BECOME_TARGET
);
pduel
->
write_buffer8
(
1
);
pduel
->
write_buffer8
(
1
);
pduel
->
write_buffer32
(
pcard
->
get_info_location
());
pduel
->
write_buffer32
(
pcard
->
get_info_location
());
...
...
operations.cpp
View file @
2d9be2ac
...
@@ -76,8 +76,6 @@ void field::change_target(uint8 chaincount, group* targets) {
...
@@ -76,8 +76,6 @@ void field::change_target(uint8 chaincount, group* targets) {
pcard
->
create_relation
(
core
.
current_chain
[
chaincount
-
1
]);
pcard
->
create_relation
(
core
.
current_chain
[
chaincount
-
1
]);
if
(
te
->
is_flag
(
EFFECT_FLAG_CARD_TARGET
))
{
if
(
te
->
is_flag
(
EFFECT_FLAG_CARD_TARGET
))
{
for
(
auto
&
pcard
:
ot
->
container
)
{
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
(
MSG_BECOME_TARGET
);
pduel
->
write_buffer8
(
1
);
pduel
->
write_buffer8
(
1
);
pduel
->
write_buffer32
(
pcard
->
get_info_location
());
pduel
->
write_buffer32
(
pcard
->
get_info_location
());
...
...
processor.cpp
View file @
2d9be2ac
...
@@ -771,8 +771,6 @@ int32 field::process() {
...
@@ -771,8 +771,6 @@ int32 field::process() {
if
((
returns
.
bvalue
[
0
]
>
0
)
&&
peffect
->
is_flag
(
EFFECT_FLAG_CARD_TARGET
))
{
if
((
returns
.
bvalue
[
0
]
>
0
)
&&
peffect
->
is_flag
(
EFFECT_FLAG_CARD_TARGET
))
{
for
(
int32
i
=
0
;
i
<
returns
.
bvalue
[
0
];
++
i
)
{
for
(
int32
i
=
0
;
i
<
returns
.
bvalue
[
0
];
++
i
)
{
card
*
pcard
=
core
.
select_cards
[
returns
.
bvalue
[
i
+
1
]];
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
(
MSG_BECOME_TARGET
);
pduel
->
write_buffer8
(
1
);
pduel
->
write_buffer8
(
1
);
pduel
->
write_buffer32
(
pcard
->
get_info_location
());
pduel
->
write_buffer32
(
pcard
->
get_info_location
());
...
...
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