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
4916c325
Commit
4916c325
authored
Jul 24, 2017
by
nekrozar
Committed by
mercury233
Jul 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update (#902)
parent
de72fd8e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
c51091138.lua
c51091138.lua
+7
-5
c79176962.lua
c79176962.lua
+7
-5
c88086137.lua
c88086137.lua
+1
-2
No files found.
c51091138.lua
View file @
4916c325
...
@@ -14,13 +14,15 @@ end
...
@@ -14,13 +14,15 @@ end
function
c51091138
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c51091138
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_SZONE
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_SZONE
)
end
end
function
c51091138
.
filter
(
c
,
g
)
return
g
:
IsContains
(
c
)
end
function
c51091138
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c51091138
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
local
c
g
=
e
:
GetHandler
():
GetColumnGroup
()
if
chkc
then
return
chkc
:
Is
Location
(
LOCATION_ONFIELD
)
and
aux
.
checksamecolumn
(
chkc
,
c
)
end
if
chkc
then
return
chkc
:
Is
OnField
()
and
c51091138
.
filter
(
chkc
,
cg
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
checksamecolumn
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
,
c
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c51091138
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
cg
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
checksamecolumn
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
c
,
c
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c51091138
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
,
cg
)
e
:
SetLabel
(
seq
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c51091138
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c51091138
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c79176962.lua
View file @
4916c325
...
@@ -28,18 +28,20 @@ function c79176962.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -28,18 +28,20 @@ function c79176962.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
c79176962
.
thfilter
(
c
,
hc
)
function
c79176962
.
thfilter
(
c
,
g
)
return
c
:
IsAbleToHand
()
and
aux
.
checksamecolumn
(
c
,
h
c
)
return
c
:
IsAbleToHand
()
and
g
:
IsContains
(
c
)
end
end
function
c79176962
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c79176962
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c79176962
.
thfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
,
e
:
GetHandler
())
local
cg
=
e
:
GetHandler
():
GetColumnGroup
()
if
chk
==
0
then
return
g
:
GetCount
()
>
0
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c79176962
.
thfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
,
cg
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c79176962
.
thfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
,
cg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c79176962
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c79176962
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
cg
=
c
:
GetColumnGroup
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
g
=
Duel
.
GetMatchingGroup
(
c79176962
.
thfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c79176962
.
thfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
,
c
g
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
end
end
...
...
c88086137.lua
View file @
4916c325
...
@@ -12,8 +12,7 @@ function c88086137.initial_effect(c)
...
@@ -12,8 +12,7 @@ function c88086137.initial_effect(c)
end
end
function
c88086137
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c88086137
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
return
c
:
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
Duel
.
IsChainNegatable
(
ev
)
return
aux
.
checksamecolumn
(
c
,
rc
)
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c88086137
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c88086137
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
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