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
1685cc75
Commit
1685cc75
authored
Mar 29, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得得得得得
parent
c05a552d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
10 deletions
+17
-10
expansions/script/c12010007.lua
expansions/script/c12010007.lua
+3
-3
expansions/script/c12010042.lua
expansions/script/c12010042.lua
+8
-0
expansions/script/c33200724.lua
expansions/script/c33200724.lua
+2
-2
expansions/script/c33200730.lua
expansions/script/c33200730.lua
+4
-5
No files found.
expansions/script/c12010007.lua
View file @
1685cc75
...
...
@@ -33,7 +33,7 @@ function c12010007.thcon(e,tp,eg,ep,ev,re,r,rp)
return
ep
==
1
-
tp
end
function
c12010007
.
thfilter
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0xfba
)
or
c
:
IsSetCard
(
0x1fbd
)
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xfba
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c12010007
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
@@ -49,7 +49,7 @@ function c12010007.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c12010007
.
spfilter
(
c
)
return
(
c
:
IsSetCard
(
0xfba
)
or
c
:
IsSetCard
(
0x1fbd
)
)
and
c
:
IsFaceup
()
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xfba
)
and
c
:
IsFaceup
()
and
c
:
IsAbleToHand
()
end
function
c12010007
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c12010007
.
spfilter
(
chkc
)
and
chkc
:
IsControler
(
tp
)
end
...
...
@@ -60,7 +60,7 @@ function c12010007.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c12010007
.
spthfilter
(
c
)
return
c
:
IsSetCard
(
0xfbc
)
and
c
:
IsAbleToHand
()
and
c
:
IsType
(
TYPE_TRAP
)
return
c
:
IsSetCard
(
0xfbc
)
and
c
:
IsAbleToHand
()
and
c
:
IsType
(
TYPE_TRAP
+
TYPE_SPELL
)
end
function
c12010007
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
expansions/script/c12010042.lua
View file @
1685cc75
...
...
@@ -16,6 +16,14 @@ function c12010042.initial_effect(c)
e2
:
SetCondition
(
c12010042
.
condition
)
e2
:
SetOperation
(
c12010042
.
operation
)
c
:
RegisterEffect
(
e2
)
--indes
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
--SearchCard
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_ATKCHANGE
)
...
...
expansions/script/c33200724.lua
View file @
1685cc75
...
...
@@ -20,7 +20,7 @@ function c33200724.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c33200724
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xc32a
)
and
not
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
_DEFENSE
)
return
c
:
IsSetCard
(
0xc32a
)
and
not
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
c33200724
.
filter2
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCanAddCounter
(
0x32a
,
2
)
...
...
@@ -35,7 +35,7 @@ function c33200724.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33200724
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
_DEFENSE
)
and
Duel
.
IsExistingMatchingCard
(
c33200724
.
filter2
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
33200724
,
2
))
then
if
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
and
Duel
.
IsExistingMatchingCard
(
c33200724
.
filter2
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
33200724
,
2
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_COUNTER
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c33200724
.
filter2
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
if
sg
:
GetCount
()
>
0
then
...
...
expansions/script/c33200730.lua
View file @
1685cc75
...
...
@@ -6,7 +6,7 @@ function c33200730.initial_effect(c)
--tohand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
33200730
,
0
))
e1
:
SetCategory
(
CATEGORY_
SPECIAL_SUMMON
+
CATEGORY_REMOVE
)
e1
:
SetCategory
(
CATEGORY_
TOHAND
+
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -40,7 +40,7 @@ function c33200730.spfilter(c)
return
c
:
IsSetCard
(
0xc32a
)
and
c
:
IsFaceup
()
and
c
:
IsAbleToRemove
()
end
function
c33200730
.
thfilter
(
c
)
return
c
:
Is
SetCard
(
0xc32a
)
and
c
:
Is
AbleToHand
()
return
c
:
IsAbleToHand
()
end
function
c33200730
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
...
...
@@ -68,9 +68,8 @@ function c33200730.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
if
Duel
.
IsExistingMatchingCard
(
c33200730
.
thfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
33200730
,
2
))
then
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c33200730
.
thfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
thtc
=
sg
:
GetFirst
()
Duel
.
HintSelection
(
thtc
)
Duel
.
SendtoHand
(
thtc
,
nil
,
REASON_EFFECT
)
Duel
.
HintSelection
(
sg
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
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