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
bda2366d
Commit
bda2366d
authored
Nov 27, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Auxiliary.TriamidSpSummonType
parent
60a23de3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
7 deletions
+21
-7
c64576557.lua
c64576557.lua
+5
-2
c72772445.lua
c72772445.lua
+5
-2
c96100333.lua
c96100333.lua
+4
-2
utility.lua
utility.lua
+7
-1
No files found.
c64576557.lua
View file @
bda2366d
...
...
@@ -62,7 +62,7 @@ function c64576557.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c64576557
.
desfilter
,
1
,
nil
,
tp
)
end
function
c64576557
.
spfilter
(
c
,
e
,
tp
,
eg
)
return
c
:
IsSetCard
(
0xe2
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
eg
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
c
:
GetCode
())
return
c
:
IsSetCard
(
0xe2
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
aux
.
TriamidSpSummonType
(
c
)
)
and
not
eg
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
c
:
GetCode
())
end
function
c64576557
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
@@ -78,6 +78,9 @@ function c64576557.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c64576557
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
g
)
if
tg
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
tg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
sc
=
tg
:
GetFirst
()
if
Duel
.
SpecialSummon
(
tg
,
0
,
tp
,
tp
,
false
,
aux
.
TriamidSpSummonType
(
sc
),
POS_FACEUP
)
and
aux
.
TriamidSpSummonType
(
sc
)
then
sc
:
CompleteProcedure
()
end
end
end
c72772445.lua
View file @
bda2366d
...
...
@@ -48,7 +48,7 @@ function c72772445.spcon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousLocation
(
LOCATION_FZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
function
c72772445
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xe2
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xe2
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
aux
.
TriamidSpSummonType
(
c
)
)
end
function
c72772445
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
@@ -60,6 +60,9 @@ function c72772445.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72772445
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
sc
=
g
:
GetFirst
()
if
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
aux
.
TriamidSpSummonType
(
sc
),
POS_FACEUP
)
and
aux
.
TriamidSpSummonType
(
sc
)
then
sc
:
CompleteProcedure
()
end
end
end
c96100333.lua
View file @
bda2366d
...
...
@@ -82,7 +82,7 @@ function c96100333.spcfilter2(c,sg)
return
sg
:
IsExists
(
aux
.
TRUE
,
1
,
c
)
end
function
c96100333
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_ROCK
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsRace
(
RACE_ROCK
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
aux
.
TriamidSpSummonType
(
c
)
,
POS_FACEUP_DEFENSE
)
end
function
c96100333
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c96100333
.
spfilter
(
chkc
,
e
,
tp
)
end
...
...
@@ -106,7 +106,9 @@ end
function
c96100333
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
if
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
aux
.
TriamidSpSummonType
(
tc
),
POS_FACEUP_DEFENSE
)
~=
0
and
aux
.
TriamidSpSummonType
(
tc
)
then
tc
:
CompleteProcedure
()
end
end
end
function
c96100333
.
tdcfilter1
(
c
,
cg
,
sg
)
...
...
utility.lua
View file @
bda2366d
...
...
@@ -926,13 +926,19 @@ end
function
Auxiliary
.
DrytronSpSummonType
(
c
)
return
c
:
IsType
(
TYPE_SPSUMMON
)
end
---The `nolimit` parameter for Special Summon effects of Dragon, Xyz monsters where Soul Drain Dragon is available
.
---The `nolimit` parameter for Special Summon effects of Dragon, Xyz monsters where Soul Drain Dragon is available
---(Soul Drain Dragon, Level 8/LIGHT/Dragon/4000/0)
---@param c Card
---@return boolean
function
Auxiliary
.
DragonXyzSpSummonType
(
c
)
return
c
:
GetOriginalCode
()
==
55735315
end
---The `nolimit` parameter for Special Summon effects of Triamid cards
---@param c Card
---@return boolean
function
Auxiliary
.
TriamidSpSummonType
(
c
)
return
c
:
IsType
(
TYPE_SPSUMMON
)
end
--additional destroy effect for the Labrynth field
function
Auxiliary
.
LabrynthDestroyOp
(
e
,
tp
,
res
)
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