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
Ai
ygopro-222DIY-cards
Commits
15566a5c
Commit
15566a5c
authored
Nov 15, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
foo foo
parent
592e2128
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
expansions/script/c12044011.lua
expansions/script/c12044011.lua
+5
-3
expansions/script/c12044033.lua
expansions/script/c12044033.lua
+2
-1
No files found.
expansions/script/c12044011.lua
View file @
15566a5c
...
...
@@ -48,7 +48,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
filter
(
c
)
return
c
:
IsAbleToHand
()
and
c
:
IsSetCard
(
0xfb5
)
and
c
:
IsFacedown
()
return
c
:
IsAbleToHand
()
and
c
:
IsSetCard
(
0x
8
fb5
)
and
c
:
IsFacedown
()
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeck
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
@@ -59,7 +59,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoDeck
(
c
,
tp
,
2
,
REASON_EFFECT
)
c
:
ReverseInDeck
()
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
g
:
GetCount
()
>
0
then
...
...
@@ -67,9 +67,10 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
gg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
gg
)
end
end
end
function
cm
.
chainfilter
(
re
,
tp
,
cid
)
return
not
(
re
:
GetHandler
():
IsSetCard
(
0xfb5
)
and
re
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
)
return
not
(
re
:
GetHandler
():
IsSetCard
(
0x
8
fb5
)
and
re
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
)
end
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
@@ -97,6 +98,7 @@ end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
Recover
(
tp
,
2000
,
REASON_EFFECT
)
if
not
c
:
IsPreviousLocation
(
LOCATION_DECK
)
then
return
end
if
e
:
GetLabel
()
==
1
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
tp
,
REASON_EFFECT
)
elseif
e
:
GetLabel
()
==
2
then
...
...
expansions/script/c12044033.lua
View file @
15566a5c
...
...
@@ -135,7 +135,8 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
Duel
.
RaiseEvent
(
tc
,
EVENT_CHAINING
,
te
,
0
,
tp
,
tp
,
Duel
.
GetCurrentChain
())
else
elseif
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
>
1
then
Duel
.
DiscardHand
(
tp
,
aux
.
TRUE
,
2
,
2
,
REASON_EFFECT
+
REASON_DISCARD
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
cl
then
local
tc
=
g
:
RandomSelect
(
tp
,
cl
)
...
...
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