Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Nanahira-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
nanahira
Nanahira-Cards
Commits
fcb83a3b
Commit
fcb83a3b
authored
Oct 28, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixsp
parent
0c82e0b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
script/c37564054.lua
script/c37564054.lua
+11
-11
No files found.
script/c37564054.lua
View file @
fcb83a3b
...
@@ -19,16 +19,17 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -19,16 +19,17 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
0
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
0
,
tp
,
LOCATION_EXTRA
)
end
end
function
cm
.
sfilter
(
c
)
function
cm
.
sfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeXyzMaterial
()
return
c
:
IsFaceup
()
and
c
:
IsCanBeXyzMaterial
(
nil
)
end
end
function
cm
.
filter
(
c
,
tg
,
tp
)
function
cm
.
filter
(
c
,
tg
,
tp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
xfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
tg
,
t
c
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
xfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
tg
,
c
)
end
end
function
cm
.
xfilter
(
c
,
tg
,
tc
)
function
cm
.
gcheck
(
g
,
xyzc
)
return
tg
:
IsExists
(
cm
.
mfilter
,
1
,
nil
,
c
,
tc
)
local
ct
=
g
:
GetCount
()
return
xyzc
:
IsXyzSummonable
(
g
,
ct
,
ct
)
end
end
function
cm
.
mfilter
(
c
,
xyzc
,
ex
c
)
function
cm
.
xfilter
(
c
,
tg
,
t
c
)
return
c
:
IsCanBeXyzMaterial
(
xyzc
)
and
exc
:
IsCanBeXyzMaterial
(
xyzc
)
and
xyzc
:
IsXyzSummonable
(
Group
.
FromCards
(
c
,
exc
),
2
,
2
)
return
Senya
.
CheckGroup
(
tg
,
cm
.
gcheck
,
Group
.
FromCards
(
tc
),
2
,
63
,
c
)
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
...
@@ -36,15 +37,14 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,15 +37,14 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetFieldGroup
(
p
,
0
,
LOCATION_HAND
)
local
g
=
Duel
.
GetFieldGroup
(
p
,
0
,
LOCATION_HAND
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
p
,
g
)
Duel
.
ConfirmCards
(
p
,
g
)
if
g
:
IsExists
(
cm
.
filter
,
1
,
nil
,
tg
,
p
)
and
Duel
.
SelectYesNo
(
p
,
37564007
*
16
)
then
if
g
:
IsExists
(
cm
.
filter
,
1
,
nil
,
tg
,
p
)
and
Duel
.
SelectYesNo
(
p
,
m
*
16
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_XMATERIAL
)
local
g1
=
g
:
FilterSelect
(
p
,
cm
.
filter
,
1
,
1
,
nil
,
tg
,
p
)
local
g1
=
g
:
FilterSelect
(
p
,
cm
.
filter
,
1
,
1
,
nil
,
tg
,
p
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_SPSUMMON
)
local
xyzc
=
Duel
.
SelectMatchingCard
(
p
,
cm
.
xfilter
,
p
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
tg
,
g1
:
GetFirst
()):
GetFirst
()
local
xyzc
=
Duel
.
SelectMatchingCard
(
p
,
cm
.
xfilter
,
p
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
tg
,
g1
:
GetFirst
()):
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_XMATERIAL
)
local
mg
=
Senya
.
SelectGroup
(
tp
,
HINTMSG_XMATERIAL
,
tg
,
cm
.
gcheck
,
g1
,
2
,
63
,
xyzc
)
local
g2
=
tg
:
FilterSelect
(
p
,
cm
.
mfilter
,
1
,
1
,
nil
,
xyzc
,
g1
:
GetFirst
())
Duel
.
XyzSummon
(
p
,
xyzc
,
mg
)
g1
:
Merge
(
g2
)
Duel
.
XyzSummon
(
p
,
xyzc
,
g1
)
end
end
end
end
Duel
.
ShuffleHand
(
1
-
p
)
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