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
1ac1f1b0
Commit
1ac1f1b0
authored
Jul 21, 2020
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
thbmlfix
parent
2f701ce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
17 deletions
+15
-17
expansions/script/c1008002.lua
expansions/script/c1008002.lua
+15
-17
No files found.
expansions/script/c1008002.lua
View file @
1ac1f1b0
...
...
@@ -112,25 +112,23 @@ function c1008002.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c1008002
.
penfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x320e
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
function
c1008002
.
penfilter
(
c
)
return
c
:
IsSetCard
(
0x320e
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
end
function
c1008002
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
a1
=
(
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
6
))
local
a2
=
(
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
7
))
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c1008002
.
penfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
and
not
(
a1
and
a2
)
end
function
c1008002
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
(
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
and
Duel
.
IsExistingMatchingCard
(
c1008002
.
penfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
function
c1008002
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
1008002
,
4
)
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
1008002
,
2
))
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c1008002
.
penfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
):
GetFirst
()
if
tc
then
local
fc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
6
)
local
fc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
7
)
if
fc1
and
fc2
then
return
end
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_S
ZONE
,
POS_FACEUP
,
true
)
end
local
c
=
e
:
GetHandler
(
)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
(
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c47598941
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
(
)
if
tc
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_P
ZONE
,
POS_FACEUP
,
true
)
end
end
function
c1008002
.
voidfilter
(
c
)
return
c
:
IsSetCard
(
0x320e
)
and
c
:
IsFaceup
()
...
...
@@ -217,4 +215,4 @@ function c1008002.rmop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
\ No newline at end of file
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