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
wyykak
ygopro
Commits
c6628463
Commit
c6628463
authored
Aug 15, 2014
by
YuGiOhMoDDeR
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename c22648577.lua to 72648577.lua
wrong ID
http://yugioh.wikia.com/wiki/DDD_Resource_Management
parent
63234eb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
script/c72648577.lua
script/c72648577.lua
+11
-11
No files found.
script/c
2
2648577.lua
→
script/c
7
2648577.lua
View file @
c6628463
--DDDの人事権
function
c
2
2648577
.
initial_effect
(
c
)
function
c
7
2648577
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c
2
2648577
.
target
)
e1
:
SetOperation
(
c
2
2648577
.
operation
)
e1
:
SetTarget
(
c
7
2648577
.
target
)
e1
:
SetOperation
(
c
7
2648577
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c
2
2648577
.
filter
(
c
)
function
c
7
2648577
.
filter
(
c
)
if
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFacedown
()
then
return
false
end
if
c
:
IsLocation
(
LOCATION_SZONE
)
then
if
c
:
GetSequence
()
<
6
then
return
false
end
elseif
not
c
:
IsType
(
TYPE_MONSTER
)
then
return
false
end
return
c
:
IsSetCard
(
0xaf
)
and
c
:
IsAbleToDeck
()
end
function
c
2
2648577
.
thfilter
(
c
)
function
c
7
2648577
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xaf
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c
2
2648577
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c
2
2648577
.
filter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
3
,
nil
)
end
function
c
7
2648577
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c
7
2648577
.
filter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
3
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
3
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_HAND
)
end
function
c
2
2648577
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c
2
2648577
.
filter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
nil
)
function
c
7
2648577
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c
7
2648577
.
filter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
nil
)
if
g
:
GetCount
()
<
3
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
sg
=
g
:
Select
(
tp
,
3
,
3
,
nil
)
local
cg
=
sg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
SendtoDeck
(
sg
,
nil
,
0
,
REASON_EFFECT
)
local
dg
=
Duel
.
GetMatchingGroup
(
c
2
2648577
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
dg
:
GetCount
()
>
1
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
2
2648577
,
0
))
then
local
dg
=
Duel
.
GetMatchingGroup
(
c
7
2648577
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
dg
:
GetCount
()
>
1
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
7
2648577
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tg
=
dg
:
Select
(
tp
,
2
,
2
,
nil
)
...
...
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