Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
Vee4
ygopro-scripts-888
Commits
dfa0e49f
Commit
dfa0e49f
authored
Aug 14, 2022
by
mercury233
Committed by
GitHub
Aug 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 宝玉の氾濫 (#1932)
parent
e157e317
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
25 deletions
+27
-25
c72881007.lua
c72881007.lua
+27
-25
No files found.
c72881007.lua
View file @
dfa0e49f
...
...
@@ -11,45 +11,47 @@ function c72881007.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c72881007
.
costfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1034
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1034
)
and
c
:
IsAbleToGraveAsCost
()
and
c
:
GetSequence
()
<
5
end
function
c72881007
.
gcheck
(
g
,
tg
)
return
tg
:
FilterCount
(
aux
.
TRUE
,
g
)
>
0
end
function
c72881007
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c72881007
.
costfilter
,
tp
,
LOCATION_SZONE
,
0
,
4
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c72881007
.
costfilter
,
tp
,
LOCATION_SZONE
,
0
,
nil
)
local
tg
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
if
chk
==
0
then
return
g
:
CheckSubGroup
(
c72881007
.
gcheck
,
4
,
4
,
tg
)
end
local
sg
=
g
if
#
g
~=
4
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72881007
.
costfilter
,
tp
,
LOCATION_SZONE
,
0
,
4
,
4
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c72881007
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x1034
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
sg
=
g
:
SelectSubGroup
(
tp
,
c72881007
.
gcheck
,
false
,
4
,
4
,
tg
)
end
Duel
.
SendtoGrave
(
sg
,
REASON_COST
)
end
function
c72881007
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
1
then
return
Duel
.
IsExistingMatchingCard
(
c72881007
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
else
e
:
SetLabel
(
0
)
return
Duel
.
IsExistingMatchingCard
(
c72881007
.
filter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
end
e
:
SetLabel
(
0
)
local
tg
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
if
chk
==
0
then
return
e
:
IsCostChecked
()
or
#
tg
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
tg
,
#
tg
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
function
c72881007
.
ctfilter
(
c
,
tp
)
return
c
:
IsPreviousControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
end
function
c72881007
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x1034
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c72881007
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
g
=
Duel
.
GetOperatedGroup
()
local
tg
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
aux
.
ExceptThisCard
(
e
))
Duel
.
SendtoGrave
(
tg
,
REASON_EFFECT
)
local
g
=
Duel
.
GetOperatedGroup
()
local
ct
=
g
:
FilterCount
(
c72881007
.
ctfilter
,
nil
,
1
-
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
>
ct
then
ft
=
ct
end
if
ft
<=
0
then
return
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72881007
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
ft
,
ft
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c72881007
.
sp
filter
,
tp
,
LOCATION_GRAVE
,
0
,
ft
,
ft
,
nil
,
e
,
tp
)
if
s
g
:
GetCount
()
>
0
then
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
s
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
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