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
adb99b6a
Commit
adb99b6a
authored
Nov 21, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
majyo
parent
89f1725d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
script/c37564701.lua
script/c37564701.lua
+17
-4
No files found.
script/c37564701.lua
View file @
adb99b6a
...
...
@@ -68,9 +68,16 @@ function cm.xyzcon(e,c,og,min,max)
else
mg
=
Duel
.
GetMatchingGroup
(
cm
.
xyzfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
c
)
local
exg
=
Duel
.
GetMatchingGroup
(
cm
.
xyzfilter1
,
tp
,
LOCATION_PZONE
,
0
,
nil
,
c
)
if
exg
:
GetCount
()
==
2
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
exg
,
c
)
>
0
and
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
then
return
true
end
if
exg
:
GetCount
()
==
2
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
exg
,
c
)
>
0
and
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
EFFECT_MUST_BE_XMATERIAL
)
then
return
true
end
end
return
Senya
.
CheckGroup
(
mg
,
Senya
.
CheckFieldFilter
,
nil
,
minc
,
maxc
,
tp
,
c
)
local
sg
=
Group
.
CreateGroup
()
local
ce
=
{
Duel
.
IsPlayerAffectedByEffect
(
EFFECT_MUST_BE_XMATERIAL
)}
for
_
,
te
in
ipairs
(
ce
)
do
local
tc
=
te
:
GetHandler
()
if
not
mg
:
IsContains
(
tc
)
then
return
false
end
sg
:
AddCard
(
tc
)
end
return
Senya
.
CheckGroup
(
mg
,
Senya
.
CheckFieldFilter
,
sg
,
minc
,
maxc
,
tp
,
c
)
end
function
cm
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
og
,
min
,
max
)
local
g
=
nil
...
...
@@ -89,7 +96,7 @@ function cm.xyzop(e,tp,eg,ep,ev,re,r,rp,c,og,min,max)
else
mg
=
Duel
.
GetMatchingGroup
(
cm
.
xyzfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
c
)
local
exg
=
Duel
.
GetMatchingGroup
(
cm
.
xyzfilter1
,
tp
,
LOCATION_PZONE
,
0
,
nil
,
c
)
if
exg
:
GetCount
()
==
2
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
exg
,
c
)
>
0
and
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
and
(
not
Senya
.
CheckGroup
(
mg
,
Senya
.
CheckFieldFilter
,
nil
,
minc
,
maxc
,
tp
,
c
)
or
Duel
.
SelectYesNo
(
tp
,
m
*
16
))
then
if
exg
:
GetCount
()
==
2
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
exg
,
c
)
>
0
and
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
EFFECT_MUST_BE_XMATERIAL
)
and
(
not
Senya
.
CheckGroup
(
mg
,
Senya
.
CheckFieldFilter
,
nil
,
minc
,
maxc
,
tp
,
c
)
or
Duel
.
SelectYesNo
(
tp
,
m
*
16
))
then
Duel
.
HintSelection
(
exg
)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
c
:
SetMaterial
(
exg
)
...
...
@@ -97,7 +104,13 @@ function cm.xyzop(e,tp,eg,ep,ev,re,r,rp,c,og,min,max)
return
end
end
g
=
Senya
.
SelectGroup
(
tp
,
HINTMSG_XMATERIAL
,
mg
,
Senya
.
CheckFieldFilter
,
nil
,
minc
,
maxc
,
tp
,
c
)
local
sg
=
Group
.
CreateGroup
()
local
ce
=
{
Duel
.
IsPlayerAffectedByEffect
(
EFFECT_MUST_BE_XMATERIAL
)}
for
_
,
te
in
ipairs
(
ce
)
do
local
tc
=
te
:
GetHandler
()
sg
:
AddCard
(
tc
)
end
g
=
Senya
.
SelectGroup
(
tp
,
HINTMSG_XMATERIAL
,
mg
,
Senya
.
CheckFieldFilter
,
sg
,
minc
,
maxc
,
tp
,
c
)
end
c
:
SetMaterial
(
g
)
Senya
.
OverlayGroup
(
c
,
g
,
false
,
true
)
...
...
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