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
eb7363fc
Commit
eb7363fc
authored
Aug 10, 2023
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6b2d9ff7
Pipeline
#23024
passed with stages
in 30 seconds
Changes
14
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
36 additions
and
40 deletions
+36
-40
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100421003.lua
script/c100421003.lua
+1
-1
script/c101202007.lua
script/c101202007.lua
+1
-1
script/c101202008.lua
script/c101202008.lua
+1
-1
script/c101202009.lua
script/c101202009.lua
+1
-1
script/c101202017.lua
script/c101202017.lua
+5
-19
script/c101202022.lua
script/c101202022.lua
+2
-1
script/c101202024.lua
script/c101202024.lua
+3
-5
script/c101202036.lua
script/c101202036.lua
+1
-1
script/c101202041.lua
script/c101202041.lua
+8
-0
script/c101202042.lua
script/c101202042.lua
+8
-6
script/c101202055.lua
script/c101202055.lua
+3
-2
script/c101202075.lua
script/c101202075.lua
+1
-1
script/c101202077.lua
script/c101202077.lua
+1
-1
No files found.
expansions/pre-release.cdb
View file @
eb7363fc
No preview for this file type
script/c100421003.lua
View file @
eb7363fc
...
...
@@ -61,7 +61,7 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
if
not
tc
or
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
<
1
then
return
end
local
lv
=
tc
:
GetOriginalLevel
()
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
lv
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TOGRAVE
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
s
.
chk
,
false
,
1
,
99
,
lv
)
if
sg
then
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
end
end
script/c101202007.lua
View file @
eb7363fc
...
...
@@ -43,7 +43,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
function
s
.
cfilter
(
c
,
tc
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
Group
.
CreateGroup
(
c
,
tc
))
>
0
return
c
:
IsFaceup
()
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
Group
.
FromCards
(
c
,
tc
))
>
0
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
script/c101202008.lua
View file @
eb7363fc
...
...
@@ -52,7 +52,7 @@ function s.rvop(e,tp,eg,ep,ev,re,r,rp)
elseif
op
==
2
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
s
.
cfilter
(
c
,
tc
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
Group
.
CreateGroup
(
c
,
tc
))
>
0
return
c
:
IsFaceup
()
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
Group
.
FromCards
(
c
,
tc
))
>
0
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
script/c101202009.lua
View file @
eb7363fc
...
...
@@ -40,7 +40,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
==
1
-
tp
end
function
s
.
cfilter
(
c
,
tc
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
Group
.
CreateGroup
(
c
,
tc
))
>
0
return
c
:
IsFaceup
()
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
Group
.
FromCards
(
c
,
tc
))
>
0
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
script/c101202017.lua
View file @
eb7363fc
...
...
@@ -43,31 +43,17 @@ function s.spfilter(c,e,tp)
return
c
:
IsSetCard
(
0x17e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
tftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
b1
=
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
local
b1
=
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
(),
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
b2
=
Duel
.
IsExistingMatchingCard
(
s
.
setfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
if
chk
==
0
then
return
b1
or
b2
end
end
function
s
.
tfop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
b1
=
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
b2
=
Duel
.
IsExistingMatchingCard
(
s
.
setfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
local
b2
=
Duel
.
IsExistingMatchingCard
(
s
.
setfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
if
not
(
b1
or
b2
)
then
return
end
local
off
=
1
local
ops
=
{}
local
opval
=
{}
if
b1
then
ops
[
off
]
=
2
opval
[
off
-
1
]
=
1
off
=
off
+
1
end
if
b2
then
ops
[
off
]
=
1153
opval
[
off
-
1
]
=
2
off
=
off
+
1
end
local
op
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
ops
))
local
sel
=
opval
[
op
]
e
:
SetLabel
(
sel
)
local
sel
=
aux
.
SelectFromOptions
(
tp
,{
b1
,
1152
},{
b2
,
1153
})
if
sel
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
...
script/c101202022.lua
View file @
eb7363fc
...
...
@@ -54,11 +54,12 @@ function s.tkop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
tk
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
s
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentChain
()
==
0
return
Duel
.
GetCurrentChain
()
==
0
and
ep
==
1
-
tp
end
function
s
.
negcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsType
,
1
,
nil
,
TYPE_NORMAL
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsType
,
1
,
1
,
nil
,
TYPE_NORMAL
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
s
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
script/c101202024.lua
View file @
eb7363fc
...
...
@@ -32,11 +32,9 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
filter
(
c
,
e
,
tp
)
local
seq
=
c
:
GetSequence
()
if
seq
>
4
then
return
false
end
if
c
:
IsControler
(
1
-
tp
)
then
seq
=
seq
+
16
end
return
c
:
IsFaceup
()
and
c
:
GetFlagEffect
(
id
)
>
0
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
c
:
GetControler
(),
1
<<
seq
)
local
p
,
seq
=
tc
:
GetControler
(),
tc
:
GetSequence
()
return
c
:
IsFaceup
()
and
c
:
GetFlagEffect
(
id
)
>
0
and
Duel
.
GetMZoneCount
(
p
,
c
,
tp
,
LOCATION_REASON_TOFIELD
,
1
<<
seq
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
c
:
GetControler
())
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
s
.
filter
(
chkc
,
e
,
tp
)
end
...
...
script/c101202036.lua
View file @
eb7363fc
...
...
@@ -76,7 +76,7 @@ end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
g
=
eg
:
Filter
(
s
.
sfilter
,
nil
,
e
,
tp
)
if
chkc
then
return
g
:
IsContains
(
chkc
)
end
if
chk
==
0
then
return
#
g
>
0
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
#
g
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SetTargetCard
(
sg
)
...
...
script/c101202041.lua
View file @
eb7363fc
...
...
@@ -31,6 +31,7 @@ function s.initial_effect(c)
e3
:
SetCode
(
EVENT_EQUIP
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
s
.
eqcon
)
e3
:
SetTarget
(
s
.
eqtg
)
e3
:
SetOperation
(
s
.
eqop
)
c
:
RegisterEffect
(
e3
)
...
...
@@ -61,6 +62,13 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
end
function
s
.
eqcfilter
(
c
,
tp
)
local
tc
=
c
:
GetEquipTarget
()
return
tc
and
tc
:
IsControler
(
tp
)
end
function
s
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
eqcfilter
,
1
,
nil
,
tp
)
end
function
s
.
ovfilter2
(
c
)
return
c
:
IsCanOverlay
()
end
...
...
script/c101202042.lua
View file @
eb7363fc
...
...
@@ -5,7 +5,7 @@ local s,id,o=GetID()
function
s
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--material
aux
.
AddXyzProcedure
(
c
,
nil
,
12
,
2
,
s
.
mfilter
(
c
:
GetControler
())
,
aux
.
Stringid
(
id
,
0
),
2
,
s
.
altop
)
aux
.
AddXyzProcedure
(
c
,
nil
,
12
,
2
,
s
.
mfilter
,
aux
.
Stringid
(
id
,
0
),
2
,
s
.
altop
)
if
not
s
.
global_check
then
s
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -44,6 +44,10 @@ function s.initial_effect(c)
e3
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e3
)
end
function
Auxiliary
.
XyzAlterFilter
(
c
,
alterf
,
xyzc
,
e
,
tp
,
alterop
)
return
alterf
(
c
,
e
,
tp
,
xyzc
)
and
c
:
IsCanBeXyzMaterial
(
xyzc
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
xyzc
)
>
0
and
Auxiliary
.
MustMaterialCheck
(
c
,
tp
,
EFFECT_MUST_BE_XMATERIAL
)
and
(
not
alterop
or
alterop
(
e
,
tp
,
0
,
c
))
end
function
s
.
chk
(
e
,
tp
,
eg
)
for
p
=
0
,
1
do
if
eg
:
IsExists
(
Card
.
IsSummonPlayer
,
1
,
nil
,
1
-
p
)
then
...
...
@@ -51,11 +55,9 @@ function s.chk(e,tp,eg)
end
end
end
function
s
.
mfilter
(
tp
)
return
function
(
c
)
function
s
.
mfilter
(
c
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
):
GetMaxGroup
(
Card
.
GetAttack
)
return
g
and
#
g
>
0
and
g
:
IsContains
(
c
)
end
end
function
s
.
altop
(
e
,
tp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
id
)
>
1
end
...
...
script/c101202055.lua
View file @
eb7363fc
...
...
@@ -30,8 +30,9 @@ end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
chk
if
tc
:
Is
RelateToEffect
(
e
)
and
tc
:
Is
Faceup
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
...
...
@@ -51,7 +52,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
chk
=
true
end
local
g
=
Duel
.
GetMatchingGroup
(
s
.
dfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
#
g
>
0
then
if
tc
:
IsFaceup
()
and
#
g
>
0
then
if
chk
then
Duel
.
BreakEffect
()
end
local
dg
=
Group
.
CreateGroup
()
for
sc
in
aux
.
Next
(
g
)
do
...
...
script/c101202075.lua
View file @
eb7363fc
...
...
@@ -23,7 +23,7 @@ end
function
s
.
mfilter
(
c
,
tp
,
ft
)
local
r
=
LOCATION_REASON_TOFIELD
if
not
c
:
IsControler
(
c
:
GetOwner
())
then
r
=
LOCATION_REASON_CONTROL
end
return
Duel
.
GetLocationCount
(
c
:
GetOwner
(),
LOCATION_SZONE
,
tp
,
r
)
>
0
return
c
:
GetOriginalType
()
&
TYPE_MONSTER
>
0
and
Duel
.
GetLocationCount
(
c
:
GetOwner
(),
LOCATION_SZONE
,
tp
,
r
)
>
0
end
function
s
.
sfilter
(
c
,
e
,
tp
)
return
c
:
GetOriginalType
()
&
TYPE_MONSTER
>
0
and
c
:
GetType
()
&
TYPE_CONTINUOUS
+
TYPE_SPELL
==
TYPE_CONTINUOUS
+
TYPE_SPELL
...
...
script/c101202077.lua
View file @
eb7363fc
...
...
@@ -51,7 +51,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e4
)
end
function
s
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x191
)
return
c
:
IsSetCard
(
0x191
)
and
c
:
IsFaceup
()
end
function
s
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
...
...
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