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
68013d8c
Commit
68013d8c
authored
Jul 16, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
3e24ac91
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
14 deletions
+19
-14
expansions/script/c21520085.lua
expansions/script/c21520085.lua
+2
-1
expansions/script/c21520115.lua
expansions/script/c21520115.lua
+3
-3
expansions/script/c21520119.lua
expansions/script/c21520119.lua
+2
-1
expansions/script/c21520121.lua
expansions/script/c21520121.lua
+2
-1
expansions/script/c21520131.lua
expansions/script/c21520131.lua
+2
-1
expansions/script/c21520172.lua
expansions/script/c21520172.lua
+3
-4
expansions/script/c21520173.lua
expansions/script/c21520173.lua
+3
-1
expansions/script/c21520174.lua
expansions/script/c21520174.lua
+2
-2
No files found.
expansions/script/c21520085.lua
View file @
68013d8c
...
...
@@ -98,7 +98,8 @@ function c21520085.damcon(e,tp,eg,ep,ev,re,r,rp)
return
gc
==
dgc
and
gc
>
0
end
function
c21520085
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAttribute
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
ATTRIBUTE_DARK
)
end
-- if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAttribute,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,ATTRIBUTE_DARK) end
if
chk
==
0
then
return
true
end
local
dgc
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsAttribute
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
ATTRIBUTE_DARK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
dgc
*
300
)
end
...
...
expansions/script/c21520115.lua
View file @
68013d8c
...
...
@@ -65,13 +65,13 @@ function c21520115.spcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
c21520115
.
effectfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
function
c21520115
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c21520115
[
tp
]
>=
2
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
-- if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c21520115[tp]>=2 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c21520115
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c21520115
[
tp
]
>=
2
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
Duel
.
SpecialSummon
(
c
,
1
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
c21520115
[
tp
]
=
0
end
...
...
expansions/script/c21520119.lua
View file @
68013d8c
...
...
@@ -33,7 +33,8 @@ function c21520119.dcon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsReason
(
REASON_SUMMON
)
and
c
:
GetReasonCard
():
IsSetCard
(
0x491
)
end
function
c21520119
.
dtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
end
-- if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
...
...
expansions/script/c21520121.lua
View file @
68013d8c
...
...
@@ -30,7 +30,8 @@ function c21520121.descon(e,tp,eg,ep,ev,re,r,rp)
end
function
c21520121
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_ONFIELD
)
and
chkc
:
IsDestructable
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
-- if chk==0 then return Duel.IsExistingTarget(Card.IsDestructable,tp,0,LOCATION_ONFIELD,1,nil) end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
...
...
expansions/script/c21520131.lua
View file @
68013d8c
...
...
@@ -53,7 +53,8 @@ function c21520131.spcon(e,c)
end
function
c21520131
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsDestructable
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
-- if chk==0 then return Duel.IsExistingTarget(Card.IsDestructable,tp,0,LOCATION_MZONE,1,nil) end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
...
...
expansions/script/c21520172.lua
View file @
68013d8c
...
...
@@ -123,11 +123,10 @@ function c21520172.thcon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
function
c21520172
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
e
:
GetHandler
():
GetMaterial
():
IsContains
(
chkc
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
end
-- if chk==0 then return Duel.IsExistingTarget(c21520172.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
if
chk
==
0
then
local
g2
=
e
:
GetHandler
():
GetMaterial
()
return
g2
:
IsExists
(
c21520172
.
thfilter
,
1
,
nil
,
e
:
GetHandler
())
end
-- if chk==0 then return e:GetHandler():GetMaterial():IsExists(c21520172.thfilter,1,nil,e:GetHandler()) end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g1
=
e
:
GetHandler
():
GetMaterial
()
local
g
=
g1
:
FilterSelect
(
tp
,
c21520172
.
thfilter
,
1
,
1
,
nil
,
e
:
GetHandler
())
...
...
expansions/script/c21520173.lua
View file @
68013d8c
...
...
@@ -114,8 +114,10 @@ function c21520173.sortcon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
function
c21520173
.
sorttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
end
-- if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>4 end
if
chk
==
0
then
return
true
end
end
function
c21520173
.
sortop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
<
5
then
return
end
Duel
.
SortDecktop
(
tp
,
tp
,
5
)
end
expansions/script/c21520174.lua
View file @
68013d8c
...
...
@@ -130,8 +130,8 @@ function c21520174.spcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c21520174
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c21520174
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c21520174
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
-- if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingTarget(c21520174.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
if
chk
==
0
then
return
true
end
local
mg
=
Duel
.
GetMatchingGroup
(
c21520174
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
local
ct
=
math.min
(
3
,
Duel
.
GetMZoneCount
(
tp
))
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
ct
>
1
then
ct
=
1
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