Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
Vee4
ygopro-scripts-888
Commits
5cf1b4b1
Commit
5cf1b4b1
authored
Jul 27, 2024
by
想象力很好的毛虫
Committed by
GitHub
Jul 27, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c60759087.lua (#2607)
parent
bb31424a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
45 deletions
+38
-45
c60759087.lua
c60759087.lua
+38
-45
No files found.
c60759087.lua
View file @
5cf1b4b1
...
...
@@ -9,22 +9,9 @@ function c60759087.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCountLimit
(
1
,
60759087
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCondition
(
c60759087
.
condition
)
e1
:
SetTarget
(
c60759087
.
target
1
)
e1
:
SetOperation
(
c60759087
.
activate
1
)
e1
:
SetTarget
(
c60759087
.
target
)
e1
:
SetOperation
(
c60759087
.
activate
)
c
:
RegisterEffect
(
e1
)
--Activate2
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
60759087
,
1
))
e2
:
SetCategory
(
CATEGORY_TODECK
)
e2
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e2
:
SetCountLimit
(
1
,
60759087
+
EFFECT_COUNT_CODE_OATH
)
e2
:
SetCondition
(
c60759087
.
condition
)
e2
:
SetTarget
(
c60759087
.
target2
)
e2
:
SetOperation
(
c60759087
.
activate2
)
c
:
RegisterEffect
(
e2
)
end
function
c60759087
.
cfilter
(
c
,
setcode
)
return
c
:
IsSetCard
(
setcode
)
and
c
:
IsFaceup
()
...
...
@@ -44,39 +31,45 @@ function c60759087.tgfilter1b(c)
return
c
:
IsFaceup
()
and
c
:
IsAbleToChangeControler
()
and
Duel
.
GetMZoneCount
(
tp
,
c
,
tp
,
LOCATION_REASON_CONTROL
)
>
0
end
function
c60759087
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c60759087
.
tgfilter1a
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c60759087
.
tgfilter1b
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c60759087
.
tgfilter1a
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c60759087
.
tgfilter1b
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
g1
:
Merge
(
g2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g1
,
2
,
0
,
0
)
end
function
c60759087
.
activate1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
a
=
g
:
GetFirst
()
local
b
=
g
:
GetNext
()
if
a
:
IsRelateToEffect
(
e
)
and
b
:
IsRelateToEffect
(
e
)
then
Duel
.
SwapControl
(
a
,
b
)
end
end
function
c60759087
.
tgfilter2
(
c
)
return
c
:
IsFacedown
()
and
c
:
IsAbleToDeck
()
end
function
c60759087
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
c60759087
.
tgfilter1
(
chkc
)
and
chkc
:
IsLocation
(
LOCATION_SZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c60759087
.
tgfilter2
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c60759087
.
tgfilter2
,
tp
,
0
,
LOCATION_SZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
function
c60759087
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
e
:
GetLabel
()
==
1
and
c60759087
.
tgfilter1
(
chkc
)
and
chkc
:
IsLocation
(
LOCATION_SZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
end
local
b1
=
Duel
.
IsExistingTarget
(
c60759087
.
tgfilter1a
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c60759087
.
tgfilter1b
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
local
b2
=
Duel
.
IsExistingTarget
(
c60759087
.
tgfilter2
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
if
chk
==
0
then
return
b1
or
b2
end
local
op
=
aux
.
SelectFromOptions
(
tp
,
{
b1
,
aux
.
Stringid
(
60759087
,
0
),
0
},
{
b2
,
aux
.
Stringid
(
60759087
,
1
),
1
})
e
:
SetLabel
(
op
)
if
op
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c60759087
.
tgfilter1a
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c60759087
.
tgfilter1b
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
g1
:
Merge
(
g2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g1
,
2
,
0
,
0
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c60759087
.
tgfilter2
,
tp
,
0
,
LOCATION_SZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
end
end
function
c60759087
.
activate2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoDeck
(
tc
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
function
c60759087
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
op
==
0
then
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
a
=
g
:
GetFirst
()
local
b
=
g
:
GetNext
()
if
a
:
IsRelateToEffect
(
e
)
and
b
:
IsRelateToEffect
(
e
)
then
Duel
.
SwapControl
(
a
,
b
)
end
else
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoDeck
(
tc
,
nil
,
SEQ_DECKSHUFFLE
,
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