Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
e8e0e18e
Commit
e8e0e18e
authored
May 16, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mercury233
parent
ce988394
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c26806060.lua
expansions/script/c26806060.lua
+9
-10
No files found.
expansions/222DIY.cdb
View file @
e8e0e18e
No preview for this file type
expansions/script/c26806060.lua
View file @
e8e0e18e
...
...
@@ -5,15 +5,15 @@ function c26806060.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
--
search
--
to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_PREDRAW
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetCondition
(
c26806060
.
conditi
on
)
e2
:
SetTarget
(
c26806060
.
t
arget
)
e2
:
SetOperation
(
c26806060
.
operation
)
e2
:
SetCondition
(
c26806060
.
thc
on
)
e2
:
SetTarget
(
c26806060
.
t
htg
)
e2
:
SetOperation
(
c26806060
.
thop
)
c
:
RegisterEffect
(
e2
)
--change
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -36,14 +36,13 @@ function c26806060.initial_effect(c)
e4
:
SetOperation
(
c26806060
.
spop
)
c
:
RegisterEffect
(
e4
)
end
function
c26806060
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
==
Duel
.
GetTurnPlayer
()
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
and
Duel
.
GetDrawCount
(
tp
)
>
0
function
c26806060
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
==
Duel
.
GetTurnPlayer
()
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
and
Duel
.
GetDrawCount
(
tp
)
>
0
end
function
c26806060
.
thfilter
(
c
)
return
c
:
IsAttack
(
2200
)
and
c
:
IsDefense
(
600
)
and
c
:
IsAbleToHand
()
end
function
c26806060
.
t
arget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c26806060
.
t
htg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c26806060
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
...
...
@@ -58,9 +57,9 @@ function c26806060.target(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetValue
(
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
function
c26806060
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c26806060
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceCount
+
1
if
aux
.
DrawReplaceCount
>
aux
.
DrawReplaceMax
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
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