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
MyCard
pre-release-database-cdb
Commits
535f50b2
Commit
535f50b2
authored
Jan 11, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
939b633d
Pipeline
#32515
passed with stages
in 2 minutes and 1 second
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
script/c101207084.lua
script/c101207084.lua
+3
-2
script/c101207085.lua
script/c101207085.lua
+3
-3
script/c101207086.lua
script/c101207086.lua
+2
-2
script/c101207088.lua
script/c101207088.lua
+1
-1
No files found.
script/c101207084.lua
View file @
535f50b2
...
@@ -49,8 +49,9 @@ function s.spcost2(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -49,8 +49,9 @@ function s.spcost2(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
end
end
function
s
.
costfilter2
(
c
,
e
,
tp
)
function
s
.
costfilter2
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
GetOriginalLevel
()
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
GetOriginalLevel
()
>
0
and
c
:
IsLevelBelow
(
4
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
,
e
,
tp
)
end
end
function
s
.
spfilter
(
c
,
tc
,
e
,
tp
)
function
s
.
spfilter
(
c
,
tc
,
e
,
tp
)
return
(
c
:
GetOriginalLevel
()
==
tc
:
GetOriginalLevel
()
-
1
return
(
c
:
GetOriginalLevel
()
==
tc
:
GetOriginalLevel
()
-
1
...
@@ -66,6 +67,7 @@ function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -66,6 +67,7 @@ function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
return
Duel
.
IsExistingMatchingCard
(
s
.
costfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
costfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
costfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
costfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetTargetCard
(
g
)
...
@@ -73,7 +75,6 @@ function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -73,7 +75,6 @@ function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
s
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spop2
(
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
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
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
,
tc
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc
,
e
,
tp
)
...
...
script/c101207085.lua
View file @
535f50b2
...
@@ -10,7 +10,7 @@ function s.initial_effect(c)
...
@@ -10,7 +10,7 @@ function s.initial_effect(c)
local
custom_code
=
aux
.
RegisterMergedDelayedEvent_ToSingleCard
(
c
,
id
,
EVENT_REMOVE
)
local
custom_code
=
aux
.
RegisterMergedDelayedEvent_ToSingleCard
(
c
,
id
,
EVENT_REMOVE
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e2
:
SetCategory
(
CATEGORY_DISABLE
+
CATEGORY_REMOVE
+
CATEGORY_DRAW
)
e2
:
SetCategory
(
CATEGORY_DISABLE
|
CATEGORY_DRAW
|
CATEGORY_REMOVE
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
custom_code
)
e2
:
SetCode
(
custom_code
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
...
@@ -64,7 +64,7 @@ function s.actg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -64,7 +64,7 @@ function s.actg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_TRAP
)
and
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_TRAP
)
if
chk
==
0
then
return
b1
or
b2
or
b3
end
if
chk
==
0
then
return
b1
or
b2
or
b3
end
local
category
=
0
local
category
=
0
if
b1
then
category
=
category
|
CATEGORY_
NEGAT
E
end
if
b1
then
category
=
category
|
CATEGORY_
DISABL
E
end
if
b2
then
category
=
category
|
CATEGORY_DRAW
end
if
b2
then
category
=
category
|
CATEGORY_DRAW
end
if
b3
then
category
=
category
|
CATEGORY_REMOVE
end
if
b3
then
category
=
category
|
CATEGORY_REMOVE
end
e
:
SetCategory
(
category
)
e
:
SetCategory
(
category
)
...
@@ -138,7 +138,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -138,7 +138,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
aux
.
ExceptThisCard
(
e
))
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
aux
.
ExceptThisCard
(
e
))
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
\ No newline at end of file
script/c101207086.lua
View file @
535f50b2
...
@@ -20,7 +20,7 @@ function s.initial_effect(c)
...
@@ -20,7 +20,7 @@ function s.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetHintTiming
(
0
,
TIMING_
END_PHASE
)
e3
:
SetHintTiming
(
0
,
TIMING_
MAIN_END
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
s
.
rmcon
)
e3
:
SetCondition
(
s
.
rmcon
)
e3
:
SetTarget
(
s
.
rmtg
)
e3
:
SetTarget
(
s
.
rmtg
)
...
@@ -50,7 +50,7 @@ function s.atkval(e,c)
...
@@ -50,7 +50,7 @@ function s.atkval(e,c)
return
g
:
GetClassCount
(
s
.
GetType
)
*
300
return
g
:
GetClassCount
(
s
.
GetType
)
*
300
end
end
function
s
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
return
Duel
.
IsMainPhase
()
end
end
function
s
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c101207088.lua
View file @
535f50b2
...
@@ -51,7 +51,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -51,7 +51,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
s
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsType
(
TYPE_MONSTER
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsType
(
TYPE_MONSTER
)
then
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
end
end
end
end
...
...
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