Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
Crescent/毛虫
pre-release-database-cdb
Commits
4331fa0f
Commit
4331fa0f
authored
Jul 10, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
ac581c75
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
116 additions
and
106 deletions
+116
-106
script/c101205087.lua
script/c101205087.lua
+1
-1
script/c101205090.lua
script/c101205090.lua
+1
-2
script/c101205091.lua
script/c101205091.lua
+37
-34
script/c101205092.lua
script/c101205092.lua
+31
-30
script/c101205093.lua
script/c101205093.lua
+46
-39
No files found.
script/c101205087.lua
View file @
4331fa0f
...
@@ -29,7 +29,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -29,7 +29,7 @@ function s.spop(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
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsType
(
TYPE_MONSTER
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
...
...
script/c101205090.lua
View file @
4331fa0f
...
@@ -68,13 +68,12 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -68,13 +68,12 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
function
s
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
local
ph
=
Duel
.
GetCurrentPhase
()
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
)
end
end
function
s
.
filter
(
c
)
function
s
.
filter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFacedown
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFacedown
()
and
c
:
IsDefensePos
()
end
end
function
s
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
...
...
script/c101205091.lua
View file @
4331fa0f
...
@@ -11,28 +11,29 @@ function s.initial_effect(c)
...
@@ -11,28 +11,29 @@ function s.initial_effect(c)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
operation
)
e1
:
SetOperation
(
s
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--s
earch
--s
psummon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
Set
Category
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
Set
Description
(
aux
.
Stringid
(
id
,
1
)
)
e2
:
Set
Type
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
Set
Category
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
Set
Property
(
EFFECT_FLAG_DELAY
)
e2
:
Set
Type
(
EFFECT_TYPE_IGNITION
)
e2
:
Set
Code
(
EVENT_SUMMON_SUCCESS
)
e2
:
Set
Range
(
LOCATION_HAND
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetTarget
(
s
.
th
tg
)
e2
:
SetTarget
(
s
.
sp
tg
)
e2
:
SetOperation
(
s
.
th
op
)
e2
:
SetOperation
(
s
.
sp
op
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
--search
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e3
:
SetCountLimit
(
1
,
id
+
o
*
2
)
e3
:
SetTarget
(
s
.
thtg
)
e3
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--spsummon
local
e4
=
e2
:
Clone
()
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e4
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_HAND
)
e4
:
SetCountLimit
(
1
,
id
+
o
*
2
)
e4
:
SetTarget
(
s
.
sptg
)
e4
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
s
.
filter
(
c
)
function
s
.
filter
(
c
)
...
@@ -48,9 +49,22 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,9 +49,22 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
if
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
then
if
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
then
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
if
e
:
GetHandler
():
IsControlerCanBeChanged
()
then
local
c
=
e
:
GetHandler
()
Duel
.
GetControl
(
e
:
GetHandler
(),
1
-
tp
)
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
BreakEffect
()
Duel
.
GetControl
(
c
,
1
-
tp
)
end
end
end
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
,
1
-
tp
)
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
end
end
end
end
function
s
.
thfilter
(
c
)
function
s
.
thfilter
(
c
)
...
@@ -68,14 +82,3 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -68,14 +82,3 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
\ No newline at end of file
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
,
1
-
tp
)
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
end
end
\ No newline at end of file
script/c101205092.lua
View file @
4331fa0f
...
@@ -12,25 +12,25 @@ function s.initial_effect(c)
...
@@ -12,25 +12,25 @@ function s.initial_effect(c)
e1
:
SetOperation
(
s
.
operation
)
e1
:
SetOperation
(
s
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--spsummon
--spsummon
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_HAND
)
e4
:
SetCountLimit
(
1
,
id
+
o
)
e4
:
SetTarget
(
s
.
sptg
)
e4
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e4
)
--cannot be target
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
Set
Type
(
EFFECT_TYPE_FIELD
)
e2
:
Set
Description
(
aux
.
Stringid
(
id
,
1
)
)
e2
:
SetC
ode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetC
ategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
Set
Range
(
LOCATION_MZONE
)
e2
:
Set
Type
(
EFFECT_TYPE_IGNITION
)
e2
:
Set
Property
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
Set
Range
(
LOCATION_HAND
)
e2
:
Set
TargetRange
(
LOCATION_ONFIELD
,
0
)
e2
:
Set
CountLimit
(
1
,
id
+
o
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsType
,
TYPE_SPELL
)
)
e2
:
SetTarget
(
s
.
sptg
)
e2
:
Set
Value
(
1
)
e2
:
Set
Operation
(
s
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--cannot be target
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
aux
.
AND
(
Card
.
IsType
,
Card
.
IsFaceup
),
TYPE_SPELL
))
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
end
end
function
s
.
filter
(
c
)
function
s
.
filter
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsSetCard
(
0x2be
)
return
c
:
IsFaceup
()
and
not
c
:
IsSetCard
(
0x2be
)
...
@@ -43,25 +43,26 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -43,25 +43,26 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
s
.
spfilter
(
c
,
e
,
tp
)
function
s
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
1
-
tp
,
POS_FACEUP_DEFENSE
)
end
end
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
then
if
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
then
local
tg
=
Duel
.
GetDecktopGroup
(
tp
,
3
)
local
tg
=
Duel
.
GetDecktopGroup
(
tp
,
3
)
if
#
tg
==
0
then
return
end
if
#
tg
==
0
then
return
end
Duel
.
DisableShuffleCheck
()
Duel
.
DisableShuffleCheck
()
if
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_EFFECT
)
>
0
then
if
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_EFFECT
)
>
0
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
Duel
.
BreakEffect
()
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
then
if
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
#
g
>
0
then
if
#
g
>
0
then
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
g
:
GetFirst
(),
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummon
(
g
:
GetFirst
(),
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
end
end
end
local
c
=
e
:
GetHandler
()
if
e
:
GetHandler
():
IsControlerCanBeChanged
()
then
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
GetControl
(
e
:
GetHandler
(),
1
-
tp
)
Duel
.
BreakEffect
()
Duel
.
GetControl
(
c
,
1
-
tp
)
end
end
end
end
end
end
...
...
script/c101205093.lua
View file @
4331fa0f
...
@@ -11,28 +11,29 @@ function s.initial_effect(c)
...
@@ -11,28 +11,29 @@ function s.initial_effect(c)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
operation
)
e1
:
SetOperation
(
s
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
ChangePositi
on
--
spsumm
on
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
Set
Category
(
CATEGORY_POSITION
)
e2
:
Set
Description
(
aux
.
Stringid
(
id
,
1
)
)
e2
:
Set
Type
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
Set
Category
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
Set
Property
(
EFFECT_FLAG_DELAY
)
e2
:
Set
Type
(
EFFECT_TYPE_IGNITION
)
e2
:
Set
Code
(
EVENT_SUMMON_SUCCESS
)
e2
:
Set
Range
(
LOCATION_HAND
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetTarget
(
s
.
pos
tg
)
e2
:
SetTarget
(
s
.
sp
tg
)
e2
:
SetOperation
(
s
.
pos
op
)
e2
:
SetOperation
(
s
.
sp
op
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
--ChangePosition
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e3
:
SetCategory
(
CATEGORY_POSITION
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e3
:
SetCountLimit
(
1
,
id
+
o
*
2
)
e3
:
SetTarget
(
s
.
postg
)
e3
:
SetOperation
(
s
.
posop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--spsummon
local
e4
=
e3
:
Clone
()
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e4
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_HAND
)
e4
:
SetCountLimit
(
1
,
id
+
o
*
2
)
e4
:
SetTarget
(
s
.
sptg
)
e4
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
s
.
filter
(
c
)
function
s
.
filter
(
c
)
...
@@ -48,18 +49,34 @@ end
...
@@ -48,18 +49,34 @@ end
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
then
if
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
then
Duel
.
Draw
(
1
-
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
1
-
tp
,
1
,
REASON_EFFECT
)
Duel
.
ShuffleHand
(
tp
)
local
tg1
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
local
tg1
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
if
tg1
:
GetCount
()
>
0
then
Duel
.
ShuffleHand
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
tc1
=
tg1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc1
=
tg1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
BreakEffect
()
Duel
.
SendtoGrave
(
tc1
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
tc1
,
REASON_EFFECT
)
if
e
:
GetHandler
():
IsControlerCanBeChanged
()
then
end
Duel
.
GetControl
(
e
:
GetHandler
(),
1
-
tp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
BreakEffect
()
Duel
.
GetControl
(
c
,
1
-
tp
)
end
end
end
end
end
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
,
1
-
tp
)
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
end
end
function
s
.
posfilter
(
c
)
function
s
.
posfilter
(
c
)
return
c
:
IsFacedown
()
and
c
:
IsDefensePos
()
return
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
Facedown
()
and
c
:
IsDefensePos
()
end
end
function
s
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
...
@@ -70,18 +87,8 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,18 +87,8 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
Duel
.
HintSelection
(
g
)
local
pos
=
Duel
.
SelectPosition
(
tp
,
tc
,
POS_FACEUP_ATTACK
+
POS_FACEUP_DEFENSE
)
local
pos
=
Duel
.
SelectPosition
(
tp
,
tc
,
POS_FACEUP_ATTACK
+
POS_FACEUP_DEFENSE
)
Duel
.
ChangePosition
(
tc
,
pos
)
Duel
.
ChangePosition
(
tc
,
pos
)
end
end
end
end
\ No newline at end of file
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
,
1
-
tp
)
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
end
end
\ No newline at end of file
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