Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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-scripts
Commits
1b1a4525
Commit
1b1a4525
authored
May 05, 2018
by
Aephiex
Committed by
nanahira
May 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge CanPlayerXyz.... into MustMaterialCheck (#1044)
parent
ac0e1bd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
utility.lua
utility.lua
+4
-4
No files found.
utility.lua
View file @
1b1a4525
...
@@ -265,7 +265,10 @@ function Auxiliary.GetMustMaterialGroup(tp,code)
...
@@ -265,7 +265,10 @@ function Auxiliary.GetMustMaterialGroup(tp,code)
end
end
function
Auxiliary
.
MustMaterialCheck
(
v
,
tp
,
code
)
function
Auxiliary
.
MustMaterialCheck
(
v
,
tp
,
code
)
local
g
=
Auxiliary
.
GetMustMaterialGroup
(
tp
,
code
)
local
g
=
Auxiliary
.
GetMustMaterialGroup
(
tp
,
code
)
if
not
v
then
return
#
g
==
0
end
if
not
v
then
if
code
==
EFFECT_MUST_BE_XMATERIAL
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
67120578
)
then
return
false
end
return
#
g
==
0
end
local
t
=
Auxiliary
.
GetValueType
(
v
)
local
t
=
Auxiliary
.
GetValueType
(
v
)
for
tc
in
Auxiliary
.
Next
(
g
)
do
for
tc
in
Auxiliary
.
Next
(
g
)
do
if
(
t
==
"Card"
and
v
~=
tc
)
if
(
t
==
"Card"
and
v
~=
tc
)
...
@@ -533,9 +536,6 @@ end
...
@@ -533,9 +536,6 @@ end
function
Auxiliary
.
XyzAlterFilter
(
c
,
alterf
,
xyzc
,
e
,
tp
,
op
)
function
Auxiliary
.
XyzAlterFilter
(
c
,
alterf
,
xyzc
,
e
,
tp
,
op
)
return
alterf
(
c
)
and
c
:
IsCanBeXyzMaterial
(
xyzc
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
xyzc
)
>
0
and
(
not
op
or
op
(
e
,
tp
,
0
,
c
))
return
alterf
(
c
)
and
c
:
IsCanBeXyzMaterial
(
xyzc
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
xyzc
)
>
0
and
(
not
op
or
op
(
e
,
tp
,
0
,
c
))
end
end
function
Auxiliary
.
CanPlayerXyzSummonCardWithoutMaterial
(
tp
)
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
67120578
)
==
nil
and
Auxiliary
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_XMATERIAL
)
end
--Xyz monster, lv k*n
--Xyz monster, lv k*n
function
Auxiliary
.
AddXyzProcedure
(
c
,
f
,
lv
,
ct
,
alterf
,
desc
,
maxct
,
op
)
function
Auxiliary
.
AddXyzProcedure
(
c
,
f
,
lv
,
ct
,
alterf
,
desc
,
maxct
,
op
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
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