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
c497f9b7
Commit
c497f9b7
authored
Apr 16, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
54625342
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
23 deletions
+8
-23
c98045062.lua
c98045062.lua
+8
-23
No files found.
c98045062.lua
View file @
c497f9b7
...
@@ -20,17 +20,12 @@ function c98045062.filter1(c)
...
@@ -20,17 +20,12 @@ function c98045062.filter1(c)
return
c
:
IsFaceup
()
and
not
c
:
IsType
(
TYPE_LINK
)
return
c
:
IsFaceup
()
and
not
c
:
IsType
(
TYPE_LINK
)
end
end
function
c98045062
.
filter2
(
c
)
function
c98045062
.
filter2
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsControlerCanBeChanged
()
return
c
:
IsFaceup
()
and
c
:
IsControlerCanBeChanged
(
true
)
end
function
c98045062
.
filter3
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToChangeControler
()
end
end
function
c98045062
.
cfilter
(
c
,
tp
)
function
c98045062
.
cfilter
(
c
,
tp
)
if
c
:
IsControler
(
tp
)
then
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_CONTROL
)
return
Duel
.
IsExistingTarget
(
c98045062
.
filter3
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
if
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
then
ft
=
ft
+
1
end
else
return
ft
>
0
and
Duel
.
IsExistingTarget
(
c98045062
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
c
)
return
Duel
.
IsExistingTarget
(
c98045062
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
c
)
end
end
end
function
c98045062
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c98045062
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
if
chkc
then
...
@@ -65,23 +60,13 @@ function c98045062.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -65,23 +60,13 @@ function c98045062.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c98045062
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c98045062
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
else
else
if
e
:
GetLabel
()
==
0
then
if
e
:
GetLabel
()
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c98045062
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g
,
1
,
0
,
0
)
else
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c98045062
.
cfilter
,
1
,
1
,
nil
,
tp
)
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c98045062
.
cfilter
,
1
,
1
,
nil
,
tp
)
Duel
.
Release
(
rg
,
REASON_COST
)
Duel
.
Release
(
rg
,
REASON_COST
)
if
rg
:
GetFirst
():
IsControler
(
tp
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c98045062
.
filter3
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g
,
1
,
0
,
0
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c98045062
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
rg
:
GetFirst
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g
,
1
,
0
,
0
)
end
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c98045062
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g
,
1
,
0
,
0
)
end
end
e
:
SetLabel
(
sel
)
e
:
SetLabel
(
sel
)
end
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