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
43a10dd0
Commit
43a10dd0
authored
Feb 17, 2020
by
gg123gg
Committed by
GitHub
Feb 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4095a7f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
310 additions
and
310 deletions
+310
-310
expansions/script/c12004006.lua
expansions/script/c12004006.lua
+118
-118
expansions/script/c12004026.lua
expansions/script/c12004026.lua
+192
-192
No files found.
expansions/script/c12004006.lua
View file @
43a10dd0
...
@@ -40,7 +40,7 @@ function c12004006.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -40,7 +40,7 @@ function c12004006.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
nil
)
<
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
0
,
LOCATION_MZONE
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_
MZONE
,
LOCATION_MZONE
,
2
,
e
:
GetHandler
())
end
and
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
nil
)
<
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
0
,
LOCATION_MZONE
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_
ONFIELD
,
LOCATION_ONFIELD
,
3
,
e
:
GetHandler
())
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c12004006
.
spfilter1
(
c
,
e
,
tp
)
function
c12004006
.
spfilter1
(
c
,
e
,
tp
)
...
@@ -50,9 +50,9 @@ function c12004006.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,9 +50,9 @@ function c12004006.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
<=
0
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
<=
0
then
return
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_
MZONE
,
LOCATION_MZONE
,
3
,
nil
)
then
if
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_
ONFIELD
,
LOCATION_ONFIELD
,
3
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
Select
Target
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_MZONE
+
LOCATION_PZONE
,
0
,
3
,
3
,
nil
)
local
g
=
Duel
.
Select
MatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
3
,
3
,
nil
)
local
dd
=
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
local
dd
=
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
if
dd
<
3
then
if
dd
<
3
then
if
dd
<
3
then
if
dd
<
3
then
...
...
expansions/script/c12004026.lua
View file @
43a10dd0
...
@@ -170,7 +170,7 @@ function cm.thtg1(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -170,7 +170,7 @@ function cm.thtg1(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
cm
.
thop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
thop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsLocation
(
LOCATION_
DECK
)
and
Duel
.
SendtoDeck
(
c
,
nil
,
0
,
REASON_EFFECT
)
~=
0
then
if
c
:
IsLocation
(
LOCATION_
GRAVE
)
and
Duel
.
SendtoDeck
(
c
,
nil
,
0
,
REASON_EFFECT
)
~=
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter1
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter1
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
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