Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
76a7e126
Commit
76a7e126
authored
Jun 15, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1404 from DailyShana/patch-5
fix
parents
62ce34a1
27d3b8a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
+3
-13
script/c1248895.lua
script/c1248895.lua
+1
-6
script/c57139487.lua
script/c57139487.lua
+2
-7
No files found.
script/c1248895.lua
View file @
76a7e126
...
...
@@ -32,13 +32,8 @@ function c1248895.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c1248895
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
dg
=
nil
local
tpe
=
tc
:
GetType
()
if
bit
.
band
(
tpe
,
TYPE_TOKEN
)
~=
0
then
return
end
if
bit
.
band
(
tpe
,
0x802040
)
~=
0
then
dg
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tc
:
GetControler
(),
LOCATION_EXTRA
,
0
,
nil
,
tc
:
GetCode
())
else
dg
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tc
:
GetControler
(),
LOCATION_DECK
+
LOCATION_HAND
,
0
,
nil
,
tc
:
GetCode
())
end
local
dg
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tc
:
GetControler
(),
LOCATION_DECK
+
LOCATION_HAND
,
0
,
nil
,
tc
:
GetCode
())
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
end
script/c57139487.lua
View file @
76a7e126
...
...
@@ -35,14 +35,9 @@ function c57139487.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
sg
:
GetFirst
()
while
tc
do
if
tc
:
IsLocation
(
LOCATION_REMOVED
)
then
local
g1
=
nil
local
tpe
=
tc
:
GetType
()
if
bit
.
band
(
tpe
,
0x802040
)
~=
0
then
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
0
,
LOCATION_EXTRA
,
nil
,
tc
:
GetCode
())
rg
:
Merge
(
g1
)
elseif
bit
.
band
(
tpe
,
TYPE_TOKEN
)
~=
0
then
else
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
0
,
LOCATION_DECK
+
LOCATION_HAND
,
nil
,
tc
:
GetCode
())
if
bit
.
band
(
tpe
,
TYPE_TOKEN
)
==
0
then
local
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
0
,
LOCATION_DECK
+
LOCATION_HAND
,
nil
,
tc
:
GetCode
())
rg
:
Merge
(
g1
)
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