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
Amiya
pre-release-database-cdb
Commits
db29e496
Commit
db29e496
authored
Nov 28, 2023
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix format
parent
a80e53d5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
script/c100214002.lua
script/c100214002.lua
+1
-3
script/c100214007.lua
script/c100214007.lua
+4
-4
script/c101204054.lua
script/c101204054.lua
+4
-3
No files found.
script/c100214002.lua
View file @
db29e496
...
@@ -60,9 +60,7 @@ function s.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -60,9 +60,7 @@ function s.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
local
check
=
Duel
.
IsExistingMatchingCard
(
s
.
checkfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
local
check
=
Duel
.
IsExistingMatchingCard
(
s
.
checkfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
check
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
check
)
end
end
if
check
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
else
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
end
end
end
function
s
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
...
...
script/c100214007.lua
View file @
db29e496
...
@@ -48,7 +48,7 @@ function s.initial_effect(c)
...
@@ -48,7 +48,7 @@ function s.initial_effect(c)
end
end
function
s
.
cfilter
(
c
,
tp
)
function
s
.
cfilter
(
c
,
tp
)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsPreviousControler
(
tp
)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
end
function
s
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
dg
=
eg
:
Filter
(
s
.
cfilter
,
nil
,
tp
)
local
dg
=
eg
:
Filter
(
s
.
cfilter
,
nil
,
tp
)
...
@@ -68,7 +68,7 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -68,7 +68,7 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
aufilter
(
c
,
tp
,
e
)
function
s
.
aufilter
(
c
,
tp
,
e
)
return
c
:
IsFaceup
()
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_GRAVE
)
return
c
:
IsFaceup
()
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_GRAVE
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
(
not
e
or
c
:
IsCanBeEffectTarget
(
e
))
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
(
not
e
or
c
:
IsCanBeEffectTarget
(
e
))
end
end
function
s
.
autg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
autg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
g
=
eg
:
Filter
(
s
.
aufilter
,
nil
,
tp
,
e
)
local
g
=
eg
:
Filter
(
s
.
aufilter
,
nil
,
tp
,
e
)
...
@@ -76,7 +76,7 @@ function s.autg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -76,7 +76,7 @@ function s.autg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
#
g
>
0
end
if
chk
==
0
then
return
#
g
>
0
end
local
tg
=
g
:
Clone
()
local
tg
=
g
:
Clone
()
if
#
g
>
1
then
if
#
g
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
tg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
tg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
end
end
Duel
.
SetTargetCard
(
tg
)
Duel
.
SetTargetCard
(
tg
)
...
@@ -95,7 +95,7 @@ function s.auop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -95,7 +95,7 @@ function s.auop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
thfilter
(
c
,
tp
)
function
s
.
thfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsPreviousControler
(
tp
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_HAND
)
and
c
:
IsReason
(
REASON_DISCARD
)
and
c
:
IsPreviousLocation
(
LOCATION_HAND
)
and
c
:
IsReason
(
REASON_DISCARD
)
end
end
function
s
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
FilterCount
(
s
.
thfilter
,
nil
,
tp
)
>
0
return
eg
:
FilterCount
(
s
.
thfilter
,
nil
,
tp
)
>
0
...
...
script/c101204054.lua
View file @
db29e496
...
@@ -14,9 +14,9 @@ function s.initial_effect(c)
...
@@ -14,9 +14,9 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--Activate without draw
--Activate without draw
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_DRAW
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_DRAW
)
e2
:
SetCondition
(
s
.
dcon
)
e2
:
SetCondition
(
s
.
dcon
)
e2
:
SetTarget
(
s
.
dtarget
)
e2
:
SetTarget
(
s
.
dtarget
)
e2
:
SetOperation
(
s
.
dactivate
)
e2
:
SetOperation
(
s
.
dactivate
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
...
@@ -31,7 +31,7 @@ function s.ndcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,7 +31,7 @@ function s.ndcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
dcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
dcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
Duel
.
IsExistingMatchingCard
(
s
.
sfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
mfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
sfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
mfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
s
.
filter
(
c
)
function
s
.
filter
(
c
)
return
aux
.
IsCodeListed
(
c
,
101204051
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
aux
.
IsCodeListed
(
c
,
101204051
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
...
@@ -65,6 +65,7 @@ function s.dactivate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -65,6 +65,7 @@ function s.dactivate(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
local
ct1
=
6
-
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
local
ct1
=
6
-
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
local
ct2
=
6
-
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
local
ct2
=
6
-
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
...
...
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