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
4
Merge Requests
4
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
MyCard
ygopro-scripts-888
Commits
089cb0e6
Commit
089cb0e6
authored
Dec 02, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into master
parents
658c58cc
5acfe9ea
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
44 additions
and
24 deletions
+44
-24
c11852093.lua
c11852093.lua
+3
-2
c2333466.lua
c2333466.lua
+4
-1
c27870337.lua
c27870337.lua
+22
-5
c32302078.lua
c32302078.lua
+1
-1
c38811586.lua
c38811586.lua
+7
-9
c41522092.lua
c41522092.lua
+1
-1
c61728808.lua
c61728808.lua
+3
-3
c61822419.lua
c61822419.lua
+2
-1
c73082255.lua
c73082255.lua
+1
-1
No files found.
c11852093.lua
View file @
089cb0e6
...
@@ -100,7 +100,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -100,7 +100,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
s
.
tffilter
(
c
,
tp
)
function
s
.
tffilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsSetCard
(
0xae
)
and
not
c
:
IsForbidden
()
and
c
:
CheckUniqueOnField
(
tp
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsSetCard
(
0xae
)
and
c
:
IsFaceupEx
()
and
not
c
:
IsForbidden
()
and
c
:
CheckUniqueOnField
(
tp
)
end
end
function
s
.
mfilter
(
c
)
function
s
.
mfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10af
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10af
)
...
@@ -120,7 +120,8 @@ function s.tftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -120,7 +120,8 @@ function s.tftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
s
.
tfop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
tfop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetTargetsRelateToChain
()
local
g
=
Duel
.
GetTargetsRelateToChain
()
local
ct
=
math.min
(
g
:
GetCount
(),
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
))
local
sct
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
local
ct
=
math.min
(
g
:
GetCount
(),
sct
)
local
pg
=
g
local
pg
=
g
if
ct
<=
0
then
if
ct
<=
0
then
pg
=
Group
.
CreateGroup
()
pg
=
Group
.
CreateGroup
()
...
...
c2333466.lua
View file @
089cb0e6
...
@@ -66,7 +66,7 @@ function s.descost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -66,7 +66,7 @@ function s.descost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
s
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
and
Duel
.
IsPlayerCanRemove
(
tp
)
end
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c
)
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sg
,
sg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sg
,
sg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
LOCATION_DECK
)
...
@@ -74,8 +74,11 @@ end
...
@@ -74,8 +74,11 @@ end
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
sg
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
aux
.
ExceptThisCard
(
e
))
local
sg
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
aux
.
ExceptThisCard
(
e
))
local
rtc
=
sg
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_TOKEN
)
and
Duel
.
IsPlayerCanRemove
(
tp
)
local
ct
=
Duel
.
Destroy
(
sg
,
REASON_EFFECT
,
LOCATION_REMOVED
)
local
ct
=
Duel
.
Destroy
(
sg
,
REASON_EFFECT
,
LOCATION_REMOVED
)
if
ct
==
0
then
return
end
if
ct
==
0
then
return
end
local
rg
=
sg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_REMOVED
)
if
not
rtc
and
rg
:
GetCount
()
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
...
...
c27870337.lua
View file @
089cb0e6
...
@@ -4,11 +4,30 @@ function c27870337.initial_effect(c)
...
@@ -4,11 +4,30 @@ function c27870337.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_LIMIT_ZONE
)
e1
:
SetCountLimit
(
1
,
27870337
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
27870337
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
c27870337
.
target
)
e1
:
SetTarget
(
c27870337
.
target
)
e1
:
SetOperation
(
c27870337
.
activate
)
e1
:
SetOperation
(
c27870337
.
activate
)
e1
:
SetValue
(
c27870337
.
zones
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c27870337
.
sel3
(
tp
)
return
Duel
.
IsExistingMatchingCard
(
c27870337
.
toexfilter1
,
tp
,
LOCATION_PZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c27870337
.
toexfilter2
,
tp
,
LOCATION_PZONE
,
0
,
1
,
nil
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
end
function
c27870337
.
zones
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
zone
=
0xff
local
b3
=
c27870337
.
sel3
(
tp
)
if
b3
then
return
zone
end
local
p0
=
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
local
p1
=
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
local
b
=
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
not
e
:
GetHandler
():
IsLocation
(
LOCATION_SZONE
)
if
not
b
or
p0
and
p1
then
return
zone
end
if
p0
then
zone
=
zone
-
0x1
end
if
p1
then
zone
=
zone
-
0x10
end
return
zone
end
function
c27870337
.
pendfilter
(
c
)
function
c27870337
.
pendfilter
(
c
)
return
c
:
IsSetCard
(
0x162
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
return
c
:
IsSetCard
(
0x162
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
end
end
...
@@ -34,9 +53,7 @@ function c27870337.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -34,9 +53,7 @@ function c27870337.target(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
c27870337
.
pendfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c27870337
.
pendfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c27870337
.
pendfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c27870337
.
pendfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
and
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
local
b3
=
Duel
.
IsExistingMatchingCard
(
c27870337
.
toexfilter1
,
tp
,
LOCATION_PZONE
,
0
,
1
,
nil
)
local
b3
=
c27870337
.
sel3
(
tp
)
and
Duel
.
IsExistingMatchingCard
(
c27870337
.
toexfilter2
,
tp
,
LOCATION_PZONE
,
0
,
1
,
nil
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
if
chk
==
0
then
return
b1
or
b2
or
b3
end
if
chk
==
0
then
return
b1
or
b2
or
b3
end
local
off
=
1
local
off
=
1
local
ops
,
opval
=
{},{}
local
ops
,
opval
=
{},{}
...
@@ -62,7 +79,7 @@ function c27870337.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -62,7 +79,7 @@ function c27870337.target(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetCategory
(
0
)
e
:
SetCategory
(
0
)
elseif
sel
==
1
then
elseif
sel
==
1
then
e
:
SetCategory
(
0
)
e
:
SetCategory
(
0
)
else
else
if
sel
==
2
then
e
:
SetCategory
(
CATEGORY_DRAW
)
e
:
SetCategory
(
CATEGORY_DRAW
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
2
)
Duel
.
SetTargetParam
(
2
)
...
@@ -100,7 +117,7 @@ function c27870337.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -100,7 +117,7 @@ function c27870337.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
else
else
if
sel
==
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
27870337
,
3
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
27870337
,
3
))
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c27870337
.
toexfilter1
,
tp
,
LOCATION_PZONE
,
0
,
1
,
1
,
nil
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c27870337
.
toexfilter1
,
tp
,
LOCATION_PZONE
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
27870337
,
3
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
27870337
,
3
))
...
...
c32302078.lua
View file @
089cb0e6
...
@@ -6,7 +6,7 @@ function c32302078.initial_effect(c)
...
@@ -6,7 +6,7 @@ function c32302078.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_XYZ_LEVEL
)
e1
:
SetCode
(
EFFECT_XYZ_LEVEL
)
e1
:
SetProperty
(
EFFECT_FLAG_
SET_AVAILABL
E
)
e1
:
SetProperty
(
EFFECT_FLAG_
IGNORE_IMMUN
E
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
c32302078
.
lvtg
)
e1
:
SetTarget
(
c32302078
.
lvtg
)
...
...
c38811586.lua
View file @
089cb0e6
...
@@ -54,18 +54,15 @@ end
...
@@ -54,18 +54,15 @@ end
function
c38811586
.
spfilter
(
c
,
e
,
tp
)
function
c38811586
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
c38811586
.
spsumfilter1
(
c
,
e
,
tp
)
function
c38811586
.
spsumfilter1
(
c
,
e
,
tp
,
g
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
tp
)
and
g
:
IsExists
(
c38811586
.
spsumfilter2
,
1
,
c
,
e
,
tp
)
end
end
function
c38811586
.
spsumfilter2
(
c
,
e
,
tp
)
function
c38811586
.
spsumfilter2
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
1
-
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
1
-
tp
)
end
end
function
c38811586
.
gcheck
(
g
,
e
,
tp
)
function
c38811586
.
gcheck
(
g
,
e
,
tp
)
if
#
g
~=
2
then
return
false
end
return
g
:
IsExists
(
c38811586
.
spsumfilter1
,
1
,
nil
,
e
,
tp
,
g
)
local
ac
=
g
:
GetFirst
()
local
bc
=
g
:
GetNext
()
return
c38811586
.
spsumfilter1
(
ac
,
e
,
tp
)
and
c38811586
.
spsumfilter2
(
bc
,
e
,
tp
)
or
c38811586
.
spsumfilter1
(
bc
,
e
,
tp
)
and
c38811586
.
spsumfilter2
(
ac
,
e
,
tp
)
end
end
function
c38811586
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c38811586
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
...
@@ -74,7 +71,7 @@ function c38811586.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -74,7 +71,7 @@ function c38811586.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
ft1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft2
=
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
local
ft2
=
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
ft1
>
0
and
ft2
>
0
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
ft1
>
0
and
ft2
>
0
and
g
:
CheckSubGroup
(
c38811586
.
gcheck
,
2
,
2
,
e
,
tp
)
and
g
:
IsExists
(
c38811586
.
spsumfilter1
,
1
,
nil
,
e
,
tp
,
g
)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c38811586
.
gcheck
,
false
,
2
,
2
,
e
,
tp
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c38811586
.
gcheck
,
false
,
2
,
2
,
e
,
tp
)
...
@@ -86,9 +83,10 @@ function c38811586.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -86,9 +83,10 @@ function c38811586.spop(e,tp,eg,ep,ev,re,r,rp)
local
ft2
=
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
local
ft2
=
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
or
ft1
<=
0
or
ft2
<=
0
then
return
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
or
ft1
<=
0
or
ft2
<=
0
then
return
end
local
g
=
Duel
.
GetTargetsRelateToChain
()
local
g
=
Duel
.
GetTargetsRelateToChain
()
if
not
g
:
CheckSubGroup
(
c38811586
.
gcheck
,
2
,
2
,
e
,
tp
)
then
return
end
if
#
g
~=
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
38811586
,
1
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
38811586
,
1
))
local
sg
=
g
:
FilterSelect
(
tp
,
c38811586
.
spsumfilter1
,
1
,
1
,
nil
,
e
,
tp
)
local
sg
=
g
:
FilterSelect
(
tp
,
c38811586
.
spsumfilter1
,
1
,
1
,
nil
,
e
,
tp
,
g
)
if
#
sg
==
0
then
return
end
Duel
.
SpecialSummonStep
(
sg
:
GetFirst
(),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
sg
:
GetFirst
(),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
((
g
-
sg
):
GetFirst
(),
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
((
g
-
sg
):
GetFirst
(),
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
...
...
c41522092.lua
View file @
089cb0e6
...
@@ -70,7 +70,7 @@ end
...
@@ -70,7 +70,7 @@ end
function
s
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
ep
==
1
-
tp
and
ep
==
1
-
tp
and
(
re
:
GetActivateLocation
()
&
LOCATION_ONFIELD
)
>
0
and
(
(
re
:
GetActivateLocation
()
&
LOCATION_ONFIELD
)
>
0
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
end
end
function
s
.
ctcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
ctcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
...
...
c61728808.lua
View file @
089cb0e6
...
@@ -36,11 +36,11 @@ function c61728808.eqfilter(c)
...
@@ -36,11 +36,11 @@ function c61728808.eqfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xe1
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xe1
)
end
end
function
c61728808
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c61728808
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c61728808
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c61728808
.
eq
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c61728808
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
c61728808
.
eq
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c61728808
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c61728808
.
eq
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c61728808
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c61728808
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c61822419.lua
View file @
089cb0e6
...
@@ -62,7 +62,8 @@ function s.nttg(e,c)
...
@@ -62,7 +62,8 @@ function s.nttg(e,c)
return
c
:
IsLevelAbove
(
5
)
return
c
:
IsLevelAbove
(
5
)
end
end
function
s
.
costchange
(
e
,
re
,
rp
,
val
)
function
s
.
costchange
(
e
,
re
,
rp
,
val
)
if
re
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
then
if
re
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
Duel
.
IsChainSolving
()
then
return
0
return
0
else
return
val
end
else
return
val
end
end
end
...
...
c73082255.lua
View file @
089cb0e6
...
@@ -6,7 +6,7 @@ function c73082255.initial_effect(c)
...
@@ -6,7 +6,7 @@ function c73082255.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_XYZ_LEVEL
)
e1
:
SetCode
(
EFFECT_XYZ_LEVEL
)
e1
:
SetProperty
(
EFFECT_FLAG_
SET_AVAILABL
E
)
e1
:
SetProperty
(
EFFECT_FLAG_
IGNORE_IMMUN
E
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
c73082255
.
lvtg
)
e1
:
SetTarget
(
c73082255
.
lvtg
)
...
...
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