Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
af13ef24
Commit
af13ef24
authored
Apr 17, 2021
by
mercury233
Committed by
GitHub
Apr 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix センサー万別 (#1608)
parent
9d115248
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
c24207889.lua
c24207889.lua
+19
-9
No files found.
c24207889.lua
View file @
af13ef24
...
@@ -31,10 +31,16 @@ function c24207889.initial_effect(c)
...
@@ -31,10 +31,16 @@ function c24207889.initial_effect(c)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
if
not
c24207889
.
global_check
then
if
not
c24207889
.
global_check
then
c24207889
.
global_check
=
true
c24207889
.
global_check
=
true
c24207889
[
0
]
=
Group
.
CreateGroup
()
c24207889
[
0
]
=
{}
c24207889
[
0
]:
KeepAlive
()
c24207889
[
1
]
=
{}
c24207889
[
1
]
=
Group
.
CreateGroup
()
local
race
=
1
c24207889
[
1
]:
KeepAlive
()
while
race
<
RACE_ALL
do
c24207889
[
0
][
race
]
=
Group
.
CreateGroup
()
c24207889
[
0
][
race
]:
KeepAlive
()
c24207889
[
1
][
race
]
=
Group
.
CreateGroup
()
c24207889
[
1
][
race
]:
KeepAlive
()
race
=
race
<<
1
end
end
end
end
end
function
c24207889
.
rmfilter
(
c
,
rc
)
function
c24207889
.
rmfilter
(
c
,
rc
)
...
@@ -54,16 +60,16 @@ function c24207889.adjustop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,16 +60,16 @@ function c24207889.adjustop(e,tp,eg,ep,ev,re,r,rp)
for
p
=
0
,
1
do
for
p
=
0
,
1
do
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
p
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
p
,
LOCATION_MZONE
,
0
,
nil
)
local
race
=
1
local
race
=
1
while
bit
.
band
(
RACE_ALL
,
race
)
~=
0
do
while
race
<
RACE_ALL
do
local
rg
=
g
:
Filter
(
Card
.
IsRace
,
nil
,
race
)
local
rg
=
g
:
Filter
(
Card
.
IsRace
,
nil
,
race
)
local
rc
=
rg
:
GetCount
()
local
rc
=
rg
:
GetCount
()
if
rc
>
1
then
if
rc
>
1
then
rg
:
Sub
(
c24207889
[
p
])
rg
:
Sub
(
c24207889
[
p
]
[
race
]:
Filter
(
Card
.
IsRace
,
nil
,
race
)
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TOGRAVE
)
local
dg
=
rg
:
Select
(
p
,
rc
-
1
,
rc
-
1
,
nil
)
local
dg
=
rg
:
Select
(
p
,
rc
-
1
,
rc
-
1
,
nil
)
sg
:
Merge
(
dg
)
sg
:
Merge
(
dg
)
end
end
race
=
race
*
2
race
=
race
<<
1
end
end
end
end
if
sg
:
GetCount
()
>
0
then
if
sg
:
GetCount
()
>
0
then
...
@@ -72,7 +78,11 @@ function c24207889.adjustop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -72,7 +78,11 @@ function c24207889.adjustop(e,tp,eg,ep,ev,re,r,rp)
end
end
for
p
=
0
,
1
do
for
p
=
0
,
1
do
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
p
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
p
,
LOCATION_MZONE
,
0
,
nil
)
c24207889
[
p
]:
Clear
()
local
race
=
1
c24207889
[
p
]:
Merge
(
g
)
while
race
<
RACE_ALL
do
c24207889
[
p
][
race
]:
Clear
()
c24207889
[
p
][
race
]:
Merge
(
g
:
Filter
(
Card
.
IsRace
,
nil
,
race
))
race
=
race
<<
1
end
end
end
end
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