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
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-520DIY
ygopro
Commits
a777b9b3
Commit
a777b9b3
authored
Dec 20, 2014
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge from sidschingis/patch
parent
1bd57faa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
script/c30127518.lua
script/c30127518.lua
+9
-6
No files found.
script/c30127518.lua
View file @
a777b9b3
...
...
@@ -20,14 +20,17 @@ function c30127518.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c30127518
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
c30127518
.
cfilter
,
nil
,
1
-
tp
,
e
)
if
g
:
GetCount
()
<
2
then
return
end
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
local
exg
=
Group
.
CreateGroup
()
local
tc
=
g
:
GetFirst
()
local
g1
=
Duel
.
GetOperatedGroup
()
local
tc
=
g1
:
GetFirst
()
while
tc
do
local
fg
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
0
,
LOCATION_DECK
+
LOCATION_EXTRA
+
LOCATION_HAND
,
nil
,
tc
:
GetCode
())
exg
:
Merge
(
fg
)
tc
=
g
:
GetNext
()
if
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
local
fg
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
0
,
LOCATION_DECK
+
LOCATION_EXTRA
+
LOCATION_HAND
,
nil
,
tc
:
GetCode
())
exg
:
Merge
(
fg
)
end
tc
=
g1
:
GetNext
()
end
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
BreakEffect
(
)
Duel
.
SendtoGrave
(
exg
,
REASON_EFFECT
)
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