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
57cd9a45
Commit
57cd9a45
authored
May 25, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得得得得得
parent
4ae8948a
Pipeline
#13225
passed with stages
in 27 minutes and 25 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
10 deletions
+14
-10
expansions/script/c4231001.lua
expansions/script/c4231001.lua
+4
-3
expansions/script/c4231002.lua
expansions/script/c4231002.lua
+4
-3
expansions/script/c4231006.lua
expansions/script/c4231006.lua
+3
-2
expansions/script/c4231007.lua
expansions/script/c4231007.lua
+3
-2
No files found.
expansions/script/c4231001.lua
View file @
57cd9a45
...
...
@@ -45,7 +45,8 @@ Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
4231006
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_HAND
)
end
)
.
e
(
"SetOperation"
,
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
4231006
)
and
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
then
...
...
@@ -53,8 +54,8 @@ Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
tc
=
Duel
.
GetFirstTarget
()
Duel
.
Equip
(
tp
,
tc
,
e
:
GetHandler
())
end
end
end
end
end
)
.
Return
())
end
...
...
expansions/script/c4231002.lua
View file @
57cd9a45
...
...
@@ -45,7 +45,8 @@ Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
4231007
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_HAND
)
end
)
.
e
(
"SetOperation"
,
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
4231007
)
and
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
then
...
...
@@ -53,8 +54,8 @@ Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
tc
=
Duel
.
GetFirstTarget
()
Duel
.
Equip
(
tp
,
tc
,
e
:
GetHandler
())
end
end
end
end
end
)
.
Return
())
end
...
...
expansions/script/c4231006.lua
View file @
57cd9a45
...
...
@@ -29,7 +29,7 @@ function cm.initial_effect(c)--red
return
not
((
te
:
GetHandler
():
IsType
(
TYPE_EQUIP
)
or
te
:
GetHandler
():
IsType
(
TYPE_RITUAL
))
and
te
:
GetHandler
():
IsType
(
TYPE_SPELL
))
and
not
(
g
==
nil
and
{(
te
:
GetOwner
()
~=
e
:
GetHandler
():
GetEquipTarget
()
and
{
false
}
or
{
true
})[
1
]}
or
{
g
:
IsContains
(
e
:
GetHandler
():
GetEquipTarget
())})[
1
]
end
)
.
Return
()).
c
(
"RegisterEffect"
,
iFunc
(
c
)
.
e
(
"SetCategory"
,
CATEGORY_SPECIAL_SUMMON
)
.
e
(
"SetType"
,
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
.
e
(
"SetType"
,
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
.
e
(
"SetCode"
,
EVENT_EQUIP
)
.
e
(
"SetRange"
,
0xff
)
.
e
(
"SetProperty"
,
EFFECT_FLAG_DELAY
)
...
...
@@ -61,6 +61,7 @@ Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
e
:
SetLabel
(
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
cm
.
eqfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
)
.
e
(
"SetOperation"
,
cm
.
operation
)
.
Return
())
...
...
@@ -81,7 +82,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
end
end
end
...
...
expansions/script/c4231007.lua
View file @
57cd9a45
...
...
@@ -27,7 +27,7 @@ function cm.initial_effect(c)--red
.
e
(
"SetValue"
,
aux
.
tgoval
)
.
Return
()).
c
(
"RegisterEffect"
,
iFunc
(
c
)
.
e
(
"SetCategory"
,
CATEGORY_SPECIAL_SUMMON
)
.
e
(
"SetType"
,
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
.
e
(
"SetType"
,
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
.
e
(
"SetCode"
,
EVENT_EQUIP
)
.
e
(
"SetRange"
,
0xff
)
.
e
(
"SetProperty"
,
EFFECT_FLAG_DELAY
)
...
...
@@ -59,6 +59,7 @@ Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
e
:
SetLabel
(
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
cm
.
eqfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
)
.
e
(
"SetOperation"
,
cm
.
operation
)
.
Return
())
...
...
@@ -79,7 +80,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFacedown
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
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