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
八宫一月
ygopro-scripts
Commits
0452fde6
Commit
0452fde6
authored
Sep 01, 2019
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
missing check
parent
27fa54d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
c16719140.lua
c16719140.lua
+9
-7
No files found.
c16719140.lua
View file @
0452fde6
...
...
@@ -30,13 +30,15 @@ function c16719140.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabel
(
100
)
if
chk
==
0
then
return
true
end
end
function
c16719140
.
costfilter
(
c
,
e
,
tp
,
mg
,
rlv
)
function
c16719140
.
costfilter
(
c
,
e
,
tp
,
mg
,
rlv
,
mc
)
if
not
(
c
:
IsLevelAbove
(
0
)
and
c
:
IsSetCard
(
0xed
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGraveAsCost
()
and
(
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN
)))
then
return
false
end
return
mg
:
CheckSubGroup
(
c16719140
.
fselect
,
1
,
c
:
GetLevel
(),
tp
,
c
:
GetLevel
()
-
rlv
)
return
mg
:
CheckSubGroup
(
c16719140
.
fselect
,
1
,
c
:
GetLevel
(),
tp
,
c
:
GetLevel
()
-
rlv
,
mc
)
end
function
c16719140
.
fselect
(
g
,
tp
,
lv
)
if
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
then
function
c16719140
.
fselect
(
g
,
tp
,
lv
,
mc
)
local
mg
=
g
:
Clone
()
mg
:
AddCard
(
mc
)
if
Duel
.
GetMZoneCount
(
tp
,
mg
)
>
0
then
if
lv
<=
0
then
return
g
:
GetCount
()
==
1
else
...
...
@@ -55,11 +57,11 @@ function c16719140.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
if
not
c
:
IsLevelAbove
(
1
)
or
not
c
:
IsReleasableByEffect
()
or
mg
:
GetCount
()
==
0
then
return
false
end
return
Duel
.
IsExistingMatchingCard
(
c16719140
.
costfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
mg
,
c
:
GetOriginalLevel
())
return
Duel
.
IsExistingMatchingCard
(
c16719140
.
costfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
mg
,
c
:
GetOriginalLevel
()
,
c
)
end
e
:
SetLabel
(
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c16719140
.
costfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
,
c
:
GetOriginalLevel
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c16719140
.
costfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
,
c
:
GetOriginalLevel
()
,
c
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
@@ -75,7 +77,7 @@ function c16719140.spop1(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN
)
then
spos
=
spos
+
POS_FACEDOWN_DEFENSE
end
if
spos
~=
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
mg
:
SelectSubGroup
(
tp
,
c16719140
.
fselect
,
false
,
1
,
tc
:
GetLevel
(),
tp
,
tc
:
GetLevel
()
-
c
:
GetOriginalLevel
())
local
g
=
mg
:
SelectSubGroup
(
tp
,
c16719140
.
fselect
,
false
,
1
,
tc
:
GetLevel
(),
tp
,
tc
:
GetLevel
()
-
c
:
GetOriginalLevel
()
,
c
)
if
g
and
g
:
GetCount
()
>
0
then
g
:
AddCard
(
c
)
if
Duel
.
Release
(
g
,
REASON_EFFECT
)
~=
0
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