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
de078d11
Commit
de078d11
authored
Jan 22, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
empty pigeon princess
parent
e7c7f36d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
13 deletions
+30
-13
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c17091005.lua
expansions/script/c17091005.lua
+30
-13
No files found.
expansions/222DIY.cdb
View file @
de078d11
No preview for this file type
expansions/script/c17091005.lua
View file @
de078d11
...
...
@@ -19,25 +19,30 @@ function cm.initial_effect(c)
e2
:
SetCountLimit
(
1
)
e2
:
SetOperation
(
cm
.
lvop
)
c
:
RegisterEffect
(
e2
)
--
selfdes
--
666
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_
SINGLE
)
e3
:
Set
Property
(
EFFECT_FLAG_SINGLE_RANG
E
)
e3
:
Set
Range
(
LOCATION_ONFIELD
)
e3
:
SetType
(
EFFECT_TYPE_
FIELD
)
e3
:
Set
Range
(
LOCATION_MZON
E
)
e3
:
Set
TargetRange
(
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_GRANT
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e4
:
SetCode
(
EVENT_SSET
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
0
,
LOCATION_ONFIELD
)
e4
:
SetCondition
(
cm
.
sdcon
)
e4
:
SetLabelObject
(
e3
)
e4
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e4
)
--atklimit
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e5
:
SetCondition
(
cm
.
atkcon
)
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EVENT_MSET
)
c
:
RegisterEffect
(
e5
)
--atklimit
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e6
:
SetCondition
(
cm
.
atkcon
)
c
:
RegisterEffect
(
e6
)
end
function
cm
.
atkval
(
e
,
c
)
return
c
:
GetLevel
()
*
100
...
...
@@ -54,10 +59,22 @@ 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
)
end
function
cm
.
atkcon
(
e
)
return
e
:
GetHandler
():
GetLevel
()
>
100
and
e
:
GetHandler
():
GetLevel
()
<
666
end
\ No newline at end of file
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