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
Reinen
ygopro-scripts
Commits
cc18ce51
Commit
cc18ce51
authored
Feb 21, 2020
by
mercury233
Committed by
GitHub
Feb 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Auxiliary.IsInGroup and Auxiliary.mzctcheckrel (#1344)
parent
117db756
Changes
23
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
44 additions
and
132 deletions
+44
-132
c10000.lua
c10000.lua
+1
-4
c12766474.lua
c12766474.lua
+2
-8
c26866984.lua
c26866984.lua
+2
-8
c27198001.lua
c27198001.lua
+2
-8
c40998517.lua
c40998517.lua
+2
-4
c41329458.lua
c41329458.lua
+2
-8
c45898858.lua
c45898858.lua
+2
-8
c46290741.lua
c46290741.lua
+2
-8
c47171541.lua
c47171541.lua
+2
-8
c47826112.lua
c47826112.lua
+2
-8
c54813225.lua
c54813225.lua
+1
-4
c54913680.lua
c54913680.lua
+2
-8
c63972571.lua
c63972571.lua
+1
-4
c66607691.lua
c66607691.lua
+2
-8
c720147.lua
c720147.lua
+2
-4
c72549351.lua
c72549351.lua
+2
-8
c744887.lua
c744887.lua
+2
-4
c76382116.lua
c76382116.lua
+1
-2
c77522571.lua
c77522571.lua
+1
-2
c79402185.lua
c79402185.lua
+1
-4
c88000953.lua
c88000953.lua
+2
-4
c96733134.lua
c96733134.lua
+2
-8
utility.lua
utility.lua
+6
-0
No files found.
c10000.lua
View file @
cc18ce51
...
...
@@ -26,10 +26,7 @@ function c10000.sumfilter(c)
end
function
c10000
.
fselect
(
g
,
tp
)
Duel
.
SetSelectedCard
(
g
)
if
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
and
g
:
CheckWithSumGreater
(
c10000
.
sumfilter
,
10000
)
then
Duel
.
SetSelectedCard
(
g
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
return
g
:
CheckWithSumGreater
(
c10000
.
sumfilter
,
10000
)
and
aux
.
mzctcheckrel
(
g
,
tp
)
end
function
c10000
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
c12766474.lua
View file @
cc18ce51
...
...
@@ -34,16 +34,10 @@ end
function
c12766474
.
relfilter
(
c
,
g
)
return
g
:
IsContains
(
c
)
end
function
c12766474
.
fgoal
(
sg
,
tp
)
if
sg
:
GetCount
()
>
0
and
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
then
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
end
function
c12766474
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
Card
.
IsAttribute
,
nil
,
ATTRIBUTE_DARK
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
12766474
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
and
rg
:
CheckSubGroup
(
c12766474
.
fgoa
l
,
1
,
#
rg
,
tp
)
end
and
rg
:
CheckSubGroup
(
aux
.
mzctcheckre
l
,
1
,
#
rg
,
tp
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
...
...
@@ -53,7 +47,7 @@ function c12766474.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
c12766474
.
fgoa
l
,
false
,
1
,
#
rg
,
tp
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
aux
.
mzctcheckre
l
,
false
,
1
,
#
rg
,
tp
)
e
:
SetLabel
(
g
:
GetCount
())
Duel
.
Release
(
g
,
REASON_COST
)
end
...
...
c26866984.lua
View file @
cc18ce51
...
...
@@ -21,17 +21,11 @@ end
function
c26866984
.
cfilter
(
c
,
tp
)
return
c
:
IsRace
(
RACE_FAIRY
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c26866984
.
fgoal
(
sg
,
tp
)
if
sg
:
GetCount
()
>
0
and
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
then
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
end
function
c26866984
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c26866984
.
cfilter
,
nil
,
tp
)
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
c26866984
.
fgoa
l
,
1
,
3
,
tp
)
end
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
aux
.
mzctcheckre
l
,
1
,
3
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
c26866984
.
fgoa
l
,
false
,
1
,
3
,
tp
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
aux
.
mzctcheckre
l
,
false
,
1
,
3
,
tp
)
e
:
SetLabel
(
Duel
.
Release
(
g
,
REASON_COST
))
end
function
c26866984
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c27198001.lua
View file @
cc18ce51
...
...
@@ -27,17 +27,11 @@ function c27198001.initial_effect(c)
e3
:
SetOperation
(
c27198001
.
operation
)
c
:
RegisterEffect
(
e3
)
end
function
c27198001
.
fgoal
(
sg
,
tp
)
if
sg
:
GetCount
()
>
0
and
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
then
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
end
function
c27198001
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
)
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
c27198001
.
fgoa
l
,
2
,
2
,
tp
)
end
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
aux
.
mzctcheckre
l
,
2
,
2
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
c27198001
.
fgoa
l
,
false
,
2
,
2
,
tp
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
aux
.
mzctcheckre
l
,
false
,
2
,
2
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c27198001
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c40998517.lua
View file @
cc18ce51
...
...
@@ -20,10 +20,8 @@ function c40998517.costfilter(c,tp)
and
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
c
)
end
function
c40998517
.
fselect
(
g
,
tp
)
if
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
g
:
GetCount
(),
g
)
then
Duel
.
SetSelectedCard
(
g
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
g
:
GetCount
(),
g
)
and
Duel
.
CheckReleaseGroup
(
tp
,
aux
.
IsInGroup
,
#
g
,
nil
,
g
)
end
function
c40998517
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c40998517
.
costfilter
,
1
,
nil
,
tp
)
end
...
...
c41329458.lua
View file @
cc18ce51
...
...
@@ -41,17 +41,11 @@ end
function
c41329458
.
rfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x101b
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c41329458
.
fgoal
(
sg
,
tp
)
if
sg
:
GetCount
()
>
0
and
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
then
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
end
function
c41329458
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c41329458
.
rfilter
,
nil
,
tp
)
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
c41329458
.
fgoa
l
,
2
,
2
,
tp
)
end
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
aux
.
mzctcheckre
l
,
2
,
2
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
c41329458
.
fgoa
l
,
false
,
2
,
2
,
tp
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
aux
.
mzctcheckre
l
,
false
,
2
,
2
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c41329458
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c45898858.lua
View file @
cc18ce51
...
...
@@ -14,18 +14,12 @@ c45898858.spchecks=aux.CreateChecks(Card.IsCode,{22587018,22587018,58071123})
function
c45898858
.
costfilter
(
c
,
tp
)
return
c
:
IsCode
(
22587018
,
58071123
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c45898858
.
fgoal
(
g
,
tp
)
if
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
then
Duel
.
SetSelectedCard
(
g
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
end
function
c45898858
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c45898858
.
costfilter
,
nil
,
tp
)
if
chk
==
0
then
return
g
:
CheckSubGroupEach
(
c45898858
.
spchecks
,
c45898858
.
fgoa
l
,
tp
)
end
if
chk
==
0
then
return
g
:
CheckSubGroupEach
(
c45898858
.
spchecks
,
aux
.
mzctcheckre
l
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
rg
=
g
:
SelectSubGroupEach
(
tp
,
c45898858
.
spchecks
,
false
,
c45898858
.
fgoa
l
,
tp
)
local
rg
=
g
:
SelectSubGroupEach
(
tp
,
c45898858
.
spchecks
,
false
,
aux
.
mzctcheckre
l
,
tp
)
Duel
.
Release
(
rg
,
REASON_COST
)
end
function
c45898858
.
filter
(
c
,
e
,
tp
)
...
...
c46290741.lua
View file @
cc18ce51
...
...
@@ -37,17 +37,11 @@ end
function
c46290741
.
rfilter
(
c
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c46290741
.
fgoal
(
sg
,
tp
)
if
sg
:
GetCount
()
>
0
and
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
then
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
end
function
c46290741
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c46290741
.
rfilter
,
nil
,
tp
)
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
c46290741
.
fgoa
l
,
2
,
2
,
tp
)
end
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
aux
.
mzctcheckre
l
,
2
,
2
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
c46290741
.
fgoa
l
,
false
,
2
,
2
,
tp
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
aux
.
mzctcheckre
l
,
false
,
2
,
2
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c46290741
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c47171541.lua
View file @
cc18ce51
...
...
@@ -16,18 +16,12 @@ end
function
c47171541
.
rfilter
(
c
,
tp
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c47171541
.
fgoal
(
sg
,
tp
)
if
sg
:
GetCount
()
>
0
and
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
then
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
end
function
c47171541
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c47171541
.
rfilter
,
nil
,
tp
)
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
c47171541
.
fgoa
l
,
2
,
2
,
tp
)
end
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
aux
.
mzctcheckre
l
,
2
,
2
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
c47171541
.
fgoa
l
,
false
,
2
,
2
,
tp
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
aux
.
mzctcheckre
l
,
false
,
2
,
2
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c47171541
.
spfilter
(
c
,
e
,
tp
)
...
...
c47826112.lua
View file @
cc18ce51
...
...
@@ -24,17 +24,11 @@ end
function
c47826112
.
cfilter
(
c
,
tp
)
return
c
:
IsLevelBelow
(
3
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c47826112
.
fgoal
(
sg
,
tp
)
if
sg
:
GetCount
()
>
0
and
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
then
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
end
function
c47826112
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c47826112
.
cfilter
,
nil
,
tp
)
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
c47826112
.
fgoa
l
,
3
,
3
,
tp
)
end
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
aux
.
mzctcheckre
l
,
3
,
3
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
c47826112
.
fgoa
l
,
false
,
3
,
3
,
tp
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
aux
.
mzctcheckre
l
,
false
,
3
,
3
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c47826112
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c54813225.lua
View file @
cc18ce51
...
...
@@ -14,10 +14,7 @@ function c54813225.initial_effect(c)
end
function
c54813225
.
relgoal
(
sg
,
tp
)
Duel
.
SetSelectedCard
(
sg
)
if
sg
:
CheckWithSumGreater
(
Card
.
GetLevel
,
3
)
and
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
then
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
return
sg
:
CheckWithSumGreater
(
Card
.
GetLevel
,
3
)
and
aux
.
mzctcheckrel
(
sg
,
tp
)
end
function
c54813225
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
Card
.
IsType
,
nil
,
TYPE_TOKEN
)
...
...
c54913680.lua
View file @
cc18ce51
...
...
@@ -13,18 +13,12 @@ end
function
c54913680
.
rfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
end
function
c54913680
.
fgoal
(
sg
,
tp
)
if
sg
:
GetCount
()
>
0
and
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
then
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
end
function
c54913680
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c54913680
.
rfilter
,
nil
)
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
c54913680
.
fgoa
l
,
2
,
2
,
tp
)
end
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
aux
.
mzctcheckre
l
,
2
,
2
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
rg
:
SelectSubGroup
(
tp
,
c54913680
.
fgoa
l
,
false
,
2
,
2
,
tp
)
local
sg
=
rg
:
SelectSubGroup
(
tp
,
aux
.
mzctcheckre
l
,
false
,
2
,
2
,
tp
)
Duel
.
Release
(
sg
,
REASON_COST
)
end
function
c54913680
.
spfilter
(
c
,
e
,
tp
)
...
...
c63972571.lua
View file @
cc18ce51
...
...
@@ -35,10 +35,7 @@ function c63972571.rfilter(c,tp)
end
function
c63972571
.
fselect
(
g
,
tp
)
Duel
.
SetSelectedCard
(
g
)
if
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
and
g
:
CheckWithSumGreater
(
Card
.
GetLevel
,
8
)
then
Duel
.
SetSelectedCard
(
g
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
return
g
:
CheckWithSumGreater
(
Card
.
GetLevel
,
8
)
and
aux
.
mzctcheckrel
(
g
,
tp
)
end
function
c63972571
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c63972571
.
rfilter
,
nil
,
tp
)
...
...
c66607691.lua
View file @
cc18ce51
...
...
@@ -13,18 +13,12 @@ end
function
c66607691
.
rfilter
(
c
,
tp
)
return
c
:
IsCode
(
70095154
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c66607691
.
fgoal
(
sg
,
tp
)
if
sg
:
GetCount
()
>
0
and
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
then
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
end
function
c66607691
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c66607691
.
rfilter
,
nil
,
tp
)
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
c66607691
.
fgoa
l
,
2
,
2
,
tp
)
end
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
aux
.
mzctcheckre
l
,
2
,
2
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
c66607691
.
fgoa
l
,
false
,
2
,
2
,
tp
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
aux
.
mzctcheckre
l
,
false
,
2
,
2
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c66607691
.
spfilter
(
c
,
e
,
tp
)
...
...
c720147.lua
View file @
cc18ce51
...
...
@@ -29,10 +29,8 @@ function c720147.matfilter2(c)
return
c
:
IsSetCard
(
0x134
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanOverlay
()
end
function
c720147
.
fselect
(
g
,
tp
)
if
Duel
.
IsExistingTarget
(
c720147
.
matfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
g
,
tp
,
g
)
then
Duel
.
SetSelectedCard
(
g
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
return
Duel
.
IsExistingTarget
(
c720147
.
matfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
g
,
tp
,
g
)
and
Duel
.
CheckReleaseGroup
(
tp
,
aux
.
IsInGroup
,
#
g
,
nil
,
g
)
end
function
c720147
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
g
=
e
:
GetLabelObject
()
...
...
c72549351.lua
View file @
cc18ce51
...
...
@@ -13,18 +13,12 @@ end
function
c72549351
.
rfilter
(
c
,
tp
)
return
c
:
IsRace
(
RACE_DRAGON
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c72549351
.
fgoal
(
sg
,
tp
)
if
sg
:
GetCount
()
>
0
and
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
then
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
end
function
c72549351
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c72549351
.
rfilter
,
nil
,
tp
)
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
c72549351
.
fgoa
l
,
2
,
2
,
tp
)
end
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
aux
.
mzctcheckre
l
,
2
,
2
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
c72549351
.
fgoa
l
,
false
,
2
,
2
,
tp
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
aux
.
mzctcheckre
l
,
false
,
2
,
2
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c72549351
.
spfilter
(
c
,
e
,
tp
)
...
...
c744887.lua
View file @
cc18ce51
...
...
@@ -20,10 +20,8 @@ function c744887.costfilter(c)
return
c
:
IsSetCard
(
0x134
)
or
c
:
IsRace
(
RACE_ROCK
)
end
function
c744887
.
fselect
(
g
,
tp
)
if
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
g
)
then
Duel
.
SetSelectedCard
(
g
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
g
)
and
Duel
.
CheckReleaseGroup
(
tp
,
aux
.
IsInGroup
,
#
g
,
nil
,
g
)
end
function
c744887
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c744887
.
costfilter
,
nil
)
...
...
c76382116.lua
View file @
cc18ce51
...
...
@@ -33,8 +33,7 @@ function c76382116.fselect(g,e,tp)
end
local
sg
=
Duel
.
GetMatchingGroup
(
c76382116
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
,
table.unpack
(
code
))
if
sg
:
GetClassCount
(
Card
.
GetCode
)
>=
g
:
GetCount
()
and
Duel
.
GetMZoneCount
(
tp
,
g
)
>=
g
:
GetCount
()
then
Duel
.
SetSelectedCard
(
g
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
return
Duel
.
CheckReleaseGroup
(
tp
,
aux
.
IsInGroup
,
#
g
,
nil
,
g
)
else
return
false
end
end
function
c76382116
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c77522571.lua
View file @
cc18ce51
...
...
@@ -98,8 +98,7 @@ function c77522571.costfilter(c)
end
function
c77522571
.
fgoal
(
sg
,
e
,
tp
)
local
lv
=
sg
:
GetSum
(
Card
.
GetLevel
)
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
return
Duel
.
CheckReleaseGroup
(
tp
,
aux
.
IsInGroup
,
#
sg
,
nil
,
sg
)
and
Duel
.
IsExistingMatchingCard
(
c77522571
.
spfilter3
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
lv
,
sg
)
end
function
c77522571
.
spfilter3
(
c
,
e
,
tp
,
lv
,
sg
)
...
...
c79402185.lua
View file @
cc18ce51
...
...
@@ -27,10 +27,7 @@ function c79402185.costfilter(c,tp)
return
c
:
IsCode
(
43017476
,
58071123
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c79402185
.
fgoal
(
g
,
tp
)
if
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
then
Duel
.
SetSelectedCard
(
g
)
return
Duel
.
CheckReleaseGroupEx
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
return
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
and
Duel
.
CheckReleaseGroupEx
(
tp
,
aux
.
IsInGroup
,
#
g
,
nil
,
g
)
end
function
c79402185
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
...
...
c88000953.lua
View file @
cc18ce51
...
...
@@ -56,10 +56,8 @@ function c88000953.desfilter(c,g)
return
not
ec
or
not
g
:
IsContains
(
ec
)
end
function
c88000953
.
fselect
(
g
,
tp
)
if
Duel
.
IsExistingMatchingCard
(
c88000953
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
g
:
GetCount
(),
g
,
g
)
then
Duel
.
SetSelectedCard
(
g
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
return
Duel
.
IsExistingMatchingCard
(
c88000953
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
g
:
GetCount
(),
g
,
g
)
and
Duel
.
CheckReleaseGroup
(
tp
,
aux
.
IsInGroup
,
#
g
,
nil
,
g
)
end
function
c88000953
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lg
=
e
:
GetHandler
():
GetLinkedGroup
()
...
...
c96733134.lua
View file @
cc18ce51
...
...
@@ -70,17 +70,11 @@ end
function
c96733134
.
rfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x20f8
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c96733134
.
fgoal
(
sg
,
tp
)
if
sg
:
GetCount
()
>
0
and
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
then
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
end
function
c96733134
.
hspcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c96733134
.
rfilter
,
nil
,
tp
)
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
c96733134
.
fgoa
l
,
2
,
2
,
tp
)
end
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
aux
.
mzctcheckre
l
,
2
,
2
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
c96733134
.
fgoa
l
,
false
,
2
,
2
,
tp
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
aux
.
mzctcheckre
l
,
false
,
2
,
2
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c96733134
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
utility.lua
View file @
cc18ce51
...
...
@@ -2011,6 +2011,9 @@ function Auxiliary.IsCounterAdded(c,counter)
end
return
false
end
function
Auxiliary
.
IsInGroup
(
c
,
g
)
return
g
:
IsContains
(
c
)
end
--return the column of card c (from the viewpoint of p)
function
Auxiliary
.
GetColumn
(
c
,
p
)
local
seq
=
c
:
GetSequence
()
...
...
@@ -2258,6 +2261,9 @@ end
function
Auxiliary
.
mzctcheck
(
g
,
tp
)
return
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
end
function
Auxiliary
.
mzctcheckrel
(
g
,
tp
)
return
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
and
Duel
.
CheckReleaseGroup
(
tp
,
Auxiliary
.
IsInGroup
,
#
g
,
nil
,
g
)
end
--used for "except this card"
function
Auxiliary
.
ExceptThisCard
(
e
)
local
c
=
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