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
aabb7239
Commit
aabb7239
authored
Nov 07, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6169ac18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
script/c36006208.lua
script/c36006208.lua
+17
-3
No files found.
script/c36006208.lua
View file @
aabb7239
...
@@ -52,7 +52,7 @@ function c36006208.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -52,7 +52,7 @@ function c36006208.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
local
rg
=
Duel
.
GetMatchingGroup
(
c36006208
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
rg
=
Duel
.
GetMatchingGroup
(
c36006208
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
dg
=
Duel
.
GetMatchingGroup
(
c36006208
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
(),
e
)
local
dg
=
Duel
.
GetMatchingGroup
(
c36006208
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
(),
e
)
return
rg
:
IsExists
(
c36006208
.
costfilter
,
2
,
nil
,
rg
,
dg
)
return
rg
:
IsExists
(
c36006208
.
costfilter
,
1
,
nil
,
rg
,
dg
)
else
else
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
end
end
...
@@ -62,8 +62,22 @@ function c36006208.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -62,8 +62,22 @@ function c36006208.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
rg
=
Duel
.
GetMatchingGroup
(
c36006208
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
rg
=
Duel
.
GetMatchingGroup
(
c36006208
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
dg
=
Duel
.
GetMatchingGroup
(
c36006208
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
(),
e
)
local
dg
=
Duel
.
GetMatchingGroup
(
c36006208
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
(),
e
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
rg
:
FilterSelect
(
tp
,
c36006208
.
costfilter
,
2
,
2
,
nil
,
rg
,
dg
)
local
sg1
=
rg
:
FilterSelect
(
tp
,
c36006208
.
costfilter
,
1
,
1
,
nil
,
rg
,
dg
)
Duel
.
SendtoGrave
(
sg
,
REASON_COST
)
local
sc
=
sg1
:
GetFirst
()
local
a
=
0
if
dg
:
IsContains
(
sc
)
then
a
=
1
end
if
sc
:
GetEquipCount
()
>
0
then
local
eqg
=
sc
:
GetEquipGroup
()
local
tc
=
eqg
:
GetFirst
()
while
tc
do
if
dg
:
IsContains
(
tc
)
then
a
=
a
+
1
end
tc
=
eqg
:
GetNext
()
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg2
=
rg
:
FilterSelect
(
tp
,
c36006208
.
costfilter2
,
1
,
1
,
sc
,
a
,
dg
)
sg1
:
Merge
(
sg2
)
Duel
.
SendtoGrave
(
sg1
,
REASON_COST
)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
3
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
3
,
e
:
GetHandler
())
...
...
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