Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
bdf6b23c
Commit
bdf6b23c
authored
Jun 25, 2023
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2da1a657
Pipeline
#22416
passed with stages
in 43 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
20 deletions
+18
-20
script/c101202019.lua
script/c101202019.lua
+2
-2
script/c101202064.lua
script/c101202064.lua
+16
-18
No files found.
script/c101202019.lua
View file @
bdf6b23c
...
...
@@ -57,11 +57,11 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
()
or
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
<
1
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
<
1
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
BreakEffect
()
Duel
.
ChangePosition
(
c
,
POS_FACEUP_DEFENSE
,
POS_FACEDOWN_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
Duel
.
ChangePosition
(
t
c
,
POS_FACEUP_DEFENSE
,
POS_FACEDOWN_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
end
end
function
s
.
pzcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101202064.lua
View file @
bdf6b23c
--Concours de Cuisine~菓冷なる料理対決~
--Concours de Cuisine (Confectionery Contest)
--coded by Lyris
--coded by Lyris
& Mercury233
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--Activate
...
...
@@ -29,33 +29,31 @@ end
function
s
.
filter
(
c
)
return
c
:
IsSetCard
(
0x196
,
0x29d
)
and
c
:
IsType
(
TYPE_PENDULUM
)
end
function
s
.
sfilter
(
c
,
e
,
tp
,
p
,
arches
)
if
not
p
then
p
=
tp
end
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
p
)
and
(
not
arches
or
c
:
IsSetCard
(
table.unpack
(
arches
)))
function
s
.
sfilter1
(
c
,
e
,
tp
,
g
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
(
not
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
or
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
)
and
g
:
IsExists
(
s
.
sfilter2
,
1
,
c
,
e
,
tp
,
c
)
end
function
s
.
chk
(
g
,
e
,
tp
)
if
#
g
<
2
then
return
false
end
local
ac
,
bc
=
g
:
GetFirst
(),
g
:
GetNext
()
return
(
s
.
sfilter
(
ac
,
e
,
tp
)
and
s
.
sfilter
(
bc
,
e
,
tp
,
1
-
tp
)
or
s
.
sfilter
(
bc
,
e
,
tp
)
and
s
.
sfilter
(
ac
,
e
,
tp
,
1
-
tp
)
)
and
(
ac
:
IsSetCard
(
0x196
)
and
bc
:
IsSetCard
(
0x29d
)
or
ac
:
IsSetCard
(
0x29d
)
and
bc
:
IsSetCard
(
0x196
)
)
function
s
.
sfilter2
(
c
,
e
,
tp
,
oc
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
1
-
tp
)
and
(
not
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
>
0
or
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
1
-
tp
,
tp
,
nil
,
c
)
>
0
)
and
aux
.
gfcheck
(
Group
.
FromCards
(
c
,
oc
),
Card
.
IsSetCard
,
0x196
,
0x29d
)
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
+
LOCATION_HAND
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
>
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
g
:
CheckSubGroup
(
s
.
chk
,
2
,
2
,
e
,
tp
)
end
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
g
:
IsExists
(
s
.
sfilter1
,
1
,
nil
,
e
,
tp
,
g
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
PLAYER_ALL
,
LOCATION_DECK
+
LOCATION_EXTRA
+
LOCATION_HAND
)
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
+
LOCATION_HAND
,
0
,
1
,
nil
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
>
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
g
:
CheckSubGroup
(
s
.
chk
,
2
,
2
)
then
if
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
g
:
IsExists
(
s
.
sfilter1
,
1
,
nil
,
e
,
tp
,
g
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
id
,
2
))
local
sc
=
g
:
FilterSelect
(
tp
,
s
.
sfilter
,
1
,
1
,
nil
,
e
,
tp
,
tp
,{
0x196
,
0x29d
}):
GetFirst
()
local
arches
=
{
sc
:
IsSetCard
(
0x196
)
and
0x29d
,
sc
:
IsSetCard
(
0x29d
)
and
0x196
}
for
i
=#
arches
,
1
,
-
1
do
if
not
t
[
i
]
then
table.remove
(
t
,
i
)
end
end
local
sc
=
g
:
FilterSelect
(
tp
,
s
.
sfilter1
,
1
,
1
,
nil
,
e
,
tp
,
g
):
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
id
,
3
))
local
oc
=
g
:
FilterSelect
(
tp
,
s
.
sfilter
,
1
,
1
,
sc
,
e
,
tp
,
1
-
tp
,
arches
):
GetFirst
()
local
oc
=
g
:
FilterSelect
(
tp
,
s
.
sfilter
2
,
1
,
1
,
sc
,
e
,
tp
,
sc
):
GetFirst
()
Duel
.
SpecialSummonStep
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
oc
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonComplete
()
...
...
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