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
e8634f5e
Commit
e8634f5e
authored
Dec 03, 2019
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
88e6d6e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
expansions/script/c81022004.lua
expansions/script/c81022004.lua
+4
-4
expansions/script/c82207007.lua
expansions/script/c82207007.lua
+3
-2
No files found.
expansions/script/c81022004.lua
View file @
e8634f5e
...
@@ -39,7 +39,7 @@ function c81022004.filterF(c,tp,mg,rc)
...
@@ -39,7 +39,7 @@ function c81022004.filterF(c,tp,mg,rc)
else
return
false
end
else
return
false
end
end
end
function
c81022004
.
mfilter
(
c
)
function
c81022004
.
mfilter
(
c
)
return
c
:
GetLevel
()
>
0
and
bit
.
band
(
c
:
GetType
(),
0x81
)
~
=
0x81
and
c
:
IsAbleToDeck
()
return
c
:
GetLevel
()
>
0
and
bit
.
band
(
c
:
GetType
(),
0x81
)
=
=
0x81
and
c
:
IsAbleToDeck
()
end
end
function
c81022004
.
cfilter
(
c
)
function
c81022004
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
81022000
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
81022000
)
...
@@ -97,9 +97,9 @@ end
...
@@ -97,9 +97,9 @@ end
function
c81022004
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c81022004
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c81022004
.
tdfilter
(
chkc
)
and
chkc
~=
e
:
GetHandler
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c81022004
.
tdfilter
(
chkc
)
and
chkc
~=
e
:
GetHandler
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeck
()
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeck
()
and
Duel
.
IsExistingTarget
(
c81022004
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
e
:
GetHandler
())
end
and
Duel
.
IsExistingTarget
(
c81022004
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c81022004
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectTarget
(
tp
,
c81022004
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
())
g
:
AddCard
(
e
:
GetHandler
())
g
:
AddCard
(
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
...
@@ -114,4 +114,4 @@ function c81022004.tdop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -114,4 +114,4 @@ function c81022004.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
end
end
\ No newline at end of file
expansions/script/c82207007.lua
View file @
e8634f5e
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
cm
.
filter
(
c
,
e
,
tp
)
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_RITUAL
)
return
c
:
IsType
(
TYPE_RITUAL
)
end
end
...
@@ -38,7 +38,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -38,7 +38,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
aux
.
RCheckAdditional
=
cm
.
rcheck
aux
.
RCheckAdditional
=
cm
.
rcheck
aux
.
RGCheckAdditional
=
cm
.
rgcheck
aux
.
RGCheckAdditional
=
cm
.
rgcheck
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
aux
.
RitualUltimateFilter
)
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
cm
.
filter
,
e
,
tp
,
m
,
nil
,
Card
.
GetLevel
,
"Equal"
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
cm
.
filter
,
e
,
tp
,
m
,
nil
,
Card
.
GetLevel
,
"Equal"
)
local
tc
=
tg
:
GetFirst
()
local
tc
=
tg
:
GetFirst
()
if
tc
then
if
tc
then
local
mg
=
m
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
local
mg
=
m
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
...
@@ -65,6 +65,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -65,6 +65,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local
lv
=
tc
:
GetOriginalLevel
()
local
lv
=
tc
:
GetOriginalLevel
()
Duel
.
Damage
(
tp
,
lv
*
1000
,
REASON_EFFECT
)
Duel
.
Damage
(
tp
,
lv
*
1000
,
REASON_EFFECT
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
...
...
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