Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
Commits
93424740
Commit
93424740
authored
Apr 23, 2014
by
Fluorohydride
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a0cf1785
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
script/utility.lua
script/utility.lua
+4
-10
No files found.
script/utility.lua
View file @
93424740
...
...
@@ -218,13 +218,8 @@ function Auxiliary.XyzCondition2(f,minc,maxc,alterf,desc)
local
ft
=
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
local
ct
=-
ft
if
minc
<=
ct
then
return
false
end
if
og
then
return
og
:
IsExists
(
f
,
minc
,
nil
)
else
if
ct
<
1
and
Duel
.
IsExistingMatchingCard
(
alterf
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
then
return
true
end
local
g
=
Duel
.
GetXyzMaterial
(
c
)
return
g
:
IsExists
(
f
,
minc
,
nil
)
end
if
ct
<
1
and
Duel
.
IsExistingMatchingCard
(
alterf
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
then
return
true
end
Duel
.
CheckXyzMaterial
(
c
,
f
,
minc
,
maxc
,
og
)
end
end
function
Auxiliary
.
XyzOperation2
(
f
,
minc
,
maxc
,
alterf
,
desc
,
op
)
...
...
@@ -235,8 +230,7 @@ function Auxiliary.XyzOperation2(f,minc,maxc,alterf,desc,op)
else
local
ft
=
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
local
ct
=-
ft
local
g
=
Duel
.
GetXyzMaterial
(
c
)
local
b1
=
g
:
IsExists
(
f
,
minc
,
nil
)
local
b1
=
Duel
.
CheckXyzMaterial
(
c
,
f
,
minc
,
maxc
,
og
)
local
b2
=
ct
<
1
and
Duel
.
IsExistingMatchingCard
(
alterf
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
if
(
b1
and
b2
and
Duel
.
SelectYesNo
(
tp
,
desc
))
or
((
not
b1
)
and
b2
)
then
...
...
@@ -249,7 +243,7 @@ function Auxiliary.XyzOperation2(f,minc,maxc,alterf,desc,op)
c
:
SetMaterial
(
mg
)
if
op
~=
nil
then
op
(
e
,
tp
)
end
else
local
mg
=
g
:
FilterSelect
(
tp
,
f
,
minc
,
maxc
,
nil
)
local
mg
=
Duel
.
SelectXyzMaterial
(
tp
,
c
,
f
,
minc
,
maxc
)
c
:
SetMaterial
(
mg
)
Duel
.
Overlay
(
c
,
mg
)
end
...
...
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