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
c87d9f8f
Commit
c87d9f8f
authored
Dec 22, 2011
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f680beda
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
ocgcore/field.cpp
ocgcore/field.cpp
+2
-3
ocgcore/processor.cpp
ocgcore/processor.cpp
+4
-0
script/c91822647.lua
script/c91822647.lua
+1
-1
No files found.
ocgcore/field.cpp
View file @
c87d9f8f
...
...
@@ -358,10 +358,9 @@ void field::shuffle(uint8 playerid, uint8 location) {
if
(
svector
.
size
()
==
0
)
return
;
if
(
svector
.
size
()
>
1
)
{
card_vector
::
iterator
cit
;
uint32
i
=
0
,
s
=
svector
.
size
(),
r
;
for
(
i
=
0
;
i
<
s
;
++
i
)
{
r
=
pduel
->
get_next_integer
(
0
,
s
-
1
);
for
(
i
=
0
;
i
<
s
-
1
;
++
i
)
{
r
=
pduel
->
get_next_integer
(
i
,
s
-
1
);
t
=
svector
[
i
];
svector
[
i
]
=
svector
[
r
];
svector
[
r
]
=
t
;
...
...
ocgcore/processor.cpp
View file @
c87d9f8f
...
...
@@ -1458,6 +1458,10 @@ int32 field::process_phase_event(int16 step, int32 phase) {
core
.
select_cards
.
clear
();
for
(
auto
cit
=
player
[
infos
.
turn_player
].
list_hand
.
begin
();
cit
!=
player
[
infos
.
turn_player
].
list_hand
.
end
();
++
cit
)
core
.
select_cards
.
push_back
(
*
cit
);
pduel
->
write_buffer8
(
MSG_HINT
);
pduel
->
write_buffer8
(
HINT_SELECTMSG
);
pduel
->
write_buffer8
(
infos
.
turn_player
);
pduel
->
write_buffer32
(
501
);
add_process
(
PROCESSOR_SELECT_CARD
,
0
,
0
,
0
,
infos
.
turn_player
,
hd
-
limit
+
((
hd
-
limit
)
<<
16
));
return
FALSE
;
}
...
...
script/c91822647.lua
View file @
c87d9f8f
...
...
@@ -18,7 +18,7 @@ function c91822647.filter1(c,e)
return
c
:
IsSetCard
(
0x10
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
end
function
c91822647
.
filter2
(
c
,
e
,
tp
)
return
c
:
IsDefenceBelow
(
1000
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
Is
SetCard
(
0x10
)
and
c
:
Is
DefenceBelow
(
1000
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c91822647
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
...
...
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