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
1905010b
Commit
1905010b
authored
Jan 24, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xif
parent
4da0eddf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
22 deletions
+5
-22
expansions/script/c17091005.lua
expansions/script/c17091005.lua
+2
-19
expansions/script/c66915004.lua
expansions/script/c66915004.lua
+3
-3
No files found.
expansions/script/c17091005.lua
View file @
1905010b
...
...
@@ -19,24 +19,15 @@ function cm.initial_effect(c)
e2
:
SetCountLimit
(
1
)
e2
:
SetOperation
(
cm
.
lvop
)
c
:
RegisterEffect
(
e2
)
--
666
--
切腹斩
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
LOCATION_ONFIELD
)
e3
:
SetCode
(
EFFECT_SELF_DESTROY
)
e3
:
SetCondition
(
cm
.
sdcon
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e4
:
SetCode
(
EVENT_SSET
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EVENT_MSET
)
c
:
RegisterEffect
(
e5
)
--atklimit
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -59,18 +50,10 @@ function cm.lvop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
lv
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
if
lv
==
666
then
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
end
end
function
cm
.
sdcon
(
e
)
return
e
:
GetHandler
():
GetLevel
()
==
666
end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
tp
)
then
return
true
end
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
...
...
expansions/script/c66915004.lua
View file @
1905010b
...
...
@@ -37,7 +37,7 @@ function c66915004.initial_effect(c)
c
:
RegisterEffect
(
e55
)
--spsummon
local
e222
=
Effect
.
CreateEffect
(
c
)
e222
:
SetCategory
(
CATEGORY_
SPECIAL_SUMMON
)
e222
:
SetCategory
(
CATEGORY_
NEGATE
)
e222
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e222
:
SetRange
(
LOCATION_MZONE
)
e222
:
SetCode
(
EVENT_BECOME_TARGET
)
...
...
@@ -64,7 +64,7 @@ function c66915004.initial_effect(c)
e11
:
SetType
(
EFFECT_TYPE_FIELD
)
e11
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e11
:
SetRange
(
LOCATION_SZONE
)
e11
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e11
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e11
:
SetTarget
(
c66915004
.
tgtg
)
e11
:
SetValue
(
1
)
c
:
RegisterEffect
(
e11
)
...
...
@@ -94,7 +94,7 @@ function c66915004.tglimit(e,c)
return
c
~=
e
:
GetHandler
()
end
function
c66915004
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsContains
(
e
:
GetHandler
())
and
Duel
.
IsChainDisablable
(
ev
)
and
Duel
.
IsExistingMatchingCard
(
c
m
.
cfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
return
eg
:
IsContains
(
e
:
GetHandler
())
and
Duel
.
IsChainDisablable
(
ev
)
and
Duel
.
IsExistingMatchingCard
(
c
66915004
.
cfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
end
function
c66915004
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
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