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
Ai
ygopro-222DIY-cards
Commits
5fb3b92e
Commit
5fb3b92e
authored
Feb 23, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lonely
parent
d5443163
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
10 deletions
+9
-10
expansions/script/c33400474.lua
expansions/script/c33400474.lua
+3
-2
expansions/script/c47530045.lua
expansions/script/c47530045.lua
+1
-1
expansions/script/c75646612.lua
expansions/script/c75646612.lua
+2
-4
expansions/script/c75646626.lua
expansions/script/c75646626.lua
+1
-1
expansions/script/c81014037.lua
expansions/script/c81014037.lua
+2
-2
No files found.
expansions/script/c33400474.lua
View file @
5fb3b92e
...
...
@@ -27,12 +27,13 @@ end
function
c33400474
.
filter
(
c
,
e
,
tp
,
nm
)
return
c
:
IsSetCard
(
0x341
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsRank
(
nm
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
function
c33400474
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
1
then
return
false
end
e
:
SetLabel
(
0
)
return
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
return
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsExistingMatchingCard
(
c33400474
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33400474
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
...
@@ -43,7 +44,7 @@ function c33400474.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c33400474
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
FromEx
(
tp
,
tp
,
nil
,
c
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
nm
...
...
expansions/script/c47530045.lua
View file @
5fb3b92e
...
...
@@ -28,7 +28,7 @@ function c47530045.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_SPSUM_PARAM
)
e2
:
SetRange
(
LOCATION_
GRAVE
+
LOCATION_HAND
)
e2
:
SetRange
(
LOCATION_
EXTRA
+
LOCATION_HAND
)
e2
:
SetTargetRange
(
POS_FACEUP_DEFENSE
,
0
)
e2
:
SetCountLimit
(
1
,
47530049
)
e2
:
SetCondition
(
c47530045
.
spcon
)
...
...
expansions/script/c75646612.lua
View file @
5fb3b92e
...
...
@@ -28,7 +28,6 @@ end
function
c75646612
.
cfilter
(
c
,
tp
)
if
c
:
IsLocation
(
LOCATION_GRAVE
)
then
return
c
:
IsHasEffect
(
75646628
,
tp
)
and
c
:
IsAbleToRemoveAsCost
()
end
return
aux
.
IsCodeListed
(
c
,
75646600
)
and
c
:
IsAbleToGraveAsCost
()
and
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
end
function
c75646612
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
loc
=
LOCATION_ONFIELD
+
LOCATION_HAND
+
LOCATION_GRAVE
...
...
@@ -54,10 +53,9 @@ end
function
c75646612
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
and
(
e
:
GetLabel
()
==
1
or
Duel
.
GetFlagEffect
(
tp
,
75646600
)
~=
0
)
and
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
75646612
,
2
))
then
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
and
(
e
:
GetLabel
()
==
1
or
Duel
.
GetFlagEffect
(
tp
,
75646600
)
>
0
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
75646612
,
2
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
tg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
BreakEffect
()
Duel
.
SendtoDeck
(
tg
,
nil
,
2
,
REASON_EFFECT
)
end
...
...
expansions/script/c75646626.lua
View file @
5fb3b92e
...
...
@@ -30,7 +30,7 @@ function c75646626.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetRange
(
LOCATION_
S
ZONE
)
e3
:
SetRange
(
LOCATION_
M
ZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetValue
(
c75646626
.
val
)
c
:
RegisterEffect
(
e3
)
...
...
expansions/script/c81014037.lua
View file @
5fb3b92e
...
...
@@ -33,11 +33,11 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
cfilter
(
c
)
return
c
:
IsCode
(
37564765
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsCode
(
37564765
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TO
GRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TO
DECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
cf
=
g
:
Filter
(
Card
.
IsFacedown
,
nil
)
if
cf
:
GetCount
()
>
0
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