Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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-scripts
Commits
2eb0084e
Commit
2eb0084e
authored
Feb 15, 2020
by
mallu11
Committed by
GitHub
Feb 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 百景戦都ゴルディロックス (#1330)
parent
80ab3021
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
c24521754.lua
c24521754.lua
+21
-6
No files found.
c24521754.lua
View file @
2eb0084e
...
@@ -22,9 +22,11 @@ function c24521754.initial_effect(c)
...
@@ -22,9 +22,11 @@ function c24521754.initial_effect(c)
--move
--move
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
24521754
,
0
))
e4
:
SetDescription
(
aux
.
Stringid
(
24521754
,
0
))
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
c24521754
.
seqcon
)
e4
:
SetTarget
(
c24521754
.
seqtg
)
e4
:
SetTarget
(
c24521754
.
seqtg
)
e4
:
SetOperation
(
c24521754
.
seqop
)
e4
:
SetOperation
(
c24521754
.
seqop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
...
@@ -38,17 +40,31 @@ end
...
@@ -38,17 +40,31 @@ end
function
c24521754
.
atkcon
(
e
)
function
c24521754
.
atkcon
(
e
)
return
e
:
GetHandler
():
GetSequence
()
==
2
return
e
:
GetHandler
():
GetSequence
()
==
2
end
end
function
c24521754
.
seqfilter
(
c
)
function
c24521754
.
seqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tp
=
c
:
GetControler
()
return
e
:
GetHandler
():
GetSequence
()
<
5
return
c
:
IsFaceup
()
and
c
:
GetSequence
()
<
5
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_CONTROL
)
>
0
end
end
function
c24521754
.
seqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c24521754
.
seqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
PLAYER_NONE
,
0
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOZONE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOZONE
)
local
fd
=
Duel
.
SelectDisableField
(
tp
,
1
,
LOCATION_MZONE
,
0
,
0
)
local
fd
=
Duel
.
SelectDisableField
(
tp
,
1
,
LOCATION_MZONE
,
0
,
0
)
Duel
.
Hint
(
HINT_ZONE
,
tp
,
fd
)
Duel
.
Hint
(
HINT_ZONE
,
tp
,
fd
)
e
:
SetLabel
(
math.log
(
fd
,
2
))
local
seq
=
math.log
(
fd
,
2
)
e
:
SetLabel
(
seq
)
local
pseq
=
c
:
GetSequence
()
if
pseq
>
seq
then
pseq
,
seq
=
seq
,
pseq
end
local
dg
=
Group
.
CreateGroup
()
local
g
=
nil
local
exg
=
nil
for
i
=
pseq
,
seq
do
g
=
Duel
.
GetMatchingGroup
(
c24521754
.
seqfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c
,
tp
,
i
)
dg
:
Merge
(
g
)
if
i
==
1
or
i
==
3
then
exg
=
Duel
.
GetMatchingGroup
(
c24521754
.
exfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
c
,
tp
,
i
)
dg
:
Merge
(
exg
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
dg
,
dg
:
GetCount
(),
0
,
0
)
end
end
function
c24521754
.
seqfilter
(
c
,
tp
,
seq
)
function
c24521754
.
seqfilter
(
c
,
tp
,
seq
)
if
c
:
IsControler
(
tp
)
then
if
c
:
IsControler
(
tp
)
then
...
@@ -76,7 +92,6 @@ function c24521754.seqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -76,7 +92,6 @@ function c24521754.seqop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
GetSequence
()
==
seq
then
if
c
:
GetSequence
()
==
seq
then
if
pseq
>
seq
then
pseq
,
seq
=
seq
,
pseq
end
if
pseq
>
seq
then
pseq
,
seq
=
seq
,
pseq
end
local
dg
=
Group
.
CreateGroup
()
local
dg
=
Group
.
CreateGroup
()
dg
:
KeepAlive
()
local
g
=
nil
local
g
=
nil
local
exg
=
nil
local
exg
=
nil
for
i
=
pseq
,
seq
do
for
i
=
pseq
,
seq
do
...
...
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