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
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
八宫一月
ygopro-scripts
Commits
0d848b37
Commit
0d848b37
authored
Sep 06, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update chkc
parent
8c1cdf22
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
c21143940.lua
c21143940.lua
+1
-1
c61665245.lua
c61665245.lua
+6
-2
c93600443.lua
c93600443.lua
+1
-1
No files found.
c21143940.lua
View file @
0d848b37
...
...
@@ -20,7 +20,7 @@ function c21143940.filter(c,e,tp)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
)
>
0
end
function
c21143940
.
chkfilter
(
c
,
att
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x8
)
and
c
:
GetAttribute
(
)
==
att
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x8
)
and
(
c
:
GetAttribute
()
&
att
)
==
att
end
function
c21143940
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c21143940
.
chkfilter
(
chkc
,
e
:
GetLabel
())
end
...
...
c61665245.lua
View file @
0d848b37
...
...
@@ -53,6 +53,9 @@ end
function
c61665245
.
spfilter2
(
c
,
e
,
tp
,
lg
)
return
c
:
IsFaceup
()
and
lg
:
IsContains
(
c
)
and
Duel
.
IsExistingMatchingCard
(
c61665245
.
spfilter3
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetRace
())
end
function
c61665245
.
spfilter_chkc
(
c
,
e
,
tp
,
lg
,
rc
)
return
c
:
IsFaceup
()
and
lg
:
IsContains
(
c
)
and
(
c
:
GetRace
()
&
rc
)
==
rc
end
function
c61665245
.
spfilter3
(
c
,
e
,
tp
,
rac
)
if
not
c
:
IsRace
(
rac
)
then
return
false
end
local
ok
=
false
...
...
@@ -68,11 +71,12 @@ function c61665245.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
zone
[
0
]
=
c
:
GetLinkedZone
(
0
)
zone
[
1
]
=
c
:
GetLinkedZone
(
1
)
local
lg
=
c
:
GetLinkedGroup
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c61665245
.
spfilter
2
(
chkc
,
e
,
tp
,
lg
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c61665245
.
spfilter
_chkc
(
chkc
,
e
,
tp
,
lg
,
e
:
GetLabel
()
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c61665245
.
spfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
e
,
tp
,
lg
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c61665245
.
spfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
e
,
tp
,
lg
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c61665245
.
spfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
e
,
tp
,
lg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
e
:
SetLabel
(
g
:
GetFirst
():
GetRace
())
end
function
c61665245
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c93600443.lua
View file @
0d848b37
...
...
@@ -29,7 +29,7 @@ end
function
c93600443
.
chkfilter
(
c
,
tc
)
local
lv
=
tc
:
GetLevel
()
local
att
=
tc
:
GetAttribute
()
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
lv
)
and
c
:
GetAttribute
(
)
==
att
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
lv
)
and
(
c
:
GetAttribute
()
&
att
)
==
att
end
function
c93600443
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c93600443
.
chkfilter
(
chkc
,
e
:
GetLabelObject
())
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