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
2422c427
Commit
2422c427
authored
Nov 21, 2019
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cdb and lua fix
parent
98a7ba2d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
6 deletions
+2
-6
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c81041000.lua
expansions/script/c81041000.lua
+1
-5
expansions/script/c81041026.lua
expansions/script/c81041026.lua
+1
-1
No files found.
expansions/222DIY.cdb
View file @
2422c427
No preview for this file type
expansions/script/c81041000.lua
View file @
2422c427
...
@@ -6,7 +6,6 @@ function c81041000.initial_effect(c)
...
@@ -6,7 +6,6 @@ function c81041000.initial_effect(c)
e0
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e0
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e0
:
SetCode
(
EVENT_FREE_CHAIN
)
e0
:
SetCode
(
EVENT_FREE_CHAIN
)
e0
:
SetCountLimit
(
1
,
81041000
+
EFFECT_COUNT_CODE_OATH
)
e0
:
SetCountLimit
(
1
,
81041000
+
EFFECT_COUNT_CODE_OATH
)
e0
:
SetCost
(
c81041000
.
cost
)
e0
:
SetTarget
(
c81041000
.
target
)
e0
:
SetTarget
(
c81041000
.
target
)
e0
:
SetOperation
(
c81041000
.
activate
)
e0
:
SetOperation
(
c81041000
.
activate
)
c
:
RegisterEffect
(
e0
)
c
:
RegisterEffect
(
e0
)
...
@@ -33,10 +32,6 @@ function c81041000.initial_effect(c)
...
@@ -33,10 +32,6 @@ function c81041000.initial_effect(c)
e3
:
SetOperation
(
c81041000
.
drop
)
e3
:
SetOperation
(
c81041000
.
drop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c81041000
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
81041000
,
0
))
end
function
c81041000
.
filter
(
c
)
function
c81041000
.
filter
(
c
)
return
c
:
IsCode
(
81041005
)
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
81041005
)
and
c
:
IsAbleToHand
()
end
end
...
@@ -46,6 +41,7 @@ function c81041000.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -46,6 +41,7 @@ function c81041000.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c81041000
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c81041000
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
81041000
,
0
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c81041000
.
filter
),
tp
,
LOCATION_GRAVE
+
LOCATION_DECK
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c81041000
.
filter
),
tp
,
LOCATION_GRAVE
+
LOCATION_DECK
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
expansions/script/c81041026.lua
View file @
2422c427
...
@@ -22,12 +22,12 @@ end
...
@@ -22,12 +22,12 @@ end
function
c81041026
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c81041026
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
e
:
GetHandler
():
RegisterFlagEffect
(
81041026
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
81041026
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
81041026
,
0
))
end
end
function
c81041026
.
filter
(
c
,
e
,
tp
)
function
c81041026
.
filter
(
c
,
e
,
tp
)
return
c
:
IsAttack
(
1550
)
and
c
:
IsDefense
(
1050
)
and
c
:
IsType
(
TYPE_PENDULUM
)
return
c
:
IsAttack
(
1550
)
and
c
:
IsDefense
(
1050
)
and
c
:
IsType
(
TYPE_PENDULUM
)
end
end
function
c81041026
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c81041026
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
81041026
,
0
))
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
c81041026
.
filter
,
e
,
tp
,
mg
,
nil
,
Card
.
GetLevel
,
"Greater"
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
c81041026
.
filter
,
e
,
tp
,
mg
,
nil
,
Card
.
GetLevel
,
"Greater"
)
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
81041026
,
1
))
then
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
81041026
,
1
))
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