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
0f2d68cf
Commit
0f2d68cf
authored
Feb 04, 2021
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdnmd
parent
b952d7dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
expansions/script/c12083003.lua
expansions/script/c12083003.lua
+8
-2
No files found.
expansions/script/c12083003.lua
View file @
0f2d68cf
...
...
@@ -67,9 +67,9 @@ function cm.filter(c)
return
(
c
:
IsDefenseBelow
(
1000
)
or
c
:
GetDefense
()
==
0
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
,
tp
,
LOCATION_REASON_TOFIELD
)
>
0
and
not
e
:
GetHandler
():
IsForbidden
()
and
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
,
tp
,
LOCATION_REASON_TOFIELD
)
>
0
and
not
e
:
GetHandler
():
IsForbidden
()
and
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -92,6 +92,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
100
,
0
,
0
,
1
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
12083005
)
then
local
tt
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
local
th
=
tt
:
RandomSelect
(
tp
,
1
)
Duel
.
Destroy
(
th
,
REASON_EFFECT
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
100
,
0
,
0
,
1
)
end
end
Duel
.
RaiseEvent
(
c
,
EVENT_CUSTOM
+
m
,
re
,
r
,
rp
,
ep
,
nil
)
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