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
8ecf2c22
Commit
8ecf2c22
authored
Oct 31, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f753d52c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
24 deletions
+3
-24
expansions/script/c65020147.lua
expansions/script/c65020147.lua
+3
-24
No files found.
expansions/script/c65020147.lua
View file @
8ecf2c22
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
function
c65020147
.
initial_effect
(
c
)
function
c65020147
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFunRep
(
c
,
c65020147
.
ffilter
,
2
,
true
)
aux
.
AddFusionProcFunRep
(
c
,
c65020147
.
ffilter
,
2
,
true
)
aux
.
AddContactFusionProcedure
(
c
,
Card
.
IsAbleToGraveAsCost
,
LOCATION_ONFIELD
,
0
,
Duel
.
SendtoGrave
,
REASON_COST
)
--special summon condition
--special summon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -9,15 +10,6 @@ function c65020147.initial_effect(c)
...
@@ -9,15 +10,6 @@ function c65020147.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetValue
(
c65020147
.
splimit
)
e1
:
SetValue
(
c65020147
.
splimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--special summon rule
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
c65020147
.
sprcon
)
e2
:
SetOperation
(
c65020147
.
sprop
)
c
:
RegisterEffect
(
e2
)
--position!
--position!
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_POSITION
)
e3
:
SetCategory
(
CATEGORY_POSITION
)
...
@@ -55,21 +47,8 @@ end
...
@@ -55,21 +47,8 @@ end
function
c65020147
.
splimit
(
e
,
se
,
sp
,
st
)
function
c65020147
.
splimit
(
e
,
se
,
sp
,
st
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
end
end
function
c65020147
.
ffilter
(
c
,
fc
,
sub
,
mg
,
sg
)
function
c65020147
.
ffilter
(
c
)
return
c
:
IsFusionType
(
TYPE_FLIP
)
return
c
:
IsType
(
TYPE_FLIP
)
end
function
c65020147
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
IsExistingMatchingCard
(
c65020147
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
,
tp
,
c
)
end
function
c65020147
.
sprfilter
(
c
,
tp
,
fc
)
return
c
:
IsFusionType
(
TYPE_FLIP
)
and
c
:
IsAbleToGraveAsCost
()
and
c
:
IsCanBeFusionMaterial
(
fc
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
fc
,
c
)
>
0
end
function
c65020147
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65020147
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
2
,
nil
,
tp
,
c
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
end
function
c65020147
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c65020147
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
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