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
ad229644
Commit
ad229644
authored
Nov 11, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update xyz
parent
8f37d226
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
script/c37564765.lua
script/c37564765.lua
+23
-2
No files found.
script/c37564765.lua
View file @
ad229644
...
...
@@ -296,6 +296,27 @@ end
function
cm
.
XyzProcedureRankCheck
(
g
,
xyzc
)
return
g
:
GetClassCount
(
Card
.
GetRank
)
==
1
end
function
cm
.
XyzProcedureCustomTuneMagicianFilter
(
c
,
te
)
local
f
=
te
:
GetValue
()
return
f
(
te
,
c
)
end
function
cm
.
XyzProcedureCustomTuneMagicianCheck
(
c
,
g
)
local
eset
=
{
c
:
FilterEffect
(
EFFECT_TUNE_MAGICIAN_X
)}
for
_
,
te
in
ipairs
(
eset
)
do
if
g
:
IsExists
(
cm
.
XyzProcedureCustomTuneMagicianFilter
,
1
,
c
,
te
)
then
return
true
end
end
return
false
end
function
cm
.
XyzProcedureCustomCheck
(
g
,
xyzc
,
tp
,
gf
)
if
EFFECT_MUST_BE_XMATERIAL
then
local
eset
=
{
Duel
.
FilterPlayerEffect
(
tp
,
EFFECT_MUST_BE_XMATERIAL
)}
for
_
,
te
in
ipairs
(
eset
)
do
if
not
g
:
IsContains
(
te
:
GetHandler
())
then
return
false
end
end
end
if
g
:
IsExists
(
cm
.
XyzProcedureCustomTuneMagicianCheck
,
1
,
nil
,
g
)
then
return
false
end
return
true
end
function
cm
.
AddXyzProcedureCustom
(
c
,
func
,
gf
,
minc
,
maxc
,
xm
,
...
)
local
ext_params
=
{
...
}
c
:
EnableReviveLimit
()
...
...
@@ -333,7 +354,7 @@ function cm.XyzProcedureCustomCondition(func,gf,minct,maxct,ext_params)
else
mg
=
Duel
.
GetMatchingGroup
(
cm
.
XyzProcedureCustomFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
c
,
func
,
ext_params
)
end
return
maxc
>=
minc
and
cm
.
CheckGroup
(
mg
,
cm
.
CheckFieldFilter
,
nil
,
minc
,
maxc
,
tp
,
c
,
gf
,
c
)
return
maxc
>=
minc
and
cm
.
CheckGroup
(
mg
,
cm
.
CheckFieldFilter
,
nil
,
minc
,
maxc
,
tp
,
c
,
cm
.
XyzProcedureCustomCheck
,
c
,
tp
,
gf
)
end
end
function
cm
.
XyzProcedureCustomTarget
(
func
,
gf
,
minct
,
maxct
,
ext_params
)
...
...
@@ -354,7 +375,7 @@ function cm.XyzProcedureCustomTarget(func,gf,minct,maxct,ext_params)
minc
=
math.max
(
minc
,
min
)
maxc
=
math.min
(
maxc
,
max
)
end
g
=
cm
.
SelectGroupWithCancel
(
tp
,
HINTMSG_XMATERIAL
,
mg
,
cm
.
CheckFieldFilter
,
nil
,
minc
,
maxc
,
tp
,
c
,
gf
,
c
)
g
=
cm
.
SelectGroupWithCancel
(
tp
,
HINTMSG_XMATERIAL
,
mg
,
cm
.
CheckFieldFilter
,
nil
,
minc
,
maxc
,
tp
,
c
,
cm
.
XyzProcedureCustomCheck
,
c
,
tp
,
gf
)
end
if
g
then
g
:
KeepAlive
()
...
...
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