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
0059bf52
Commit
0059bf52
authored
May 13, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tnndx
parent
74067130
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
41 deletions
+41
-41
expansions/script/c33401302.lua
expansions/script/c33401302.lua
+1
-1
expansions/script/c33401402.lua
expansions/script/c33401402.lua
+40
-40
No files found.
expansions/script/c33401302.lua
View file @
0059bf52
...
...
@@ -12,7 +12,7 @@ function c33401302.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetRange
(
LOCATION_
S
ZONE
)
e2
:
SetRange
(
LOCATION_
F
ZONE
)
e2
:
SetCountLimit
(
1
,
33401302
)
e2
:
SetCondition
(
c33401302
.
spcon
)
e2
:
SetTarget
(
c33401302
.
sptg
)
...
...
expansions/script/c33401402.lua
View file @
0059bf52
...
...
@@ -31,16 +31,13 @@ function cm.seqcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
cm
.
chkfilter1
(
c
,
e
,
tp
)
return
(
not
c
:
IsSetCard
(
0xc342
))
and
c
:
IsSetCard
(
0x341
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
IsPlayerCanSpecialSummon
(
tp
,
0
,
POS_FACEUP
,
1
-
tp
,
c
)
return
(
not
c
:
IsSetCard
(
0xc342
))
and
c
:
IsSetCard
(
0x341
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
1
-
tp
)
end
function
cm
.
chkfilter2
(
c
,
tp
)
return
c
:
IsSetCard
(
0x341
)
and
c
:
IsType
(
TYPE_FIELD
)
and
(
c
:
IsAbleToHand
()
or
c
:
GetActivateEffect
():
IsActivatable
(
tp
))
end
function
cm
.
seqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
Card
.
IsSetCard
,
tp
,
LOCATION_FZONE
,
0
,
1
,
nil
,
0x341
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
chkfilter1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
chkfilter2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
end
function
cm
.
seqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_FZONE
,
0
,
1
,
nil
,
0x341
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
chkfilter1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
chkfilter2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
nil
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
...
...
@@ -51,7 +48,7 @@ local c=e:GetHandler()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g1
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc1
=
g1
:
GetFirst
()
Duel
.
SpecialSummon
(
tc1
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
if
Duel
.
SpecialSummonStep
(
tc1
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
...
...
@@ -62,7 +59,6 @@ local c=e:GetHandler()
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc1
:
RegisterEffect
(
e2
)
end
if
Duel
.
IsExistingMatchingCard
(
cm
.
chkfilter2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
2
))
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
chkfilter2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
)
...
...
@@ -84,13 +80,17 @@ local c=e:GetHandler()
te
:
UseCountLimit
(
tp
,
1
,
true
)
local
tep
=
tc
:
GetControler
()
local
cost
=
te
:
GetCost
()
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
Duel
.
RaiseEvent
(
tc
,
4179255
,
te
,
0
,
tp
,
tp
,
Duel
.
GetCurrentChain
())
end
end
end
Duel
.
SpecialSummonComplete
()
end
end
end
function
cm
.
filter
(
c
,
e
,
tp
,
re
)
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
...
...
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