Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
781b16e3
Commit
781b16e3
authored
Nov 10, 2017
by
Momobako
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Push by Appveyor
parent
19518648
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
expansions/script/c33700190.lua
expansions/script/c33700190.lua
+4
-4
No files found.
expansions/script/c33700190.lua
View file @
781b16e3
...
@@ -36,7 +36,7 @@ function cm.initial_effect(c)
...
@@ -36,7 +36,7 @@ function cm.initial_effect(c)
e3
:
SetRange
(
LOCATION_HAND
)
e3
:
SetRange
(
LOCATION_HAND
)
e3
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e3
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
return
eg
:
GetCount
()
==
1
and
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsPreviousLocation
(
LOCATION_DECK
)
and
tc
:
IsPreviousControler
(
1
-
tp
)
and
(
not
tc
:
IsReason
(
REASON_DRAW
)
or
tc
:
IsPublic
())
return
eg
:
GetCount
()
==
1
and
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsPreviousLocation
(
LOCATION_DECK
)
and
tc
:
GetPreviousControler
()
==
1
-
tp
and
(
not
tc
:
IsReason
(
REASON_DRAW
)
or
tc
:
IsPublic
())
end
)
end
)
e3
:
SetTarget
(
cm
.
SelfSpsummonTarget
)
e3
:
SetTarget
(
cm
.
SelfSpsummonTarget
)
e3
:
SetOperation
(
cm
.
SelfSpsummonTarget
)
e3
:
SetOperation
(
cm
.
SelfSpsummonTarget
)
...
@@ -99,7 +99,7 @@ function cm.Copy(c,tc)
...
@@ -99,7 +99,7 @@ function cm.Copy(c,tc)
c
:
ResetFlagEffect
(
m
)
c
:
ResetFlagEffect
(
m
)
c
:
ResetEffect
(
ccd
,
RESET_COPY
)
c
:
ResetEffect
(
ccd
,
RESET_COPY
)
end
end
local
ecd
=
c
:
CopyEffect
(
rcd
,
RESET_EVENT
+
0x1fe0000
,
1
)
local
ecd
=
c
:
CopyEffect
(
code
,
RESET_EVENT
+
0x1fe0000
,
1
)
c
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
,
ecd
)
c
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
,
ecd
)
end
end
function
cm
.
SelfSpsummonTarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
SelfSpsummonTarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
@@ -121,7 +121,7 @@ function cm.copyfilter(c)
...
@@ -121,7 +121,7 @@ function cm.copyfilter(c)
end
end
function
cm
.
copytg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
cm
.
copytg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
cm
.
copyfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
cm
.
copyfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
copyfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
and
c
:
GetFlagEffect
(
m
-
700000
)
==
0
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
copyfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
and
e
:
GetHandler
()
:
GetFlagEffect
(
m
-
700000
)
==
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
cm
.
copyfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
cm
.
copyfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
end
...
@@ -129,7 +129,7 @@ function cm.copyop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -129,7 +129,7 @@ function cm.copyop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsType
(
TYPE_TOKEN
)
and
c
:
GetFlagEffect
(
m
-
700000
)
==
0
then
if
tc
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsType
(
TYPE_TOKEN
)
and
c
:
GetFlagEffect
(
m
-
700000
)
==
0
then
cm
.
Copy
(
c
,
code
)
cm
.
Copy
(
c
,
tc
)
c
:
RegisterFlagEffect
(
m
-
700000
,
RESET_EVENT
+
0x1fe0000
,
0
,
10
)
c
:
RegisterFlagEffect
(
m
-
700000
,
RESET_EVENT
+
0x1fe0000
,
0
,
10
)
end
end
end
end
\ No newline at end of file
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