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
68dc718b
Commit
68dc718b
authored
Mar 24, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
101f5c62
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
28 deletions
+23
-28
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100265054.lua
script/c100265054.lua
+13
-13
script/c100338001.lua
script/c100338001.lua
+3
-9
script/c100424001.lua
script/c100424001.lua
+3
-2
script/c101101072.lua
script/c101101072.lua
+4
-4
No files found.
expansions/pre-release.cdb
View file @
68dc718b
No preview for this file type
script/c100265054.lua
View file @
68dc718b
...
@@ -25,29 +25,29 @@ function c100265054.efilter(e,te)
...
@@ -25,29 +25,29 @@ function c100265054.efilter(e,te)
local
c
=
te
:
GetHandler
()
local
c
=
te
:
GetHandler
()
return
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSetCard
(
0x4c
,
0x89
)
return
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSetCard
(
0x4c
,
0x89
)
end
end
function
c100265054
.
setfilter
(
c
,
tp
,
code
)
function
c100265054
.
setfilter
(
c
)
return
c
:
IsSetCard
(
0x4c
,
0x89
)
and
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSSetable
()
and
(
code
==
nil
or
c
:
GetCode
()
~=
code
)
return
c
:
IsSetCard
(
0x4c
,
0x89
)
and
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSSetable
()
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
Duel
.
IsExistingMatchingCard
(
c100265054
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
c
:
GetCode
()))
end
function
c100265054
.
fselect
(
g
)
return
g
:
GetClassCount
(
Card
.
GetLocation
)
==
g
:
GetCount
()
and
aux
.
dncheck
(
g
)
end
end
function
c100265054
.
setcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100265054
.
setcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c100265054
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100265054
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>=
2
and
Duel
.
IsExistingMatchingCard
(
c100265054
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c100265054
.
setfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
nil
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>=
2
and
g
:
CheckSubGroup
(
c100265054
.
fselect
,
2
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
nil
,
1
,
tp
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
nil
,
1
,
tp
,
0
)
end
end
function
c100265054
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100265054
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<
2
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<
2
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c100265054
.
setfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c100265054
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
,
nil
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c100265054
.
fselect
,
false
,
2
,
2
)
if
#
g1
<=
0
then
return
end
if
sg
and
#
sg
==
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
if
Duel
.
SSet
(
tp
,
sg
)
==
0
then
return
end
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c100265054
.
setfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
g1
:
GetFirst
(),
tp
,
g1
:
GetFirst
():
GetCode
())
local
tc
=
sg
:
GetFirst
()
g1
:
Merge
(
g2
)
if
#
g1
==
2
then
if
Duel
.
SSet
(
tp
,
g1
)
==
0
then
return
end
local
tc
=
g1
:
GetFirst
()
while
tc
do
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -56,7 +56,7 @@ function c100265054.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,7 +56,7 @@ function c100265054.setop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
LOCATION_REMOVED
)
e1
:
SetValue
(
LOCATION_REMOVED
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
tc
=
g1
:
GetNext
()
tc
=
sg
:
GetNext
()
end
end
end
end
end
end
script/c100338001.lua
View file @
68dc718b
...
@@ -30,7 +30,7 @@ function c100338001.initial_effect(c)
...
@@ -30,7 +30,7 @@ function c100338001.initial_effect(c)
e3
:
SetRange
(
LOCATION_HAND
)
e3
:
SetRange
(
LOCATION_HAND
)
e3
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e3
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e3
:
SetCountLimit
(
1
,
100338001
)
e3
:
SetCountLimit
(
1
,
100338001
)
e3
:
SetCondition
(
c100338001
.
atk
con
)
e3
:
SetCondition
(
aux
.
ds
con
)
e3
:
SetCost
(
c100338001
.
atkcost
)
e3
:
SetCost
(
c100338001
.
atkcost
)
e3
:
SetTarget
(
c100338001
.
atktg
)
e3
:
SetTarget
(
c100338001
.
atktg
)
e3
:
SetOperation
(
c100338001
.
atkop
)
e3
:
SetOperation
(
c100338001
.
atkop
)
...
@@ -47,19 +47,16 @@ function c100338001.initial_effect(c)
...
@@ -47,19 +47,16 @@ function c100338001.initial_effect(c)
e4
:
SetOperation
(
c100338001
.
thop
)
e4
:
SetOperation
(
c100338001
.
thop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c100338001
.
fselect
(
g
,
tp
)
return
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
end
function
c100338001
.
sprcon
(
e
,
c
)
function
c100338001
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
rg
=
Duel
.
GetReleaseGroup
(
tp
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
)
return
rg
:
CheckSubGroup
(
c100338001
.
fselect
,
3
,
3
,
tp
)
return
rg
:
CheckSubGroup
(
aux
.
mzctcheckrel
,
3
,
3
,
tp
)
end
end
function
c100338001
.
sprtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
function
c100338001
.
sprtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
rg
:
SelectSubGroup
(
tp
,
c100338001
.
fselect
,
true
,
3
,
3
,
tp
)
local
sg
=
rg
:
SelectSubGroup
(
tp
,
aux
.
mzctcheckrel
,
true
,
3
,
3
,
tp
)
if
sg
then
if
sg
then
sg
:
KeepAlive
()
sg
:
KeepAlive
()
e
:
SetLabelObject
(
sg
)
e
:
SetLabelObject
(
sg
)
...
@@ -71,9 +68,6 @@ function c100338001.sprop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -71,9 +68,6 @@ function c100338001.sprop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
g
:
DeleteGroup
()
g
:
DeleteGroup
()
end
end
function
c100338001
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
function
c100338001
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100338001
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
...
...
script/c100424001.lua
View file @
68dc718b
...
@@ -48,7 +48,7 @@ function c100424001.initial_effect(c)
...
@@ -48,7 +48,7 @@ function c100424001.initial_effect(c)
e6
:
SetType
(
EFFECT_TYPE_FIELD
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
)
e6
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e6
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e6
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_SET_AVAILABLE
)
e6
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e6
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e6
:
SetTarget
(
c100424001
.
tgtg
)
e6
:
SetTarget
(
c100424001
.
tgtg
)
e6
:
SetValue
(
aux
.
tgoval
)
e6
:
SetValue
(
aux
.
tgoval
)
...
@@ -57,6 +57,7 @@ function c100424001.initial_effect(c)
...
@@ -57,6 +57,7 @@ function c100424001.initial_effect(c)
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_FIELD
)
e7
:
SetType
(
EFFECT_TYPE_FIELD
)
e7
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e7
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e7
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e7
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e7
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e7
:
SetValue
(
c100424001
.
tgtg
)
e7
:
SetValue
(
c100424001
.
tgtg
)
...
@@ -100,5 +101,5 @@ function c100424001.ttop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -100,5 +101,5 @@ function c100424001.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
end
function
c100424001
.
tgtg
(
e
,
c
)
function
c100424001
.
tgtg
(
e
,
c
)
return
not
c
:
IsCode
(
100424001
)
and
c
:
IsFaceup
(
)
return
not
(
c
:
IsCode
(
100424001
)
and
c
:
IsFaceup
()
)
end
end
script/c101101072.lua
View file @
68dc718b
...
@@ -19,7 +19,7 @@ end
...
@@ -19,7 +19,7 @@ end
function
c101101072
.
desfilter
(
c
,
tp
,
g
)
function
c101101072
.
desfilter
(
c
,
tp
,
g
)
local
ft
=
math.min
((
Duel
.
GetMZoneCount
(
tp
,
c
)),
3
)
local
ft
=
math.min
((
Duel
.
GetMZoneCount
(
tp
,
c
)),
3
)
if
ft
>
1
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
if
ft
>
1
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x247
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x247
)
and
(
not
g
or
ft
>
0
and
g
:
CheckWithSumEqual
(
Card
.
GetLevel
,
9
,
1
,
ft
))
and
(
not
g
or
ft
>
0
and
g
:
CheckWithSumEqual
(
Card
.
GetLevel
,
9
,
1
,
ft
))
end
end
function
c101101072
.
spfilter
(
c
,
e
,
tp
)
function
c101101072
.
spfilter
(
c
,
e
,
tp
)
...
@@ -28,7 +28,7 @@ function c101101072.spfilter(c,e,tp)
...
@@ -28,7 +28,7 @@ function c101101072.spfilter(c,e,tp)
end
end
function
c101101072
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101101072
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c101101072
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c101101072
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
g1
=
Duel
.
GetMatchingGroup
(
c101101072
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
tp
,
g
)
local
g1
=
Duel
.
GetMatchingGroup
(
c101101072
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
tp
)
local
b1
=
Duel
.
IsExistingMatchingCard
(
c101101072
.
rmfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_ONFIELD
,
0
,
1
,
nil
)
local
b1
=
Duel
.
IsExistingMatchingCard
(
c101101072
.
rmfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_ONFIELD
,
0
,
1
,
nil
)
local
b2
=
g
:
GetCount
()
>
0
and
Duel
.
IsExistingMatchingCard
(
c101101072
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
,
g
)
local
b2
=
g
:
GetCount
()
>
0
and
Duel
.
IsExistingMatchingCard
(
c101101072
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
,
g
)
if
chk
==
0
then
return
b1
or
b2
end
if
chk
==
0
then
return
b1
or
b2
end
...
@@ -75,10 +75,10 @@ function c101101072.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,10 +75,10 @@ function c101101072.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
HintSelection
(
dg
)
Duel
.
HintSelection
(
dg
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
0
then
local
ft
=
math.min
((
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)),
3
)
local
ft
=
math.min
((
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)),
3
)
if
ft
>
1
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
g
=
Duel
.
GetMatchingGroup
(
c101101072
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
g
=
Duel
.
GetMatchingGroup
(
c101101072
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
ft
>
0
and
g
:
GetCount
()
>
0
then
if
ft
>
0
and
g
:
CheckWithSumEqual
(
Card
.
GetLevel
,
9
,
1
,
ft
)
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
ft
>
1
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c101101072
.
spcheck
,
false
,
1
,
ft
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c101101072
.
spcheck
,
false
,
1
,
ft
)
if
sg
then
if
sg
then
...
...
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