Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
md-prerelease
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
yxli
md-prerelease
Commits
6669c66a
Commit
6669c66a
authored
Apr 04, 2025
by
yxli
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://code.moenext.com/beyondli/md-prerelease
parents
6c49e825
4780711c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
47 additions
and
51 deletions
+47
-51
script/c101208181.lua
script/c101208181.lua
+8
-7
script/c101208182.lua
script/c101208182.lua
+10
-4
script/c101208184.lua
script/c101208184.lua
+1
-1
script/c101208185.lua
script/c101208185.lua
+2
-2
script/c101208186.lua
script/c101208186.lua
+17
-30
script/c101208187.lua
script/c101208187.lua
+4
-4
script/c101208188.lua
script/c101208188.lua
+3
-2
script/c101208189.lua
script/c101208189.lua
+2
-1
No files found.
script/c101208181.lua
View file @
6669c66a
...
...
@@ -45,11 +45,12 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
s
.
rcheck
(
g
,
tp
,
lv
)
return
g
:
GetSum
(
Card
.
GetLevel
)
==
lv
and
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
function
s
.
rcheck
(
g
,
tp
,
lv
,
ec
)
return
g
:
GetSum
(
Card
.
GetLevel
)
==
lv
and
Duel
.
GetMZoneCount
(
tp
,
g
+
ec
)
>
0
and
Duel
.
CheckReleaseGroupEx
(
tp
,
Auxiliary
.
IsInGroup
,
#
g
,
REASON_COST
,
false
,
nil
,
g
)
end
function
s
.
cfilter2
(
c
)
return
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsReleasable
()
and
c
:
IsLevelAbove
(
1
)
function
s
.
cfilter2
(
c
,
tp
)
return
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsReleasable
()
and
c
:
IsLevelAbove
(
1
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
s
.
filter
(
c
,
e
,
tp
,
lvt
)
local
lv
=
c
:
GetLevel
()
...
...
@@ -74,10 +75,10 @@ function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsReleasable
()
or
not
c
:
IsRace
(
RACE_FAIRY
)
then
return
false
end
local
clv
=
c
:
GetLevel
()
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
s
.
cfilter2
,
c
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
s
.
cfilter2
,
c
,
tp
)
local
lvt
=
{}
for
lv
=
clv
,
12
do
if
lv
==
clv
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
or
rg
:
CheckSubGroup
(
s
.
rcheck
,
1
,
99
,
tp
,
lv
-
clv
)
then
if
lv
==
clv
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
or
rg
:
CheckSubGroup
(
s
.
rcheck
,
1
,
99
,
tp
,
lv
-
clv
,
c
)
then
lvt
[
lv
]
=
true
end
end
...
...
@@ -96,7 +97,7 @@ function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
local
tglv
=
Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
alvt
))
if
tglv
>
clv
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
rg
:
SelectSubGroup
(
tp
,
s
.
rcheck
,
false
,
1
,
99
,
tp
,
tglv
-
clv
)
+
c
local
sg
=
rg
:
SelectSubGroup
(
tp
,
s
.
rcheck
,
false
,
1
,
99
,
tp
,
tglv
-
clv
,
c
)
+
c
aux
.
UseExtraReleaseCount
(
sg
,
tp
)
Duel
.
Release
(
sg
,
REASON_COST
)
else
...
...
script/c101208182.lua
View file @
6669c66a
...
...
@@ -24,12 +24,18 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e2
)
end
function
s
.
filter
(
c
)
return
c
:
IsReleasable
()
and
c
:
IsRace
(
RACE_FAIRY
)
function
s
.
filter
(
c
,
tp
)
return
c
:
IsReleasable
()
and
c
:
IsRace
(
RACE_FAIRY
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
s
.
rcheck
(
g
,
tp
)
return
Duel
.
GetSZoneCount
(
tp
,
g
)
>
0
and
Duel
.
CheckReleaseGroupEx
(
tp
,
Auxiliary
.
IsInGroup
,
#
g
,
REASON_COST
,
true
,
nil
,
g
)
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
s
.
filter
,
3
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
s
.
filter
,
3
,
3
,
nil
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
,
true
,
REASON_COST
):
Filter
(
s
.
filter
,
nil
,
tp
)
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
s
.
rcheck
,
3
,
3
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
s
.
rcheck
,
false
,
3
,
3
,
tp
)
aux
.
UseExtraReleaseCount
(
g
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
s
.
stfilter
(
c
)
...
...
script/c101208184.lua
View file @
6669c66a
...
...
@@ -52,7 +52,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateTo
Effect
(
e
)
then
if
c
:
IsRelateTo
Chain
(
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
\ No newline at end of file
script/c101208185.lua
View file @
6669c66a
...
...
@@ -37,7 +37,7 @@ function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
s
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateTo
Effect
(
e
)
then
if
tc
:
IsRelateTo
Chain
(
)
then
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
...
...
@@ -51,7 +51,7 @@ end
function
s
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateTo
Effect
(
e
)
and
tc
:
IsCanBeDisabledByEffect
(
e
,
false
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateTo
Chain
(
)
and
tc
:
IsCanBeDisabledByEffect
(
e
,
false
)
then
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c101208186.lua
View file @
6669c66a
...
...
@@ -3,6 +3,7 @@ local s,id,o=GetID()
function
s
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_REMOVE
+
CATEGORY_TOGRAVE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -13,56 +14,42 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
and
not
Duel
.
CheckPhaseActivity
()
end
function
s
.
filter1
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsRace
(
RACE_FISH
)
and
(
c
:
IsAbleToGrave
()
and
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
c
)
or
c
:
IsAbleToRemove
()
and
Duel
.
IsExistingMatchingCard
(
s
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
1
,
c
))
function
s
.
filter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsRace
(
RACE_FISH
)
end
function
s
.
filter2
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsRace
(
RACE_FISH
)
and
c
:
IsAbleToGrave
()
end
function
s
.
filter3
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsRace
(
RACE_FISH
)
and
c
:
IsAbleToRemove
()
function
s
.
gcheck
(
g
)
return
#
g
==
2
and
(
g
:
FilterCount
(
Card
.
IsAbleToGrave
,
nil
)
==
2
or
g
:
FilterCount
(
Card
.
IsAbleToRemove
,
nil
)
==
2
)
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
end
local
dg
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
chk
==
0
then
return
dg
:
CheckSubGroup
(
s
.
gcheck
,
2
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
2
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
2
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
nil
,
1
-
tp
)
if
#
g
>
1
and
Duel
.
IsChainDisablable
(
0
)
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
id
,
0
))
then
if
#
g
>
1
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
id
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_REMOVE
)
local
tc
=
g
:
Select
(
1
-
tp
,
2
,
2
,
nil
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
NegateEffect
(
0
)
return
end
local
g1
=
Duel
.
GetMatchingGroup
(
s
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
nil
,
tp
)
if
g1
:
GetCount
()
>
0
then
local
dg
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
dg
:
CheckSubGroup
(
s
.
gcheck
,
2
,
2
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
sg1
=
g1
:
Select
(
tp
,
1
,
1
,
nil
)
if
sg1
:
GetFirst
():
IsAbleToGrave
()
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
sg2
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
sg1
:
GetFirst
())
sg1
:
Merge
(
sg2
)
if
not
sg1
:
GetFirst
():
IsAbleToRemove
()
or
not
sg2
:
GetFirst
():
IsAbleToRemove
()
or
Duel
.
SelectOption
(
tp
,
1191
,
1192
)
==
0
then
Duel
.
SendtoGrave
(
sg1
,
REASON_EFFECT
)
else
Duel
.
Remove
(
sg1
,
POS_FACEUP
,
REASON_EFFECT
)
end
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
sg2
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
sg1
:
GetFirst
())
sg1
:
Merge
(
sg2
)
local
sg1
=
dg
:
SelectSubGroup
(
tp
,
s
.
gcheck
,
false
,
2
,
2
)
if
sg1
:
GetFirst
():
IsAbleToGrave
()
and
not
sg1
:
GetFirst
():
IsAbleToRemove
()
or
Duel
.
SelectOption
(
tp
,
1191
,
1192
)
==
0
then
Duel
.
SendtoGrave
(
sg1
,
REASON_EFFECT
)
elseif
sg1
:
GetFirst
():
IsAbleToRemove
()
then
Duel
.
Remove
(
sg1
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
...
...
script/c101208187.lua
View file @
6669c66a
...
...
@@ -40,8 +40,9 @@ function s.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
s
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
e
:
GetHandler
(),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToChain
()
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
s
.
spfilter
(
c
,
e
,
tp
,
ec
)
...
...
@@ -66,8 +67,7 @@ function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
s
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
tc
:
IsType
(
TYPE_MONSTER
)
or
not
tc
:
IsRelateToChain
()
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
)
local
sc
=
g
:
GetFirst
()
...
...
script/c101208188.lua
View file @
6669c66a
--Sakra Vendirage
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
id
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
4
,
2
)
c
:
EnableReviveLimit
()
...
...
@@ -46,7 +47,7 @@ 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
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateTo
Effect
(
e
)
then
if
tc
:
IsRelateTo
Chain
()
and
aux
.
NecroValleyFilter
()(
tc
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
...
...
@@ -62,7 +63,7 @@ end
function
s
.
codeop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateTo
Effect
(
e
)
and
tc
:
IsFaceup
(
)
then
if
tc
:
IsRelateTo
Chain
()
and
tc
:
IsFaceup
()
and
tc
:
IsType
(
TYPE_MONSTER
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
...
...
script/c101208189.lua
View file @
6669c66a
...
...
@@ -17,6 +17,7 @@ function s.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetCost
(
s
.
spcost
)
e2
:
SetTarget
(
s
.
sptg
)
...
...
@@ -40,7 +41,7 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
PayLPCost
(
tp
,
800
)
end
function
s
.
spfilter
(
c
,
e
,
tp
)
return
not
c
:
IsCode
(
id
)
and
c
:
Is
Type
(
TYPE_CONTINUOUS
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsFaceupEx
()
return
not
c
:
IsCode
(
id
)
and
c
:
Is
AllTypes
(
TYPE_CONTINUOUS
+
TYPE_TRAP
)
and
c
:
IsFaceupEx
()
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
1000
,
1000
,
4
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
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