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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
1317bb01
Commit
1317bb01
authored
Oct 01, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
foo foo
parent
4d137836
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
11 deletions
+9
-11
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c65060017.lua
expansions/script/c65060017.lua
+3
-8
expansions/script/c65060019.lua
expansions/script/c65060019.lua
+5
-2
expansions/script/c65060022.lua
expansions/script/c65060022.lua
+1
-1
No files found.
expansions/222DIY.cdb
View file @
1317bb01
No preview for this file type
expansions/script/c65060017.lua
View file @
1317bb01
...
...
@@ -21,7 +21,6 @@ function c65060017.initial_effect(c)
--inoshikacho
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
1
)
...
...
@@ -45,21 +44,17 @@ function c65060017.cost(e,tp,eg,ep,ev,re,r,rp,chk)
c
:
RegisterEffect
(
e1
)
end
function
c65060017
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
1
-
tp
,
1
)
end
Duel
.
SetTargetPlayer
(
tp
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
1
-
tp
,
1
)
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
1
-
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
1
-
tp
,
1
)
end
function
c65060017
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
local
h
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
if
h
<
1
then
return
end
Duel
.
Draw
(
1
-
tp
,
1
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
local
g
=
Duel
.
GetFieldGroup
(
p
,
0
,
LOCATION_HAND
)
local
g
=
Duel
.
GetFieldGroup
(
t
p
,
0
,
LOCATION_HAND
)
if
g
:
GetCount
()
>
0
then
local
sg
=
g
:
RandomSelect
(
p
,
1
)
local
sg
=
g
:
RandomSelect
(
1
-
t
p
,
1
)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
+
REASON_DISCARD
)
local
tc
=
sg
:
GetFirst
()
if
tc
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
IsExistingMatchingCard
(
c65060017
.
spfil
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
...
...
expansions/script/c65060019.lua
View file @
1317bb01
...
...
@@ -21,9 +21,12 @@ function c65060019.initial_effect(c)
e2
:
SetOperation
(
c65060019
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
c65060019
.
tgsfil
(
c
)
return
c
:
GetAttack
()
~=
c
:
GetBaseAttack
()
and
c
:
IsFaceup
()
end
function
c65060019
.
atktar
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c
hkc
:
IsPosition
(
POS_FACEUP
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c
65060019
.
tgsfil
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c65060019
.
tgsfil
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ATKCHANGE
,
g
,
1
,
0
,
0
)
end
...
...
expansions/script/c65060022.lua
View file @
1317bb01
...
...
@@ -60,7 +60,7 @@ function c65060022.disop(e,tp,eg,ep,ev,re,r,rp)
end
function
c65060022
.
filtern
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x6da4
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x6da4
)
and
not
c
:
IsType
(
TYPE_LINK
)
end
function
c65060022
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c65060022
.
filtern
(
chkc
)
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