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
0231f95a
Commit
0231f95a
authored
Nov 18, 2023
by
Chen Bill
Committed by
GitHub
Nov 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drytron monster: add revive limit (#2213)
parent
cf706700
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
6 deletions
+29
-6
c22420202.lua
c22420202.lua
+1
-0
c33543890.lua
c33543890.lua
+1
-0
c60037599.lua
c60037599.lua
+1
-0
c94187078.lua
c94187078.lua
+5
-2
c95209656.lua
c95209656.lua
+8
-2
c96026108.lua
c96026108.lua
+1
-0
c97148796.lua
c97148796.lua
+1
-0
utility.lua
utility.lua
+11
-2
No files found.
c22420202.lua
View file @
0231f95a
--竜輝巧-ルタδ
--竜輝巧-ルタδ
function
c22420202
.
initial_effect
(
c
)
function
c22420202
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--spsummon condition
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c33543890.lua
View file @
0231f95a
--竜輝巧-ラスβ
--竜輝巧-ラスβ
function
c33543890
.
initial_effect
(
c
)
function
c33543890
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--spsummon condition
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c60037599.lua
View file @
0231f95a
--竜輝巧-エルγ
--竜輝巧-エルγ
function
c60037599
.
initial_effect
(
c
)
function
c60037599
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--spsummon condition
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c94187078.lua
View file @
0231f95a
...
@@ -38,7 +38,7 @@ function c94187078.splimit(e,c,sump,sumtype,sumpos,targetp,se)
...
@@ -38,7 +38,7 @@ function c94187078.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return
c
:
IsSummonableCard
()
return
c
:
IsSummonableCard
()
end
end
function
c94187078
.
filter
(
c
,
e
,
tp
)
function
c94187078
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x154
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x154
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
aux
.
DrytronSpSummonType
(
c
)
)
end
end
function
c94187078
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c94187078
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
@@ -50,7 +50,7 @@ function c94187078.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,7 +50,7 @@ function c94187078.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c94187078
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c94187078
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
tc
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
aux
.
DrytronSpSummonType
(
tc
)
,
POS_FACEUP
)
then
tc
:
RegisterFlagEffect
(
94187078
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
tc
:
RegisterFlagEffect
(
94187078
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
@@ -61,6 +61,9 @@ function c94187078.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -61,6 +61,9 @@ function c94187078.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCondition
(
c94187078
.
descon
)
e1
:
SetCondition
(
c94187078
.
descon
)
e1
:
SetOperation
(
c94187078
.
desop
)
e1
:
SetOperation
(
c94187078
.
desop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
if
aux
.
DrytronSpSummonType
(
tc
)
then
tc
:
CompleteProcedure
()
end
end
end
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
...
...
c95209656.lua
View file @
0231f95a
...
@@ -87,7 +87,8 @@ function c95209656.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -87,7 +87,8 @@ function c95209656.spcon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsSummonType
(
SUMMON_TYPE_RITUAL
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsSummonType
(
SUMMON_TYPE_RITUAL
)
end
end
function
c95209656
.
spfilter
(
c
,
e
,
tp
)
function
c95209656
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x154
)
and
c
:
IsAttackAbove
(
1
)
and
not
c
:
IsCode
(
95209656
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x154
)
and
c
:
IsAttackAbove
(
1
)
and
not
c
:
IsCode
(
95209656
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
aux
.
DrytronSpSummonType
(
c
))
end
end
function
c95209656
.
fselect
(
g
)
function
c95209656
.
fselect
(
g
)
return
g
:
GetSum
(
Card
.
GetAttack
)
==
4000
return
g
:
GetSum
(
Card
.
GetAttack
)
==
4000
...
@@ -120,6 +121,11 @@ function c95209656.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -120,6 +121,11 @@ function c95209656.spop(e,tp,eg,ep,ev,re,r,rp)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c95209656
.
fselect
,
false
,
1
,
ct
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c95209656
.
fselect
,
false
,
1
,
ct
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
sg
then
if
sg
then
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
for
tc
in
aux
.
Next
(
sg
)
do
if
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
aux
.
DrytronSpSummonType
(
tc
),
POS_FACEUP
)
and
aux
.
DrytronSpSummonType
(
tc
)
then
tc
:
CompleteProcedure
()
end
end
Duel
.
SpecialSummonComplete
()
end
end
end
end
c96026108.lua
View file @
0231f95a
--竜輝巧-アルζ
--竜輝巧-アルζ
function
c96026108
.
initial_effect
(
c
)
function
c96026108
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--spsummon condition
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c97148796.lua
View file @
0231f95a
--竜輝巧-バンα
--竜輝巧-バンα
function
c97148796
.
initial_effect
(
c
)
function
c97148796
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--spsummon condition
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
utility.lua
View file @
0231f95a
...
@@ -905,7 +905,7 @@ function Auxiliary.DrytronSpSummonTarget(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -905,7 +905,7 @@ function Auxiliary.DrytronSpSummonTarget(e,tp,eg,ep,ev,re,r,rp,chk)
local
res
=
e
:
GetLabel
()
==
100
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
res
=
e
:
GetLabel
()
==
100
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
if
chk
==
0
then
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
return
res
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
fals
e
,
POS_FACEUP_DEFENSE
)
return
res
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
tru
e
,
POS_FACEUP_DEFENSE
)
end
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
@@ -914,9 +914,18 @@ function Auxiliary.DrytronSpSummonOperation(func)
...
@@ -914,9 +914,18 @@ function Auxiliary.DrytronSpSummonOperation(func)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
~=
0
then
func
(
e
,
tp
)
end
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
true
,
POS_FACEUP_DEFENSE
)
~=
0
then
c
:
CompleteProcedure
()
func
(
e
,
tp
)
end
end
end
end
end
---Return the type of `nolimit` in Duel.SpecialSummon()
---@param c Card
---@return boolean
function
Auxiliary
.
DrytronSpSummonType
(
c
)
return
c
:
IsType
(
TYPE_SPSUMMON
)
end
--additional destroy effect for the Labrynth field
--additional destroy effect for the Labrynth field
function
Auxiliary
.
LabrynthDestroyOp
(
e
,
tp
,
res
)
function
Auxiliary
.
LabrynthDestroyOp
(
e
,
tp
,
res
)
local
c
=
e
:
GetHandler
()
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