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
f5c4f369
Commit
f5c4f369
authored
Oct 09, 2019
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix lua
parent
770c9f6b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
expansions/script/c11200088.lua
expansions/script/c11200088.lua
+6
-5
expansions/script/c11200209.lua
expansions/script/c11200209.lua
+1
-1
expansions/script/c65050166.lua
expansions/script/c65050166.lua
+1
-1
No files found.
expansions/script/c11200088.lua
View file @
f5c4f369
...
...
@@ -43,8 +43,8 @@ function c11200088.initial_effect(c)
e4
:
SetCondition
(
c11200088
.
actcon
)
c
:
RegisterEffect
(
e4
)
end
function
c11200088
.
costfilter
(
c
,
ec
,
tp
)
return
c
:
IsCode
(
11200103
,
11200104
)
and
c
:
IsAbleToDeckAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c11200088
.
eqfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
c
,
ec
)
function
c11200088
.
costfilter
(
c
,
tp
)
return
c
:
IsCode
(
11200103
,
11200104
)
and
c
:
IsAbleToDeckAsCost
()
end
function
c11200088
.
eqcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c11200088
.
costfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
...
...
@@ -56,14 +56,15 @@ function c11200088.eqfilter(c,ec)
return
c
:
IsType
(
TYPE_EQUIP
)
and
c
:
CheckEquipTarget
(
ec
)
end
function
c11200088
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c11200088
.
eqfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
ec
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c11200088
.
eqfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
:
GetHandler
())
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
)
end
function
c11200088
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
or
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c11200088
.
eqfilter
)
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
11200088
,
1
)
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c11200088
.
eqfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
c
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
Equip
(
tp
,
tc
,
c
)
...
...
expansions/script/c11200209.lua
View file @
f5c4f369
...
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetRange
(
LOCATION_ONFIELD
+
LOCATION_REMOVED
)
e1
:
SetValue
(
11200
2
03
)
e1
:
SetValue
(
11200
1
03
)
c
:
RegisterEffect
(
e1
)
--spsummon condition
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c65050166.lua
View file @
f5c4f369
...
...
@@ -62,7 +62,7 @@ function c65050166.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c65050166
.
disfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c65050166
.
disfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c65050166
.
disfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c65050166
.
disfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
function
c65050166
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
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