Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-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
八宫一月
ygopro-THC-cards
Commits
376ca37e
Commit
376ca37e
authored
Jun 30, 2022
by
八宫一月
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
9d72a152
Pipeline
#14359
failed with stage
in 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
110 additions
and
0 deletions
+110
-0
c74563666.lua
c74563666.lua
+110
-0
No files found.
c74563666.lua
0 → 100644
View file @
376ca37e
--冰狱之王·撒旦
function
c74563666
.
initial_effect
(
c
)
--Cost Change
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_LPCOST_CHANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetValue
(
c74563666
.
costchange
)
c
:
RegisterEffect
(
e2
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_REMOVED
)
e1
:
SetCondition
(
c74563666
.
sprcon
)
e1
:
SetOperation
(
c74563666
.
sprop
)
c
:
RegisterEffect
(
e1
)
--special summon
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
7
)
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_FREE_CHAIN
)
e5
:
SetRange
(
LOCATION_REMOVED
)
e5
:
SetLabelObject
(
e1
)
e5
:
SetCondition
(
c74563666
.
con
)
e5
:
SetOperation
(
c74563666
.
sprop1
)
c
:
RegisterEffect
(
e5
)
--copy
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
70369116
,
1
))
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCost
(
c74563666
.
cpcost
)
e2
:
SetTarget
(
c74563666
.
cptg
)
e2
:
SetOperation
(
c74563666
.
cpop
)
c
:
RegisterEffect
(
e2
)
end
function
c74563666
.
costchange
(
e
,
re
,
rp
,
val
)
if
re
and
re
:
GetHandler
():
IsSetCard
(
0x996
)
then
return
666
else
return
val
end
end
function
c74563666
.
sprfilter
(
c
)
return
(
c
:
IsRank
(
6
)
or
c
:
IsLevel
(
6
)
or
c
:
IsLink
(
6
))
and
c
:
IsAbleToRemoveAsCost
()
end
function
c74563666
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c74563666
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
3
,
nil
)
and
(
c74563666
.
special
or
not
c
:
IsLocation
(
LOCATION_REMOVED
))
end
function
c74563666
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c74563666
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
3
,
3
,
nil
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
c74563666
.
special
=
false
end
function
c74563666
.
sprop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
c74563666
.
special
=
true
Duel
.
SpecialSummonRule
(
e
:
GetHandler
():
GetControler
(),
e
:
GetHandler
())
end
function
c74563666
.
cpfilter
(
c
)
return
(
c
:
IsType
(
TYPE_SPELL
))
and
c
:
IsSetCard
(
0x996
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
true
,
true
,
false
)
~=
nil
end
function
c74563666
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c74563666
.
special
=
true
local
cansp
=
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
:
GetLabelObject
(),
0
,
tp
,
false
,
true
)
c74563666
.
special
=
false
return
Duel
.
GetCurrentChain
()
==
0
and
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c74563666
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
3
,
nil
)
and
cansp
end
function
c74563666
.
cpcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
if
chk
==
0
then
return
true
end
end
function
c74563666
.
cptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
e
:
GetLabel
()
==
0
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
IsExistingMatchingCard
(
c74563666
.
cpfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
e
:
SetLabel
(
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c74563666
.
cpfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
g
:
GetFirst
():
CheckActivateEffect
(
false
,
true
,
true
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
e
:
SetProperty
(
te
:
GetProperty
())
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
1
)
end
te
:
SetLabelObject
(
e
:
GetLabelObject
())
e
:
SetLabelObject
(
te
)
Duel
.
ClearOperationInfo
(
0
)
end
function
c74563666
.
cpop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
te
=
e
:
GetLabelObject
()
if
te
then
e
:
SetLabelObject
(
te
:
GetLabelObject
())
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
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