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
Soulgamer
ygopro-222DIY-cards
Commits
1ddc58c1
Commit
1ddc58c1
authored
Jul 09, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
5be98b6e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c33711501.lua
expansions/script/c33711501.lua
+15
-4
No files found.
expansions/222DIY.cdb
View file @
1ddc58c1
No preview for this file type
expansions/script/c33711501.lua
View file @
1ddc58c1
...
...
@@ -8,6 +8,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--Remove
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetCategory
(
CATEGORY_REMOVE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -23,13 +24,14 @@ function cm.initial_effect(c)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCountLimit
(
1
)
--
e3:SetTarget(cm.condition)
e3
:
SetTarget
(
cm
.
condition
)
e3
:
SetOperation
(
cm
.
operation2
)
c
:
RegisterEffect
(
e3
)
--SpecialSummon
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetTarget
(
cm
.
condition
)
e4
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e4
)
end
...
...
@@ -58,9 +60,18 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
cm
.
get
(
c
)
return
c
:
GetFlagEffect
(
m
)
>
0
end
function
cm
.
condition
(
e
)
return
Duel
.
GetMatchingGroupCount
(
cm
.
get
,
e
:
GetHandlerPlayer
(),
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
)
>
0
end
function
cm
.
get1
(
c
,
e
,
tp
)
return
c
:
GetFlagEffect
(
m
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
cm
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
num
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsHasEffect
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
,
m
)
local
num
=
Duel
.
GetMatchingGroupCount
(
cm
.
get
,
e
:
GetHandlerPlayer
(),
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
)
if
num
>
0
and
Duel
.
SelectYesNo
(
e
:
GetHandlerPlayer
(),
aux
.
Stringid
(
m
,
1
))
then
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
Duel
.
Recover
(
tp
,
num
*
1500
,
REASON_EFFECT
)
...
...
@@ -68,8 +79,8 @@ function cm.operation2(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsHasEffect
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
,
m
)
if
Duel
.
GetLocationCount
(
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
)
>
0
and
Duel
.
SelectYesNo
(
e
:
GetHandlerPlayer
(),
aux
.
Stringid
(
m
,
2
))
then
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
get1
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
,
e
,
tp
)
if
Duel
.
GetLocationCount
(
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
)
>
0
and
#
sg
>
0
and
Duel
.
SelectYesNo
(
e
:
GetHandlerPlayer
(),
aux
.
Stringid
(
m
,
2
))
then
for
tc
in
aux
.
Next
(
sg
)
do
if
Duel
.
GetLocationCount
(
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
)
==
0
then
Duel
.
SendtoGrave
(
tc
,
REASON_RULE
)
elseif
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
e
:
GetHandler
(),
false
,
false
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
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