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
2aa4d4f8
Commit
2aa4d4f8
authored
Mar 18, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
87d4041a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
75 additions
and
26 deletions
+75
-26
expansions/script/c12051021.lua
expansions/script/c12051021.lua
+8
-1
expansions/script/c33502501.lua
expansions/script/c33502501.lua
+43
-1
expansions/script/c33503101.lua
expansions/script/c33503101.lua
+21
-22
expansions/script/c33503107.lua
expansions/script/c33503107.lua
+1
-1
expansions/script/c33701366.lua
expansions/script/c33701366.lua
+1
-0
expansions/script/c64800125.lua
expansions/script/c64800125.lua
+1
-1
No files found.
expansions/script/c12051021.lua
View file @
2aa4d4f8
...
...
@@ -51,7 +51,7 @@ function c12051021.efilter(e,te)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
c12051021
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
Card
.
Get
SummonPlayer
,
1
,
nil
,
1
-
tp
)
return
eg
:
IsExists
(
Card
.
Is
SummonPlayer
,
1
,
nil
,
1
-
tp
)
end
function
c12051021
.
filters
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_WINDBEAST
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
@@ -75,6 +75,13 @@ function c12051021.activate2(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g1
:
GetFirst
()
while
tc
do
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
tc
:
RegisterEffect
(
e2
)
tc
=
g1
:
GetNext
()
end
Duel
.
SpecialSummonComplete
()
...
...
expansions/script/c33502501.lua
View file @
2aa4d4f8
...
...
@@ -2,7 +2,14 @@
function
c33502501
.
initial_effect
(
c
)
--
aux
.
AddCodeList
(
c
,
33502501
)
aux
.
AddRitualProcGreater2
(
c
,
c33502501
.
MatFilter
,
LOCATION_HAND
+
LOCATION_DECK
,
c33502501
.
MaxFilter
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c33502501
.
tg
)
e1
:
SetOperation
(
c33502501
.
act
)
c
:
RegisterEffect
(
e1
)
--
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
33502501
,
0
))
...
...
@@ -17,6 +24,41 @@ function c33502501.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--
end
function
c33502501
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
and
aux
.
IsCodeListed
(
c
,
33502501
)
and
Duel
.
IsExistingMatchingCard
(
c33502501
.
matfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
c
,
c
,
e
,
tp
)
end
function
c33502501
.
matfilter
(
c
,
tc
,
e
,
tp
)
if
c
:
GetRitualLevel
(
tc
)
<
tc
:
GetLevel
()
then
return
false
end
if
Duel
.
GetMZoneCount
(
tp
,
c
,
tp
)
<=
0
then
return
false
end
if
tc
.
mat_filter
and
not
tc
.
mat_filter
(
c
,
tp
)
then
return
false
end
if
c
:
IsLocation
(
LOCATION_GRAVE
)
then
return
c
:
IsAbleToRemove
()
and
c
:
IsType
(
TYPE_RITUAL
)
else
return
c
:
IsReleasableByEffect
(
e
)
end
end
function
c33502501
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c33502501
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
0
,
tp
,
LOCATION_GRAVE
)
end
function
c33502501
.
act
(
e
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c33502501
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
if
not
tc
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
matc
=
Duel
.
SelectMatchingCard
(
tp
,
c33502501
.
matfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
1
,
tc
,
tc
,
e
,
tp
):
GetFirst
()
tc
:
SetMaterial
(
Group
.
FromCards
(
matc
))
if
matc
:
IsLocation
(
LOCATION_GRAVE
)
then
if
Duel
.
Remove
(
matc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_RITUAL
)
==
0
then
return
end
else
if
Duel
.
Release
(
matc
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_RITUAL
)
==
0
then
return
end
end
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
end
--
function
c33502501
.
MatFilter
(
c
)
return
aux
.
IsCodeListed
(
c
,
33502501
)
...
...
expansions/script/c33503101.lua
View file @
2aa4d4f8
...
...
@@ -8,7 +8,6 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
op1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_TOGRAVE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -26,22 +25,23 @@ function cm.initial_effect(c)
e3
:
SetCondition
(
cm
.
con3
)
e3
:
SetValue
(
cm
.
val3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetTargetRange
(
1
,
0
)
e4
:
SetCondition
(
cm
.
con3
)
e4
:
SetValue
(
cm
.
val4
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_CANNOT_SSET
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetTargetRange
(
1
,
0
)
e5
:
SetCondition
(
cm
.
con3
)
e5
:
SetTarget
(
cm
.
tg5
)
c
:
RegisterEffect
(
e5
)
--cannot set/activate
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
)
e6
:
SetCode
(
EFFECT_CANNOT_SSET
)
e6
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e6
:
SetRange
(
LOCATION_FZONE
)
e6
:
SetTargetRange
(
1
,
0
)
e6
:
SetTarget
(
cm
.
setlimit
)
c
:
RegisterEffect
(
e6
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_FIELD
)
e7
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e7
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e7
:
SetRange
(
LOCATION_FZONE
)
e7
:
SetTargetRange
(
1
,
0
)
e7
:
SetValue
(
cm
.
actlimit
)
c
:
RegisterEffect
(
e7
)
end
--e1
function
cm
.
tgf1
(
c
,
tp
)
...
...
@@ -104,10 +104,9 @@ function cm.val3(e,te)
return
not
te
:
GetOwner
():
IsSetCard
(
0xca81
)
end
--e4
function
cm
.
val4
(
e
,
re
,
tp
)
function
cm
.
setlimit
(
e
,
c
,
tp
)
return
c
:
IsType
(
TYPE_FIELD
)
end
function
cm
.
actlimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_FIELD
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
--e5
function
cm
.
tg5
(
e
,
c
,
tp
)
return
c
:
IsType
(
TYPE_FIELD
)
end
\ No newline at end of file
expansions/script/c33503107.lua
View file @
2aa4d4f8
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
tg1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
cm
.
con2
)
...
...
expansions/script/c33701366.lua
View file @
2aa4d4f8
...
...
@@ -73,6 +73,7 @@ end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
disfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
disfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
sg
,
REASON_DISCARD
+
REASON_COST
)
...
...
expansions/script/c64800125.lua
View file @
2aa4d4f8
...
...
@@ -19,7 +19,7 @@ function c64800125.thcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
function
c64800125
.
tgfilter
(
c
,
lv
)
return
c
:
IsAbleToGrave
()
and
not
c
:
IsLevel
(
lv
)
return
c
:
IsAbleToGrave
()
and
c
:
IsSetCard
(
0x341a
)
and
not
c
:
IsLevel
(
lv
)
end
function
c64800125
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
c64800125
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
:
GetHandler
():
GetLevel
())
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