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
525fb29b
Commit
525fb29b
authored
Mar 11, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 帝王の極致
parent
e88836bf
Pipeline
#33572
passed with stages
in 1 minute and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
38 deletions
+52
-38
script/c101301076.lua
script/c101301076.lua
+52
-38
No files found.
script/c101301076.lua
View file @
525fb29b
...
...
@@ -5,15 +5,15 @@ function s.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--trigger
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_REMOVE
+
CATEGORY_TODECK
+
CATEGORY_HANDES
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetRange
(
LOCATION_SZONE
)
--e2:SetCondition(s.condition
)
--
e2:SetCost(s.cost)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCost
(
s
.
cost
)
e2
:
SetTarget
(
s
.
target
)
e2
:
SetOperation
(
s
.
operation
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -21,11 +21,8 @@ end
function
s
.
cfilter
(
c
)
return
c
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
end
function
s
.
condition
(
e
,
tp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
s
.
costfilter
(
c
)
return
c
:
IsSetCard
(
0xbe
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToRemove
()
return
c
:
IsSetCard
(
0xbe
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToRemove
AsCost
()
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
@@ -36,70 +33,87 @@ end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
b1
=
Duel
.
GetFlagEffect
(
tp
,
id
+
1
)
==
0
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
)
>
0
local
b2
=
Duel
.
GetFlagEffect
(
tp
,
id
+
2
)
==
0
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
)
>
0
local
b3
=
Duel
.
GetFlagEffect
(
tp
,
id
+
3
)
==
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
local
b4
=
Duel
.
GetFlagEffect
(
tp
,
id
+
4
)
==
0
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
>
0
local
b5
=
Duel
.
GetFlagEffect
(
tp
,
id
+
5
)
==
0
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
>
0
local
b6
=
Duel
.
GetFlagEffect
(
tp
,
id
+
6
)
==
0
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
>
0
if
chk
==
0
then
return
b1
or
b2
or
b3
or
b4
or
b5
or
b6
end
local
b3
=
Duel
.
GetFlagEffect
(
tp
,
id
+
3
)
==
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
,
REASON_EFFECT
)
local
b4
=
Duel
.
GetFlagEffect
(
tp
,
id
+
4
)
==
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsFacedown
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
local
b5
=
Duel
.
GetFlagEffect
(
tp
,
id
+
5
)
==
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
local
b6
=
Duel
.
GetFlagEffect
(
tp
,
id
+
6
)
==
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
(
b1
or
b2
or
b3
or
b4
or
b5
or
b6
)
end
local
op
=
0
if
b1
and
b2
and
b3
and
b4
and
b5
and
b6
then
local
page
=
0
while
op
==
0
or
op
==
4
do
while
op
==
0
or
op
==
7
do
if
page
==
0
then
op
=
aux
.
SelectFromOptions
(
tp
,
{
b1
,
aux
.
Stringid
(
id
,
1
)},
{
b2
,
aux
.
Stringid
(
id
,
2
)},
{
b3
,
aux
.
Stringid
(
id
,
3
)},
{
true
,
1345
}
)
{
b1
,
aux
.
Stringid
(
id
,
1
)
,
1
},
{
b2
,
aux
.
Stringid
(
id
,
2
)
,
2
},
{
b3
,
aux
.
Stringid
(
id
,
3
)
,
3
},
{
true
,
1345
}
,
7
)
else
op
=
aux
.
SelectFromOptions
(
tp
,
{
b4
,
aux
.
Stringid
(
id
,
4
)},
{
b5
,
aux
.
Stringid
(
id
,
5
)},
{
b6
,
aux
.
Stringid
(
id
,
6
)},
{
true
,
1360
})
{
b4
,
aux
.
Stringid
(
id
,
4
)
,
4
},
{
b5
,
aux
.
Stringid
(
id
,
5
)
,
5
},
{
b6
,
aux
.
Stringid
(
id
,
6
)
,
6
},
{
true
,
1360
}
,
7
)
end
if
op
==
4
then
if
op
==
7
then
page
=
1
-
page
end
end
else
op
=
aux
.
SelectFromOptions
(
tp
,
{
b1
,
aux
.
Stringid
(
id
,
1
)},
{
b2
,
aux
.
Stringid
(
id
,
2
)},
{
b3
,
aux
.
Stringid
(
id
,
3
)},
{
b4
,
aux
.
Stringid
(
id
,
4
)},
{
b5
,
aux
.
Stringid
(
id
,
5
)},
{
b6
,
aux
.
Stringid
(
id
,
6
)}
{
b1
,
aux
.
Stringid
(
id
,
1
)
,
1
},
{
b2
,
aux
.
Stringid
(
id
,
2
)
,
2
},
{
b3
,
aux
.
Stringid
(
id
,
3
)
,
3
},
{
b4
,
aux
.
Stringid
(
id
,
4
)
,
4
},
{
b5
,
aux
.
Stringid
(
id
,
5
)
,
5
},
{
b6
,
aux
.
Stringid
(
id
,
6
)
,
6
}
)
end
e
:
SetLabel
(
op
)
Duel
.
RegisterFlagEffect
(
tp
,
id
+
op
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
op
=
e
:
GetLabel
()
local
op
t
=
e
:
GetLabel
()
if
not
opt
then
return
end
if
op
==
1
then
if
op
t
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
elseif
op
==
2
then
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
elseif
opt
==
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
2
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
elseif
opt
==
3
then
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
):
RandomSelect
(
tp
,
1
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDiscardable
,
tp
,
0
,
LOCATION_HAND
,
nil
,
REASON_EFFECT
):
RandomSelect
(
tp
,
1
)
Duel
.
HintSelection
(
g
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_DISCARD
)
elseif
opt
==
4
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFacedown
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
elseif
op
==
5
then
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
elseif
opt
==
5
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
end
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
end
elseif
opt
==
6
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
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