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
233f315f
Commit
233f315f
authored
Sep 11, 2017
by
EerieCode
Committed by
mercury233
Sep 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed "Subterror Nemesis Warrior" (#926)
parent
8e9b856c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
c16719140.lua
c16719140.lua
+18
-15
No files found.
c16719140.lua
View file @
233f315f
--
Subterror Nemesis Warrior
--
サブテラーの戦士
function
c16719140
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -30,18 +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
.
rfilter
(
c
)
return
c
:
GetOriginalLevel
()
>
0
end
function
c16719140
.
costfilter
(
c
,
e
,
tp
,
mg
,
rlv
)
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
local
lv
=
c
:
GetLevel
()
-
rlv
return
lv
>
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_DEFENSE
))
and
mg
:
CheckWithSumGreater
(
Card
.
GetOriginalLevel
,
lv
)
return
mg
:
GetCount
()
>
0
and
(
lv
<=
0
or
mg
:
CheckWithSumGreater
(
Card
.
GetOriginalLevel
,
lv
))
end
function
c16719140
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c16719140
.
rfilter
,
nil
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
Card
.
IsLevelAbove
,
nil
,
1
)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
...
...
@@ -63,20 +60,26 @@ function c16719140.spop1(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<-
1
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c16719140
.
rfilter
,
nil
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
Card
.
IsLevelAbove
,
nil
,
1
)
if
not
mg
:
IsContains
(
c
)
then
return
end
mg
:
RemoveCard
(
c
)
if
mg
:
GetCount
()
==
0
then
return
end
local
spos
=
0
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
then
spos
=
spos
+
POS_FACEUP_DEFENSE
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN
_DEFENSE
)
then
spos
=
spos
+
POS_FACEDOWN_DEFENSE
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
spos
=
spos
+
POS_FACEUP_DEFENSE
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN
)
then
spos
=
spos
+
POS_FACEDOWN_DEFENSE
end
if
spos
~=
0
then
local
g
=
mg
:
SelectWithSumGreater
(
tp
,
Card
.
GetOriginalLevel
,
tc
:
GetLevel
()
-
c
:
GetOriginalLevel
())
local
lv
=
tc
:
GetLevel
()
-
c
:
GetOriginalLevel
()
local
g
=
Group
.
CreateGroup
()
if
lv
<=
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
g
=
mg
:
Select
(
tp
,
1
,
1
,
nil
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
g
=
mg
:
SelectWithSumGreater
(
tp
,
Card
.
GetOriginalLevel
,
lv
)
end
g
:
AddCard
(
c
)
if
g
:
GetCount
()
>=
2
and
Duel
.
Release
(
g
,
REASON_EFFECT
)
~=
0
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
spos
)
if
tc
:
IsFacedown
()
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
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