Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
f05d779e
Commit
f05d779e
authored
Oct 04, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byd
parent
efe25187
Pipeline
#30183
passed with stages
in 25 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
3 deletions
+31
-3
expansions/script/c5013355.lua
expansions/script/c5013355.lua
+31
-3
No files found.
expansions/script/c5013355.lua
View file @
f05d779e
...
...
@@ -26,8 +26,8 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetCondition
(
s
.
tg
con
)
e1
:
SetOperation
(
s
.
tg
op
)
e1
:
SetCondition
(
s
.
con
)
e1
:
SetOperation
(
s
.
op
)
c
:
RegisterEffect
(
e1
)
--quick
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -40,7 +40,34 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e2
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
id
,
5
))
end
end
function
s
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
return
bit
.
band
(
loc
,
LOCATION_ONFIELD
)
~=
0
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
rp
~=
tp
and
(
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
>
0
or
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_HAND
,
1
,
nil
))
end
function
s
.
cfilter
(
c
)
return
c
:
IsOnField
()
or
c
:
IsAbleToDeck
()
end
function
s
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
())
then
return
end
Duel
.
Hint
(
HINT_CARD
,
0
,
5013355
)
local
g
=
Group
.
CreateGroup
()
Duel
.
ChangeTargetCard
(
ev
,
g
)
Duel
.
ChangeChainOperation
(
ev
,
s
.
repop
)
end
function
s
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
tc
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
s
.
cfilter
,
1
-
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_HAND
,
1
,
1
,
nil
):
GetFirst
()
if
not
tc
then
return
end
if
not
tc
:
IsOnField
()
or
not
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
5013355
,
0
))
then
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
else
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
function
s
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
and
((
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetActivateLocation
()
==
LOCATION_MZONE
)
or
re
:
IsActiveType
(
EFFECT_TYPE_ACTIVATE
))
end
...
...
@@ -48,7 +75,8 @@ function s.defilter(c)
return
c
:
IsAbleToDeck
()
or
c
:
IsLocation
(
LOCATION_ONFIELD
)
end
function
s
.
frepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_DESTROY
)
--Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_DESTROY)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
defilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
:
IsAbleToDeck
()
and
(
not
tc
:
IsLocation
(
LOCATION_ONFIELD
)
or
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
id
,
4
),
1105
)
==
1
)
then
...
...
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