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
1a2cfa93
Commit
1a2cfa93
authored
May 26, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fix format
parent
061e8e38
Changes
36
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
156 additions
and
157 deletions
+156
-157
c14017402.lua
c14017402.lua
+1
-1
c15605085.lua
c15605085.lua
+1
-1
c20765952.lua
c20765952.lua
+1
-1
c24857466.lua
c24857466.lua
+1
-1
c28348537.lua
c28348537.lua
+1
-1
c29267084.lua
c29267084.lua
+1
-1
c30241314.lua
c30241314.lua
+2
-2
c30907810.lua
c30907810.lua
+1
-1
c31849106.lua
c31849106.lua
+1
-1
c32543380.lua
c32543380.lua
+1
-1
c34479658.lua
c34479658.lua
+1
-1
c36354007.lua
c36354007.lua
+1
-1
c3825890.lua
c3825890.lua
+1
-1
c38296564.lua
c38296564.lua
+1
-1
c38412161.lua
c38412161.lua
+1
-1
c38975369.lua
c38975369.lua
+1
-1
c39512984.lua
c39512984.lua
+1
-1
c4068622.lua
c4068622.lua
+1
-1
c42880485.lua
c42880485.lua
+1
-1
c43237273.lua
c43237273.lua
+1
-1
c5008836.lua
c5008836.lua
+1
-1
c55690251.lua
c55690251.lua
+1
-1
c61231400.lua
c61231400.lua
+1
-1
c64659851.lua
c64659851.lua
+1
-1
c65079854.lua
c65079854.lua
+88
-88
c6614221.lua
c6614221.lua
+1
-1
c75285069.lua
c75285069.lua
+1
-1
c78651105.lua
c78651105.lua
+1
-1
c80344569.lua
c80344569.lua
+1
-1
c82913020.lua
c82913020.lua
+0
-1
c84058253.lua
c84058253.lua
+1
-1
c94463200.lua
c94463200.lua
+1
-1
c95701283.lua
c95701283.lua
+1
-1
c96631852.lua
c96631852.lua
+1
-1
c98884569.lua
c98884569.lua
+34
-34
utility.lua
utility.lua
+1
-1
No files found.
c14017402.lua
View file @
1a2cfa93
...
@@ -61,7 +61,7 @@ function c14017402.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -61,7 +61,7 @@ function c14017402.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
~=
1
then
return
end
if
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
~=
1
then
return
end
local
code
=
tc
:
GetCode
()
local
code
=
tc
:
GetCode
()
local
reset_flag
=
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
local
reset_flag
=
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
c
:
CopyEffect
(
code
,
reset_flag
,
1
)
c
:
CopyEffect
(
code
,
reset_flag
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
...
...
c15605085.lua
View file @
1a2cfa93
...
@@ -36,7 +36,7 @@ function c15605085.otop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -36,7 +36,7 @@ function c15605085.otop(e,tp,eg,ep,ev,re,r,rp,c)
local
mg
=
Duel
.
GetMatchingGroup
(
c15605085
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
local
mg
=
Duel
.
GetMatchingGroup
(
c15605085
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
c
:
SetMaterial
(
sg
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
end
function
c15605085
.
cfilter
(
c
,
tp
)
function
c15605085
.
cfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x2
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
return
c
:
IsSetCard
(
0x2
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
...
...
c20765952.lua
View file @
1a2cfa93
...
@@ -69,5 +69,5 @@ function c20765952.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,5 +69,5 @@ function c20765952.descon(e,tp,eg,ep,ev,re,r,rp)
return
tc
and
eg
:
IsContains
(
tc
)
return
tc
and
eg
:
IsContains
(
tc
)
end
end
function
c20765952
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20765952
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
c24857466.lua
View file @
1a2cfa93
...
@@ -72,7 +72,7 @@ function c24857466.spfilter(c,e,tp)
...
@@ -72,7 +72,7 @@ function c24857466.spfilter(c,e,tp)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c24857466
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c24857466
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
if
chkc
then
if
ev
==
TYPE_TRAP
then
if
ev
==
TYPE_TRAP
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsOnField
()
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsOnField
()
elseif
ev
==
TYPE_MONSTER
then
elseif
ev
==
TYPE_MONSTER
then
...
...
c28348537.lua
View file @
1a2cfa93
...
@@ -30,7 +30,7 @@ function c28348537.otop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -30,7 +30,7 @@ function c28348537.otop(e,tp,eg,ep,ev,re,r,rp,c)
local
mg
=
Duel
.
GetMatchingGroup
(
c28348537
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
local
mg
=
Duel
.
GetMatchingGroup
(
c28348537
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
c
:
SetMaterial
(
sg
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
end
function
c28348537
.
actlimit
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c28348537
.
actlimit
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c29267084.lua
View file @
1a2cfa93
...
@@ -55,5 +55,5 @@ function c29267084.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,5 +55,5 @@ function c29267084.descon(e,tp,eg,ep,ev,re,r,rp)
return
tc
and
eg
:
IsContains
(
tc
)
return
tc
and
eg
:
IsContains
(
tc
)
end
end
function
c29267084
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29267084
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
c30241314.lua
View file @
1a2cfa93
...
@@ -28,10 +28,10 @@ function c30241314.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -28,10 +28,10 @@ function c30241314.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
cg
=
Duel
.
GetMatchingGroup
(
c30241314
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
local
cg
=
Duel
.
GetMatchingGroup
(
c30241314
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
if
cg
:
GetCount
()
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
if
cg
:
GetCount
()
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
30241314
,
0
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
30241314
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
cg
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
cg
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
end
end
c30907810.lua
View file @
1a2cfa93
...
@@ -64,7 +64,7 @@ function c30907810.otop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -64,7 +64,7 @@ function c30907810.otop(e,tp,eg,ep,ev,re,r,rp,c)
local
mg
=
Duel
.
GetMatchingGroup
(
c30907810
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
local
mg
=
Duel
.
GetMatchingGroup
(
c30907810
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
c
:
SetMaterial
(
sg
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
end
function
c30907810
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c30907810
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
GetHandler
():
IsSetCard
(
0x108
)
and
rp
==
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
if
re
:
GetHandler
():
IsSetCard
(
0x108
)
and
rp
==
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
...
...
c31849106.lua
View file @
1a2cfa93
...
@@ -13,7 +13,7 @@ function c31849106.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -13,7 +13,7 @@ function c31849106.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e1
:
SetTarget
(
c31849106
.
rmtarget
)
e1
:
SetTarget
(
c31849106
.
rmtarget
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetValue
(
LOCATION_REMOVED
)
e1
:
SetValue
(
LOCATION_REMOVED
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
...
c32543380.lua
View file @
1a2cfa93
...
@@ -44,7 +44,7 @@ end
...
@@ -44,7 +44,7 @@ end
function
c32543380
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c32543380
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c32543380
.
spfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c32543380
.
spfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
end
function
c32543380
.
atklimit
(
e
,
c
)
function
c32543380
.
atklimit
(
e
,
c
)
return
c
==
e
:
GetHandler
()
return
c
==
e
:
GetHandler
()
...
...
c34479658.lua
View file @
1a2cfa93
...
@@ -54,7 +54,7 @@ function c34479658.otop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -54,7 +54,7 @@ function c34479658.otop(e,tp,eg,ep,ev,re,r,rp,c)
local
mg
=
Duel
.
GetMatchingGroup
(
c34479658
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
local
mg
=
Duel
.
GetMatchingGroup
(
c34479658
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
c
:
SetMaterial
(
sg
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
end
function
c34479658
.
tkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c34479658
.
tkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c36354007.lua
View file @
1a2cfa93
...
@@ -29,7 +29,7 @@ function c36354007.ttop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -29,7 +29,7 @@ function c36354007.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
3
,
3
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
3
,
3
)
c
:
SetMaterial
(
g
)
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
end
function
c36354007
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c36354007
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_ADVANCE
+
SUMMON_VALUE_SELF
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_ADVANCE
+
SUMMON_VALUE_SELF
...
...
c3825890.lua
View file @
1a2cfa93
...
@@ -40,7 +40,7 @@ function c3825890.otop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -40,7 +40,7 @@ function c3825890.otop(e,tp,eg,ep,ev,re,r,rp,c)
local
mg
=
Duel
.
GetMatchingGroup
(
c3825890
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
local
mg
=
Duel
.
GetMatchingGroup
(
c3825890
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
c
:
SetMaterial
(
sg
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
end
function
c3825890
.
filter
(
c
)
function
c3825890
.
filter
(
c
)
return
c
:
IsSetCard
(
0x2e
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x2e
)
and
c
:
IsType
(
TYPE_MONSTER
)
...
...
c38296564.lua
View file @
1a2cfa93
...
@@ -96,5 +96,5 @@ function c38296564.descon2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -96,5 +96,5 @@ function c38296564.descon2(e,tp,eg,ep,ev,re,r,rp)
return
tc
and
eg
:
IsContains
(
tc
)
return
tc
and
eg
:
IsContains
(
tc
)
end
end
function
c38296564
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c38296564
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
c38412161.lua
View file @
1a2cfa93
...
@@ -27,7 +27,7 @@ function c38412161.remcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -27,7 +27,7 @@ function c38412161.remcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c38412161
.
remfilter
(
c
)
function
c38412161
.
remfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToRemove
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToRemove
()
end
end
function
c38412161
.
remtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c38412161
.
remtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c38412161
.
remfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c38412161
.
remfilter
(
chkc
)
end
...
...
c38975369.lua
View file @
1a2cfa93
...
@@ -37,6 +37,6 @@ function c38975369.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,6 +37,6 @@ function c38975369.thop(e,tp,eg,ep,ev,re,r,rp)
c
=
Duel
.
GetAttackTarget
()
c
=
Duel
.
GetAttackTarget
()
if
c
~=
nil
and
c
:
IsRelateToBattle
()
then
g
:
AddCard
(
c
)
end
if
c
~=
nil
and
c
:
IsRelateToBattle
()
then
g
:
AddCard
(
c
)
end
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
end
end
end
end
c39512984.lua
View file @
1a2cfa93
...
@@ -58,6 +58,6 @@ function c39512984.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,6 +58,6 @@ function c39512984.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetValue
(
code
)
e1
:
SetValue
(
code
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
c
:
CopyEffect
(
code
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
1
)
c
:
CopyEffect
(
code
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
1
)
end
end
end
end
c4068622.lua
View file @
1a2cfa93
...
@@ -69,7 +69,7 @@ function c4068622.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,7 +69,7 @@ function c4068622.operation(e,tp,eg,ep,ev,re,r,rp)
local
code
=
tc
:
GetOriginalCode
()
local
code
=
tc
:
GetOriginalCode
()
local
ba
=
tc
:
GetBaseAttack
()
local
ba
=
tc
:
GetBaseAttack
()
local
reset_flag
=
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
local
reset_flag
=
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
c
:
CopyEffect
(
code
,
reset_flag
,
1
)
c
:
CopyEffect
(
code
,
reset_flag
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
...
...
c42880485.lua
View file @
1a2cfa93
...
@@ -103,5 +103,5 @@ function c42880485.otop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -103,5 +103,5 @@ function c42880485.otop(e,tp,eg,ep,ev,re,r,rp,c)
local
mg
=
Duel
.
GetMatchingGroup
(
c42880485
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
local
mg
=
Duel
.
GetMatchingGroup
(
c42880485
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
c
:
SetMaterial
(
sg
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
end
c43237273.lua
View file @
1a2cfa93
...
@@ -31,7 +31,7 @@ function c43237273.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,7 +31,7 @@ function c43237273.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
code
)
e1
:
SetValue
(
code
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
if
not
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
if
not
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
cid
=
c
:
CopyEffect
(
code
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
1
)
cid
=
c
:
CopyEffect
(
code
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
1
)
end
end
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
43237273
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
43237273
,
1
))
...
...
c5008836.lua
View file @
1a2cfa93
...
@@ -46,7 +46,7 @@ function c5008836.ttop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -46,7 +46,7 @@ function c5008836.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
5
,
5
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
5
,
5
)
c
:
SetMaterial
(
g
)
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
end
function
c5008836
.
valcheck
(
e
,
c
)
function
c5008836
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
local
g
=
c
:
GetMaterial
()
...
...
c55690251.lua
View file @
1a2cfa93
...
@@ -45,7 +45,7 @@ function c55690251.otop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -45,7 +45,7 @@ function c55690251.otop(e,tp,eg,ep,ev,re,r,rp,c)
local
mg
=
Duel
.
GetMatchingGroup
(
c55690251
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
local
mg
=
Duel
.
GetMatchingGroup
(
c55690251
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
c
:
SetMaterial
(
sg
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
end
function
c55690251
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c55690251
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c61231400.lua
View file @
1a2cfa93
...
@@ -23,7 +23,7 @@ end
...
@@ -23,7 +23,7 @@ end
function
c61231400
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c61231400
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
)
c
:
SetMaterial
(
g
)
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
--damage
--damage
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
61231400
,
1
))
e1
:
SetDescription
(
aux
.
Stringid
(
61231400
,
1
))
...
...
c64659851.lua
View file @
1a2cfa93
...
@@ -20,7 +20,7 @@ function c64659851.thfilter(c)
...
@@ -20,7 +20,7 @@ function c64659851.thfilter(c)
end
end
function
c64659851
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c64659851
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c64659851
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c64659851
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
or
Duel
.
IsExistingMatchingCard
(
c64659851
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
c64659851
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
end
end
...
...
c65079854.lua
View file @
1a2cfa93
--憎悪の棘
--憎悪の棘
function
c65079854
.
initial_effect
(
c
)
function
c65079854
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
73580471
)
aux
.
AddCodeList
(
c
,
73580471
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CONTINUOUS_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CONTINUOUS_TARGET
)
e1
:
SetTarget
(
c65079854
.
target
)
e1
:
SetTarget
(
c65079854
.
target
)
e1
:
SetOperation
(
c65079854
.
operation
)
e1
:
SetOperation
(
c65079854
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--Atk
--Atk
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetValue
(
600
)
e2
:
SetValue
(
600
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--Pierce
--Pierce
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_EQUIP
)
e3
:
SetType
(
EFFECT_TYPE_EQUIP
)
e3
:
SetCode
(
EFFECT_PIERCE
)
e3
:
SetCode
(
EFFECT_PIERCE
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--Equip limit
--Equip limit
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e4
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetValue
(
c65079854
.
eqlimit
)
e4
:
SetValue
(
c65079854
.
eqlimit
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--indes
--indes
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e5
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e5
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e5
:
SetTarget
(
c65079854
.
indestg
)
e5
:
SetTarget
(
c65079854
.
indestg
)
e5
:
SetValue
(
1
)
e5
:
SetValue
(
1
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--battle
--battle
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
65079854
,
0
))
e6
:
SetDescription
(
aux
.
Stringid
(
65079854
,
0
))
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e6
:
SetRange
(
LOCATION_SZONE
)
e6
:
SetRange
(
LOCATION_SZONE
)
e6
:
SetCode
(
EVENT_BATTLED
)
e6
:
SetCode
(
EVENT_BATTLED
)
e6
:
SetCondition
(
c65079854
.
adcon
)
e6
:
SetCondition
(
c65079854
.
adcon
)
e6
:
SetOperation
(
c65079854
.
adop
)
e6
:
SetOperation
(
c65079854
.
adop
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
end
end
function
c65079854
.
eqlimit
(
e
,
c
)
function
c65079854
.
eqlimit
(
e
,
c
)
return
c
:
IsCode
(
73580471
)
or
c
:
IsRace
(
RACE_PLANT
)
return
c
:
IsCode
(
73580471
)
or
c
:
IsRace
(
RACE_PLANT
)
end
end
function
c65079854
.
filter
(
c
)
function
c65079854
.
filter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsCode
(
73580471
)
or
c
:
IsRace
(
RACE_PLANT
))
return
c
:
IsFaceup
()
and
(
c
:
IsCode
(
73580471
)
or
c
:
IsRace
(
RACE_PLANT
))
end
end
function
c65079854
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c65079854
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c65079854
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c65079854
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c65079854
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c65079854
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c65079854
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c65079854
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c65079854
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65079854
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
Duel
.
Equip
(
tp
,
c
,
tc
)
Duel
.
Equip
(
tp
,
c
,
tc
)
end
end
end
end
function
c65079854
.
indestg
(
e
,
c
)
function
c65079854
.
indestg
(
e
,
c
)
return
c
==
e
:
GetHandler
():
GetEquipTarget
():
GetBattleTarget
()
return
c
==
e
:
GetHandler
():
GetEquipTarget
():
GetBattleTarget
()
end
end
function
c65079854
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65079854
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
():
GetEquipTarget
()
and
Duel
.
GetAttackTarget
()
~=
nil
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
():
GetEquipTarget
()
and
Duel
.
GetAttackTarget
()
~=
nil
end
end
function
c65079854
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65079854
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
bc
=
Duel
.
GetAttackTarget
()
local
bc
=
Duel
.
GetAttackTarget
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
600
)
e1
:
SetValue
(
-
600
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
bc
:
RegisterEffect
(
e1
)
bc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
bc
:
RegisterEffect
(
e2
)
bc
:
RegisterEffect
(
e2
)
end
end
c6614221.lua
View file @
1a2cfa93
...
@@ -50,7 +50,7 @@ function c6614221.ttop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -50,7 +50,7 @@ function c6614221.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
)
c
:
SetMaterial
(
g
)
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
end
function
c6614221
.
valcheck
(
e
,
c
)
function
c6614221
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
local
g
=
c
:
GetMaterial
()
...
...
c75285069.lua
View file @
1a2cfa93
...
@@ -29,7 +29,7 @@ function c75285069.ttop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -29,7 +29,7 @@ function c75285069.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
3
,
3
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
3
,
3
)
c
:
SetMaterial
(
g
)
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
end
function
c75285069
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75285069
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_ADVANCE
+
SUMMON_VALUE_SELF
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_ADVANCE
+
SUMMON_VALUE_SELF
...
...
c78651105.lua
View file @
1a2cfa93
...
@@ -54,7 +54,7 @@ function c78651105.ttop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -54,7 +54,7 @@ function c78651105.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
3
,
3
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
3
,
3
)
c
:
SetMaterial
(
g
)
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
end
function
c78651105
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c78651105
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_ADVANCE
+
SUMMON_VALUE_SELF
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_ADVANCE
+
SUMMON_VALUE_SELF
...
...
c80344569.lua
View file @
1a2cfa93
...
@@ -23,6 +23,6 @@ function c80344569.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -23,6 +23,6 @@ function c80344569.operation(e,tp,eg,ep,ev,re,r,rp)
c
=
Duel
.
GetAttackTarget
()
c
=
Duel
.
GetAttackTarget
()
if
c
~=
nil
and
c
:
IsRelateToBattle
()
then
g
:
AddCard
(
c
)
end
if
c
~=
nil
and
c
:
IsRelateToBattle
()
then
g
:
AddCard
(
c
)
end
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
end
end
end
end
c82913020.lua
View file @
1a2cfa93
...
@@ -32,7 +32,6 @@ function c82913020.initial_effect(c)
...
@@ -32,7 +32,6 @@ function c82913020.initial_effect(c)
e3
:
SetOperation
(
c82913020
.
mop
)
e3
:
SetOperation
(
c82913020
.
mop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
--Modified from Bluebeard, the Plunder Patroll Shipwright
function
c82913020
.
spfilter
(
c
)
function
c82913020
.
spfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x53
)
and
not
c
:
IsCode
(
82913020
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x53
)
and
not
c
:
IsCode
(
82913020
)
end
end
...
...
c84058253.lua
View file @
1a2cfa93
...
@@ -35,7 +35,7 @@ function c84058253.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -35,7 +35,7 @@ function c84058253.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c84058253
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c84058253
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
ct
=
e
:
GetHandler
():
GetMaterialCount
()
local
ct
=
e
:
GetHandler
():
GetMaterialCount
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c84058253
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
ct
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c84058253
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
ct
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c84058253
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c84058253
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c94463200.lua
View file @
1a2cfa93
...
@@ -61,7 +61,7 @@ function c94463200.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -61,7 +61,7 @@ function c94463200.descon(e,tp,eg,ep,ev,re,r,rp)
return
tc
and
eg
:
IsContains
(
tc
)
and
tc
:
IsReason
(
REASON_DESTROY
)
return
tc
and
eg
:
IsContains
(
tc
)
and
tc
:
IsReason
(
REASON_DESTROY
)
end
end
function
c94463200
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94463200
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
function
c94463200
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94463200
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
...
...
c95701283.lua
View file @
1a2cfa93
...
@@ -23,7 +23,7 @@ end
...
@@ -23,7 +23,7 @@ end
function
c95701283
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c95701283
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
)
c
:
SetMaterial
(
g
)
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
--to grave
--to grave
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
95701283
,
1
))
e1
:
SetDescription
(
aux
.
Stringid
(
95701283
,
1
))
...
...
c96631852.lua
View file @
1a2cfa93
...
@@ -51,5 +51,5 @@ function c96631852.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,5 +51,5 @@ function c96631852.descon(e,tp,eg,ep,ev,re,r,rp)
return
tc
and
eg
:
IsContains
(
tc
)
return
tc
and
eg
:
IsContains
(
tc
)
end
end
function
c96631852
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c96631852
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
c98884569.lua
View file @
1a2cfa93
--ブルーローズ・ドラゴン
--ブルーローズ・ドラゴン
function
c98884569
.
initial_effect
(
c
)
function
c98884569
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
73580471
)
aux
.
AddCodeList
(
c
,
73580471
)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
98884569
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
98884569
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCondition
(
c98884569
.
condition
)
e1
:
SetCondition
(
c98884569
.
condition
)
e1
:
SetTarget
(
c98884569
.
target
)
e1
:
SetTarget
(
c98884569
.
target
)
e1
:
SetOperation
(
c98884569
.
operation
)
e1
:
SetOperation
(
c98884569
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c98884569
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c98884569
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
end
end
function
c98884569
.
filter
(
c
,
e
,
tp
)
function
c98884569
.
filter
(
c
,
e
,
tp
)
return
(
c
:
IsRace
(
RACE_PLANT
)
or
c
:
IsCode
(
73580471
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
(
c
:
IsRace
(
RACE_PLANT
)
or
c
:
IsCode
(
73580471
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c98884569
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c98884569
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c98884569
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c98884569
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c98884569
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c98884569
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c98884569
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c98884569
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c98884569
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c98884569
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
utility.lua
View file @
1a2cfa93
...
@@ -247,7 +247,7 @@ function Auxiliary.EnableUnionAttribute(c,f)
...
@@ -247,7 +247,7 @@ function Auxiliary.EnableUnionAttribute(c,f)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
Auxiliary
.
ChangeCodeCondition
(
check
,
condition
)
function
Auxiliary
.
ChangeCodeCondition
(
check
,
condition
)
return
function
(
e
)
return
function
(
e
)
if
condition
and
not
condition
(
e
)
then
return
false
end
if
condition
and
not
condition
(
e
)
then
return
false
end
local
le
=
{
e
:
GetHandler
():
IsHasEffect
(
EFFECT_DISABLE
)}
local
le
=
{
e
:
GetHandler
():
IsHasEffect
(
EFFECT_DISABLE
)}
for
_
,
te
in
ipairs
(
le
)
do
for
_
,
te
in
ipairs
(
le
)
do
...
...
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