Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
008e5c25
Commit
008e5c25
authored
Nov 19, 2022
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 7
https://yugioh-wiki.net/index.php?%A1%D4%A3%B7%A1%D5
parent
986735bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
22 deletions
+12
-22
c67048711.lua
c67048711.lua
+12
-22
No files found.
c67048711.lua
View file @
008e5c25
...
...
@@ -4,17 +4,9 @@ function c67048711.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c67048711
.
target
)
e1
:
SetOperation
(
c67048711
.
operation
)
c
:
RegisterEffect
(
e1
)
--draw
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
67048711
,
0
))
e2
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_DESTROY
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_CUSTOM
+
67048711
)
e2
:
SetTarget
(
c67048711
.
drtg
)
e2
:
SetOperation
(
c67048711
.
drop
)
c
:
RegisterEffect
(
e2
)
--recover
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
67048711
,
1
))
...
...
@@ -30,24 +22,22 @@ end
function
c67048711
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
67048711
)
end
function
c67048711
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67048711
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
Duel
.
GetMatchingGroupCount
(
c67048711
.
filter
,
tp
,
LOCATION_SZONE
,
0
,
nil
)
==
3
then
Duel
.
RaiseSingleEvent
(
e
:
GetHandler
(),
EVENT_CUSTOM
+
67048711
,
e
,
0
,
0
,
0
,
0
)
local
g
=
Duel
.
GetMatchingGroup
(
c67048711
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
3
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c67048711
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetMatchingGroup
(
c67048711
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
3
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c67048711
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67048711
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetMatchingGroupCount
(
c67048711
.
filter
,
tp
,
LOCATION_SZONE
,
0
,
nil
)
==
3
then
Duel
.
Draw
(
tp
,
3
,
REASON_EFFECT
)
if
Duel
.
Draw
(
tp
,
3
,
REASON_EFFECT
)
~=
0
then
Duel
.
BreakEffect
()
local
g
=
Duel
.
GetMatchingGroup
(
c67048711
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
Duel
.
BreakEffect
()
local
g
=
Duel
.
GetMatchingGroup
(
c67048711
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
function
c67048711
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
...
...
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