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
nanahira
ygopro-scripts
Commits
bcce17f5
Commit
bcce17f5
authored
Jan 06, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into develop
parents
dfb858e4
247d3b90
Changes
37
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
143 additions
and
99 deletions
+143
-99
c1154611.lua
c1154611.lua
+1
-0
c14731897.lua
c14731897.lua
+9
-4
c1607603.lua
c1607603.lua
+35
-48
c17548456.lua
c17548456.lua
+1
-1
c24903843.lua
c24903843.lua
+1
-0
c26523337.lua
c26523337.lua
+1
-1
c33814281.lua
c33814281.lua
+1
-0
c35622739.lua
c35622739.lua
+1
-0
c3734202.lua
c3734202.lua
+2
-0
c38491199.lua
c38491199.lua
+2
-2
c40456412.lua
c40456412.lua
+15
-7
c425934.lua
c425934.lua
+4
-0
c46186135.lua
c46186135.lua
+13
-3
c46396218.lua
c46396218.lua
+1
-1
c49655592.lua
c49655592.lua
+4
-0
c51124303.lua
c51124303.lua
+2
-1
c51606429.lua
c51606429.lua
+1
-0
c51831560.lua
c51831560.lua
+2
-2
c52518793.lua
c52518793.lua
+1
-1
c53701259.lua
c53701259.lua
+1
-1
c53829527.lua
c53829527.lua
+1
-1
c56246017.lua
c56246017.lua
+1
-0
c57111661.lua
c57111661.lua
+0
-1
c58143766.lua
c58143766.lua
+12
-8
c64765016.lua
c64765016.lua
+1
-0
c66722103.lua
c66722103.lua
+1
-1
c71939275.lua
c71939275.lua
+1
-1
c71978434.lua
c71978434.lua
+4
-2
c72578374.lua
c72578374.lua
+1
-1
c74139959.lua
c74139959.lua
+1
-1
c80627281.lua
c80627281.lua
+1
-1
c87800375.lua
c87800375.lua
+4
-1
c92586237.lua
c92586237.lua
+1
-0
c92607427.lua
c92607427.lua
+1
-0
c94187078.lua
c94187078.lua
+1
-4
c99788587.lua
c99788587.lua
+13
-4
utility.lua
utility.lua
+1
-1
No files found.
c1154611.lua
View file @
bcce17f5
...
...
@@ -7,6 +7,7 @@ function c1154611.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetTarget
(
c1154611
.
target
)
e1
:
SetOperation
(
c1154611
.
activate
)
c
:
RegisterEffect
(
e1
)
...
...
c14731897.lua
View file @
bcce17f5
...
...
@@ -13,14 +13,19 @@ function c14731897.initial_effect(c)
e1
:
SetOperation
(
c14731897
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c14731897
.
filter
(
c
)
function
c14731897
.
sum
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsDefenseAbove
(
0
)
end
function
c14731897
.
filter
(
c
,
def
)
return
c
:
IsFaceup
()
and
c
:
IsDefenseAbove
(
0
)
and
not
c
:
IsDefense
(
def
)
end
function
c14731897
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c14731897
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c14731897
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c14731897
.
sumfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
sum
=
g
:
GetSum
(
Card
.
GetBaseDefense
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c14731897
.
filter
(
chkc
,
sum
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c14731897
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
sum
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c14731897
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c14731897
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
sum
)
end
function
c14731897
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c1607603.lua
View file @
bcce17f5
--Double Dai
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--
Sp Sm from deck
--
Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetHintTiming
(
0
,
TIMING
S_CHECK_MONSTER
+
TIMING
_END_PHASE
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCondition
(
s
.
sdcon
)
e1
:
SetTarget
(
s
.
sdtg
)
e1
:
SetOperation
(
s
.
sdop
)
e1
:
SetTarget
(
s
.
sptg
)
e1
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e1
)
--Sp Sm below level
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_ACTION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e2
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e2
:
SetTarget
(
s
.
sltg
)
e2
:
SetOperation
(
s
.
slop
)
c
:
RegisterEffect
(
e2
)
end
function
s
.
sdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
s
.
sdfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsLevel
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
sdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
sdfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
s
.
sdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
sdfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
s
.
slfilter
(
c
,
e
,
tp
)
local
lv
=
c
:
GetLevel
()
return
c
:
IsFaceup
()
and
lv
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
lvfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
lv
,
e
,
tp
)
return
c
:
Is
Race
(
RACE_WARRIOR
)
and
c
:
Is
Faceup
()
and
lv
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
lvfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
lv
,
e
,
tp
)
end
function
s
.
lvfilter
(
c
,
lv
,
e
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsLevelBelow
(
lv
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
sltg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
slfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
s
.
slfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
(),
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
s
.
slfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
e
:
GetLabel
()
==
1
and
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
end
local
b1
=
not
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
sdfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
local
b2
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
s
.
slfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
b1
or
b2
end
local
op
=
aux
.
SelectFromOptions
(
tp
,
{
b1
,
aux
.
Stringid
(
id
,
0
),
0
},
{
b2
,
aux
.
Stringid
(
id
,
1
),
1
})
e
:
SetLabel
(
op
)
if
op
==
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
s
.
slfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
s
.
s
l
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
s
p
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsFacedown
()
or
not
tc
:
IsType
(
TYPE_MONSTER
)
then
return
end
local
op
=
e
:
GetLabel
()
local
g
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
lvfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tc
:
GetLevel
(),
e
,
tp
)
if
sg
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
if
op
==
0
then
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
sdfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
else
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsFacedown
()
or
not
tc
:
IsType
(
TYPE_MONSTER
)
then
return
end
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
lvfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tc
:
GetLevel
(),
e
,
tp
)
end
if
g
and
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
c17548456.lua
View file @
bcce17f5
...
...
@@ -7,7 +7,7 @@ function c17548456.initial_effect(c)
--destroy
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
17548456
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCondition
(
c17548456
.
descon
)
...
...
c24903843.lua
View file @
bcce17f5
...
...
@@ -6,6 +6,7 @@ function c24903843.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetTarget
(
c24903843
.
target
)
e1
:
SetOperation
(
c24903843
.
activate
)
c
:
RegisterEffect
(
e1
)
...
...
c26523337.lua
View file @
bcce17f5
...
...
@@ -35,7 +35,7 @@ function s.rgfilter(c,e,tp)
return
c
:
IsRace
(
RACE_FISH
)
and
c
:
IsAbleToRemove
()
and
c
:
IsFaceupEx
()
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
Is
PlayerCanRemove
(
tp
)
and
Duel
.
Is
ExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c33814281.lua
View file @
bcce17f5
...
...
@@ -94,5 +94,6 @@ function c33814281.thop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c33814281
.
thfilter
),
tp
,
LOCATION_GRAVE
+
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
c35622739.lua
View file @
bcce17f5
...
...
@@ -69,6 +69,7 @@ function c35622739.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c35622739
.
thfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
end
end
c3734202.lua
View file @
bcce17f5
...
...
@@ -13,6 +13,7 @@ function c3734202.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e2
:
SetCountLimit
(
1
,
3734202
)
e2
:
SetCost
(
c3734202
.
spcost1
)
e2
:
SetTarget
(
c3734202
.
sptg1
)
...
...
@@ -25,6 +26,7 @@ function c3734202.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e3
:
SetCountLimit
(
1
,
3734202
)
e3
:
SetCost
(
c3734202
.
spcost2
)
e3
:
SetTarget
(
c3734202
.
sptg2
)
...
...
c38491199.lua
View file @
bcce17f5
...
...
@@ -7,7 +7,7 @@ function c38491199.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_NEGATE
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetCondition
(
c38491199
.
negcon
)
e1
:
SetCost
(
c38491199
.
negcost
)
...
...
@@ -20,7 +20,7 @@ function c38491199.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c38491199
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsChainNegatable
(
ev
)
and
aux
.
damcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
1
-
tp
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
and
aux
.
damcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
function
c38491199
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
c40456412.lua
View file @
bcce17f5
...
...
@@ -36,29 +36,37 @@ end
function
c40456412
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g1
=
Duel
.
GetMatchingGroup
(
c40456412
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
c40456412
.
spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
)
local
b1
=
Duel
.
GetFlagEffect
(
tp
,
40456412
+
1
)
==
0
local
b1
=
(
Duel
.
GetFlagEffect
(
tp
,
40456412
+
1
)
==
0
or
not
e
:
IsCostChecked
())
and
g1
:
GetCount
()
>
0
and
g2
:
GetCount
()
>
0
local
b2
=
Duel
.
GetFlagEffect
(
tp
,
40456412
+
2
)
==
0
local
b2
=
(
Duel
.
GetFlagEffect
(
tp
,
40456412
+
2
)
==
0
or
not
e
:
IsCostChecked
())
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
and
Duel
.
IsExistingMatchingCard
(
c40456412
.
psfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
local
b3
=
Duel
.
GetFlagEffect
(
tp
,
40456412
+
3
)
==
0
local
b3
=
(
Duel
.
GetFlagEffect
(
tp
,
40456412
+
3
)
==
0
or
not
e
:
IsCostChecked
())
and
Duel
.
IsExistingMatchingCard
(
c40456412
.
ssfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
if
chk
==
0
then
return
b1
or
b2
or
b3
end
local
op
=
aux
.
SelectFromOptions
(
tp
,
{
b1
,
aux
.
Stringid
(
40456412
,
1
)},
{
b2
,
aux
.
Stringid
(
40456412
,
2
)},
{
b3
,
aux
.
Stringid
(
40456412
,
3
)})
Duel
.
RegisterFlagEffect
(
tp
,
40456412
+
op
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
if
e
:
IsCostChecked
()
then
Duel
.
RegisterFlagEffect
(
tp
,
40456412
+
op
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
if
op
==
1
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g1
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
)
e
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_SPECIAL_SUMMON
)
if
e
:
IsCostChecked
()
then
e
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_SPECIAL_SUMMON
)
end
e
:
SetOperation
(
c40456412
.
spop
)
elseif
op
==
2
then
e
:
SetCategory
(
0
)
if
e
:
IsCostChecked
()
then
e
:
SetCategory
(
0
)
end
e
:
SetOperation
(
c40456412
.
psop
)
else
e
:
SetCategory
(
0
)
if
e
:
IsCostChecked
()
then
e
:
SetCategory
(
0
)
end
e
:
SetOperation
(
c40456412
.
ssop
)
end
end
...
...
c425934.lua
View file @
bcce17f5
...
...
@@ -8,6 +8,10 @@ function c425934.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetCode
(
EFFECT_CANNOT_DISCARD_HAND
)
e1
:
SetTarget
(
c425934
.
target
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
end
function
c425934
.
target
(
e
,
dc
,
re
,
r
)
return
r
&
REASON_COST
==
REASON_COST
end
c46186135.lua
View file @
bcce17f5
...
...
@@ -18,6 +18,7 @@ function s.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
s
.
spcon
)
e2
:
SetTarget
(
s
.
sptg
)
e2
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e2
)
--remove
...
...
@@ -68,10 +69,19 @@ function s.spcon(e,c)
local
fg
=
Duel
.
GetMatchingGroup
(
s
.
fusfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
)
return
fg
:
CheckSubGroup
(
s
.
fselect
,
2
,
2
)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
cp
=
c
:
GetControler
()
local
g
=
Duel
.
GetMatchingGroup
(
s
.
fusfilter
,
cp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
cp
,
HINTMSG_REMOVE
)
local
sg
=
g
:
SelectSubGroup
(
cp
,
s
.
fselect
,
true
,
2
,
2
)
if
sg
then
sg
:
KeepAlive
()
e
:
SetLabelObject
(
sg
)
return
true
else
return
false
end
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
fg
=
Duel
.
GetMatchingGroup
(
s
.
fusfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
fg
:
SelectSubGroup
(
tp
,
s
.
fselect
,
false
,
2
,
2
)
local
sg
=
e
:
GetLabelObject
()
c
:
SetMaterial
(
sg
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_COST
)
end
...
...
c46396218.lua
View file @
bcce17f5
...
...
@@ -53,7 +53,7 @@ function s.discost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
function
s
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
eg
,
1
,
0
,
0
)
end
function
s
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c49655592.lua
View file @
bcce17f5
...
...
@@ -47,6 +47,7 @@ function c49655592.initial_effect(c)
e5
:
SetTargetRange
(
0
,
1
)
e5
:
SetCode
(
EFFECT_CANNOT_DISCARD_HAND
)
e5
:
SetCondition
(
c49655592
.
excon
)
e5
:
SetTarget
(
c49655592
.
extarget
)
e5
:
SetValue
(
1
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -95,3 +96,6 @@ end
function
c49655592
.
excon
(
e
)
return
e
:
GetHandler
():
IsLevelAbove
(
7
)
end
function
c49655592
.
extarget
(
e
,
dc
,
re
,
r
)
return
r
&
REASON_COST
==
REASON_COST
end
c51124303.lua
View file @
bcce17f5
...
...
@@ -22,7 +22,8 @@ function c51124303.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c51124303
.
spfilter
(
c
,
e
,
tp
,
mc
)
return
c
:
IsSetCard
(
0xb4
)
and
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
and
(
not
c
.
mat_filter
or
c
.
mat_filter
(
mc
,
tp
))
local
mg
=
Group
.
FromCards
(
mc
)
return
c
:
IsSetCard
(
0xb4
)
and
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
and
(
not
c
.
mat_filter
or
c
.
mat_filter
(
mc
,
tp
))
and
(
not
c
.
mat_group_check
or
c
.
mat_group_check
(
mg
,
tp
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
and
mc
:
IsCanBeRitualMaterial
(
c
)
end
...
...
c51606429.lua
View file @
bcce17f5
...
...
@@ -6,6 +6,7 @@ function c51606429.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetTarget
(
c51606429
.
target
)
e1
:
SetOperation
(
c51606429
.
activate
)
c
:
RegisterEffect
(
e1
)
...
...
c51831560.lua
View file @
bcce17f5
...
...
@@ -45,7 +45,7 @@ end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
id
,
0
))
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
(
))
end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
@@ -81,7 +81,7 @@ end
function
s
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanSummon
(
tp
)
and
Duel
.
IsExistingMatchingCard
(
s
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
id
,
1
))
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
(
))
end
function
s
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
...
...
c52518793.lua
View file @
bcce17f5
...
...
@@ -41,7 +41,7 @@ function c52518793.atkval(e,c)
return
e
:
GetHandler
():
GetCounter
(
0x7
)
*
100
end
function
c52518793
.
cfilter
(
c
,
tp
)
return
c
:
Is
PreviousLocation
(
LOCATION_DECK
)
return
c
:
Is
SummonLocation
(
LOCATION_DECK
)
and
c
:
GetOriginalType
()
&
TYPE_MONSTER
~=
0
end
function
c52518793
.
accon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c52518793
.
cfilter
,
1
,
nil
,
tp
)
...
...
c53701259.lua
View file @
bcce17f5
...
...
@@ -55,7 +55,7 @@ function c53701259.initial_effect(c)
--remove
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_FIELD
)
e7
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e7
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e7
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e7
:
SetRange
(
LOCATION_SZONE
)
e7
:
SetValue
(
LOCATION_REMOVED
)
...
...
c53829527.lua
View file @
bcce17f5
...
...
@@ -56,7 +56,7 @@ end
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TODECK
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
tdfilter
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
dg
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
dg
)
...
...
c56246017.lua
View file @
bcce17f5
...
...
@@ -7,6 +7,7 @@ function c56246017.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetCost
(
c56246017
.
cost
)
e1
:
SetTarget
(
c56246017
.
target
)
e1
:
SetOperation
(
c56246017
.
activate
)
...
...
c57111661.lua
View file @
bcce17f5
...
...
@@ -35,7 +35,6 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
)
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
false
end
local
co
=
Duel
.
GetMatchingGroupCount
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
co
,
nil
)
...
...
c58143766.lua
View file @
bcce17f5
...
...
@@ -19,24 +19,28 @@ function s.dfilter(c,tp)
end
function
s
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
s
.
dfilter
(
chkc
,
tp
)
end
local
b1
=
Duel
.
GetFlagEffect
(
tp
,
id
)
==
0
local
b1
=
(
Duel
.
GetFlagEffect
(
tp
,
id
)
==
0
or
not
e
:
IsCostChecked
())
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
local
b2
=
Duel
.
GetFlagEffect
(
tp
,
id
+
o
)
==
0
local
b2
=
(
Duel
.
GetFlagEffect
(
tp
,
id
+
o
)
==
0
or
not
e
:
IsCostChecked
())
and
Duel
.
IsExistingTarget
(
s
.
dfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
if
chk
==
0
then
return
b1
or
b2
end
local
op
=
aux
.
SelectFromOptions
(
tp
,{
b1
,
aux
.
Stringid
(
id
,
0
)},{
b2
,
aux
.
Stringid
(
id
,
1
)})
if
op
==
1
then
e
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
)
e
:
SetProperty
(
0
)
if
e
:
IsCostChecked
()
then
e
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
)
e
:
SetProperty
(
0
)
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
e
:
SetOperation
(
s
.
sop
)
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
else
e
:
SetCategory
(
CATEGORY_DAMAGE
)
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
if
e
:
IsCostChecked
()
then
e
:
SetCategory
(
CATEGORY_DAMAGE
)
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
Duel
.
RegisterFlagEffect
(
tp
,
id
+
o
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
e
:
SetOperation
(
s
.
dop
)
Duel
.
RegisterFlagEffect
(
tp
,
id
+
o
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
tc
=
Duel
.
SelectTarget
(
tp
,
s
.
dfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
):
GetFirst
()
local
atk
=
tc
:
GetBaseAttack
()
...
...
c64765016.lua
View file @
bcce17f5
...
...
@@ -6,6 +6,7 @@ function c64765016.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetTarget
(
c64765016
.
target
)
e1
:
SetOperation
(
c64765016
.
activate
)
c
:
RegisterEffect
(
e1
)
...
...
c66722103.lua
View file @
bcce17f5
...
...
@@ -27,7 +27,7 @@ function c66722103.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c66722103
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
return
ep
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
end
function
c66722103
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
c71939275.lua
View file @
bcce17f5
...
...
@@ -186,4 +186,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
end
end
\ No newline at end of file
end
c71978434.lua
View file @
bcce17f5
...
...
@@ -42,11 +42,13 @@ function c71978434.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
1
-
tp
,
LOCATION_HAND
)
end
function
c71978434
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_HAND
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
ConfirmCards
(
tp
,
g
)
local
g1
=
g
:
Filter
(
Card
.
IsAbleToRemove
,
nil
)
if
g1
:
GetCount
()
==
0
then
Duel
.
ShuffleHand
(
1
-
tp
)
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g
1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
ShuffleHand
(
1
-
tp
)
local
c
=
e
:
GetHandler
()
...
...
c72578374.lua
View file @
bcce17f5
...
...
@@ -36,7 +36,7 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_FUSION
)
end
function
s
.
desfilter
(
c
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
+
ATTRIBUTE_LIGHT
)
and
c
:
Get
Own
er
()
==
tp
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
+
ATTRIBUTE_LIGHT
)
and
c
:
Get
PreviousControl
er
()
==
tp
end
function
s
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
end
...
...
c74139959.lua
View file @
bcce17f5
...
...
@@ -40,7 +40,7 @@ function s.initial_effect(c)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetCountLimit
(
1
)
e4
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e4
:
SetHintTiming
(
TIMING_DAMAGE_STEP
,
TIMINGS_CHECK_MONSTER
+
TIMING_DAMAGE_STEP
+
TIMING_END_PHASE
)
e4
:
SetCost
(
s
.
atkcost
)
e4
:
SetOperation
(
s
.
atkop
)
c
:
RegisterEffect
(
e4
)
...
...
c80627281.lua
View file @
bcce17f5
...
...
@@ -54,7 +54,7 @@ function c80627281.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCondition
(
c80627281
.
immcon
)
e1
:
SetValue
(
c80627281
.
efilter
)
e1
:
SetOwnerPlayer
(
tp
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CONTROL
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
CompleteProcedure
()
end
...
...
c87800375.lua
View file @
bcce17f5
...
...
@@ -40,7 +40,10 @@ function c87800375.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
DisableShuffleCheck
()
if
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
~=
0
then
ct
=
ct
-
1
end
if
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
~=
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
ct
=
ct
-
1
end
Duel
.
ShuffleHand
(
tp
)
if
ct
>
0
then
Duel
.
SortDecktop
(
tp
,
tp
,
ct
)
end
end
...
...
c92586237.lua
View file @
bcce17f5
...
...
@@ -77,6 +77,7 @@ function c92586237.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c92586237
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
code
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
end
end
...
...
c92607427.lua
View file @
bcce17f5
...
...
@@ -81,6 +81,7 @@ function c92607427.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c92607427
.
thfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
end
end
c94187078.lua
View file @
bcce17f5
...
...
@@ -23,7 +23,7 @@ function c94187078.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
c94187078
.
spl
imit
)
e1
:
SetTarget
(
Auxiliary
.
DrytronSpSummonL
imit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
--cant special summon summonable card check
...
...
@@ -35,9 +35,6 @@ function c94187078.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
c94187078
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
c
:
IsSummonableCard
()
end
function
c94187078
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x154
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
aux
.
DrytronSpSummonType
(
c
))
end
...
...
c99788587.lua
View file @
bcce17f5
...
...
@@ -13,16 +13,25 @@ function c99788587.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c99788587
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsAllColumn
()
return
e
:
GetHandler
():
IsAllColumn
()
and
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
function
c99788587
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
c
=
e
:
GetHandler
()
e
:
SetLabel
(
aux
.
GetColumn
(
c
)
+
1
)
local
g
=
e
:
GetHandler
():
GetColumnGroup
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c99788587
.
opfilter
(
c
,
col
)
return
aux
.
GetColumn
(
c
)
==
col
end
function
c99788587
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetHandler
():
GetColumnGroup
()
if
g
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
local
col
=
e
:
GetLabel
()
if
col
>
0
then
col
=
col
-
1
local
g
=
Duel
.
GetMatchingGroup
(
c99788587
.
opfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
aux
.
ExceptThisCard
(
e
),
col
)
if
g
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
end
utility.lua
View file @
bcce17f5
...
...
@@ -1052,7 +1052,7 @@ function Auxiliary.DrytronSpSummonCost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
Auxiliary
.
DrytronSpSummonLimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
c
:
IsSummonableCard
()
return
c
:
IsSummonableCard
()
and
c
:
GetOriginalType
()
&
(
TYPE_SPELL
|
TYPE_TRAP
|
TYPE_TRAPMONSTER
)
==
0
end
function
Auxiliary
.
DrytronSpSummonTarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
res
=
e
:
GetLabel
()
==
100
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
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