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
f98ef757
Commit
f98ef757
authored
Sep 10, 2019
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified: expansions/script/c21520175.lua
modified: expansions/script/c21520190.lua
parent
c878671a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
expansions/script/c21520175.lua
expansions/script/c21520175.lua
+9
-9
expansions/script/c21520190.lua
expansions/script/c21520190.lua
+1
-1
No files found.
expansions/script/c21520175.lua
View file @
f98ef757
...
...
@@ -181,29 +181,29 @@ function c21520175.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
gc
=
Duel
.
GetMatchingGroupCount
(
c21520175
.
drfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
)
local
h
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
local
fchk
=
Duel
.
IsExistingMatchingCard
(
c21520175
.
fcfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
local
d
=
gc
*
300
local
d
=
gc
*
100
if
fchk
then
d
=
d
*
2
end
local
ops
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
21520175
,
3
),
aux
.
Stringid
(
21520175
,
4
))
e
:
SetLabel
(
ops
)
if
ops
==
0
then
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
21520175
,
3
))
if
fchk
then
d
=
d
*
2
end
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
d
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
0
,
0
,
1
-
tp
,
gc
*
300
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
0
,
0
,
1
-
tp
,
d
)
elseif
ops
==
1
then
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
21520175
,
4
))
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
2
-
h
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
-
h
)
Duel
.
SetTargetParam
(
3
-
h
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
3
-
h
)
end
end
function
c21520175
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ops
=
e
:
GetLabel
()
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
local
fchk
=
Duel
.
IsExistingMatchingCard
(
c21520175
.
fcfilter
,
p
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
local
fchk
=
Duel
.
IsExistingMatchingCard
(
c21520175
.
fcfilter
,
t
p
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
if
ops
==
0
then
local
gc
=
Duel
.
GetMatchingGroupCount
(
c21520175
.
drfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
)
*
3
00
local
gc
=
Duel
.
GetMatchingGroupCount
(
c21520175
.
drfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
)
*
1
00
if
fchk
then
gc
=
gc
*
2
end
Duel
.
Damage
(
p
,
gc
,
REASON_EFFECT
)
elseif
ops
==
1
then
...
...
@@ -211,9 +211,9 @@ function c21520175.drop(e,tp,eg,ep,ev,re,r,rp)
if
hc
>=
3
then
return
end
Duel
.
Draw
(
p
,
3
-
hc
,
REASON_EFFECT
)
local
hg
=
Duel
.
GetFieldGroup
(
1
-
p
,
LOCATION_HAND
,
0
)
if
hg
:
GetCount
()
>
0
and
not
fchk
and
Duel
.
SelectYesNo
(
1
-
p
,
aux
.
Stringid
(
21520175
,
5
))
then
if
not
fchk
and
Duel
.
SelectYesNo
(
1
-
p
,
aux
.
Stringid
(
21520175
,
5
))
then
Duel
.
Hint
(
HINT_CARD
,
p
,
21520175
)
Duel
.
SendtoGrave
(
hg
,
REASON_EFFECT
+
REASON_DISCARD
)
if
hg
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
hg
,
REASON_EFFECT
+
REASON_DISCARD
)
end
Duel
.
Draw
(
1
-
p
,
3
-
hg
:
GetCount
(),
REASON_EFFECT
)
end
end
...
...
expansions/script/c21520190.lua
View file @
f98ef757
...
...
@@ -6,7 +6,7 @@ function c21520190.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCountLimit
(
1
,
21520190
)
e1
:
SetCountLimit
(
7
,
21520190
)
e1
:
SetCondition
(
c21520190
.
spcon
)
e1
:
SetOperation
(
c21520190
.
spop
)
c
:
RegisterEffect
(
e1
)
...
...
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