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
400cd2f2
Commit
400cd2f2
authored
Mar 29, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hole
parent
7050186f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
15 deletions
+21
-15
expansions/script/c81040041.lua
expansions/script/c81040041.lua
+20
-14
expansions/script/c81040069.lua
expansions/script/c81040069.lua
+1
-1
No files found.
expansions/script/c81040041.lua
View file @
400cd2f2
...
...
@@ -5,8 +5,8 @@ function c81040041.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c
81040041
.
target
)
e1
:
SetOperation
(
c
81040041
.
activate
)
e1
:
SetTarget
(
c
m
.
target
)
e1
:
SetOperation
(
c
m
.
activate
)
c
:
RegisterEffect
(
e1
)
--set
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -19,35 +19,41 @@ function c81040041.initial_effect(c)
e2
:
SetOperation
(
c81040041
.
setop
)
c
:
RegisterEffect
(
e2
)
end
function
c
81040041
.
filter
(
c
,
e
,
tp
)
function
c
m
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x81c
)
end
function
c
81040041
.
cfilter
(
c
)
return
c
:
IsFace
down
()
or
not
(
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsType
(
TYPE_MONSTER
)
)
function
c
m
.
cfilter
(
c
)
return
c
:
IsFace
up
()
and
c
:
IsType
(
TYPE_RITUAL
)
end
function
c
81040041
.
mfilter
(
c
)
function
c
m
.
mfilter
(
c
)
return
c
:
IsSetCard
(
0x81c
)
end
function
c
81040041
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
m
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
mg2
=
nil
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
>
0
and
not
Duel
.
IsExistingMatchingCard
(
c81040041
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
then
e
:
SetLabel
(
1
)
mg2
=
Duel
.
GetMatchingGroup
(
aux
.
RitualExtraFilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
c
81040041
.
mfilter
)
local
ug
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
)
if
ug
:
GetCount
()
>
0
and
ug
:
FilterCount
(
cm
.
cfilter
,
nil
)
==
sg
:
GetCount
()
then
mg2
=
Duel
.
GetMatchingGroup
(
aux
.
RitualExtraFilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
c
m
.
mfilter
)
end
return
Duel
.
IsExistingMatchingCard
(
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
c
81040041
.
filter
,
e
,
tp
,
mg
,
mg2
,
Card
.
GetLevel
,
"Greater"
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
c
m
.
filter
,
e
,
tp
,
mg
,
mg2
,
Card
.
GetLevel
,
"Greater"
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
if
ug
:
GetCount
()
>
0
and
ug
:
FilterCount
(
cm
.
cfilter
,
nil
)
==
sg
:
GetCount
()
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
0
,
tp
,
LOCATION_GRAVE
)
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
c
81040041
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
mg2
=
nil
if
e
:
GetLabel
()
==
1
then
mg2
=
Duel
.
GetMatchingGroup
(
aux
.
RitualExtraFilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
c
81040041
.
mfilter
)
mg2
=
Duel
.
GetMatchingGroup
(
aux
.
RitualExtraFilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
c
m
.
mfilter
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
c
81040041
.
filter
,
e
,
tp
,
mg
,
mg2
,
Card
.
GetLevel
,
"Greater"
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
c
m
.
filter
,
e
,
tp
,
mg
,
mg2
,
Card
.
GetLevel
,
"Greater"
)
local
tc
=
tg
:
GetFirst
()
if
tc
then
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
...
...
expansions/script/c81040069.lua
View file @
400cd2f2
...
...
@@ -62,7 +62,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_GRAVE
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsType
(
TYPE_RITUAL
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsSetCard
(
0x81c
)
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
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