Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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-scripts
Commits
1d2c97ca
Commit
1d2c97ca
authored
Jun 30, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
parent
4aed07f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
79 additions
and
0 deletions
+79
-0
c13536606.lua
c13536606.lua
+79
-0
No files found.
c13536606.lua
0 → 100644
View file @
1d2c97ca
--V-LAN ヒドラ
function
c13536606
.
initial_effect
(
c
)
--link summon
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
c13536606
.
matfilter
,
2
)
--atk
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
c13536606
.
atkval
)
c
:
RegisterEffect
(
e1
)
--token
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
13536606
,
0
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
13536606
)
e2
:
SetTarget
(
c13536606
.
tktg
)
e2
:
SetOperation
(
c13536606
.
tkop
)
c
:
RegisterEffect
(
e2
)
end
function
c13536606
.
matfilter
(
c
)
return
not
c
:
IsLinkType
(
TYPE_TOKEN
)
end
function
c13536606
.
cfilter
(
c
,
mc
)
local
lg
=
c
:
GetLinkedGroup
()
return
lg
and
lg
:
IsContains
(
mc
)
end
function
c13536606
.
atkval
(
e
,
c
)
return
c
:
GetLinkedGroup
():
FilterCount
(
c13536606
.
cfilter
,
nil
,
c
)
*
300
end
function
c13536606
.
rfilter
(
c
,
tp
,
g
)
local
lk
=
c
:
GetLink
()
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_LINK
)
and
lk
<
4
and
c
:
IsReleasableByEffect
()
and
g
:
IsContains
(
c
)
and
ft
>=
lk
and
(
ft
==
1
or
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
))
end
function
c13536606
.
tktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
local
lg
=
c
:
GetLinkedGroup
():
Filter
(
c13536606
.
cfilter
,
nil
,
c
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c13536606
.
rfilter
(
chkc
,
tp
,
lg
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c13536606
.
rfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
,
lg
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
13536607
,
0
,
0x4011
,
0
,
0
,
1
,
RACE_CYBERS
,
ATTRIBUTE_LIGHT
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
rg
=
Duel
.
SelectTarget
(
tp
,
c13536606
.
rfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
,
lg
)
local
ct
=
rg
:
GetFirst
():
GetLink
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
ct
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
ct
,
0
,
0
)
end
function
c13536606
.
tkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
ct
=
tc
:
GetLink
()
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
Duel
.
Release
(
tc
,
REASON_EFFECT
)
>
0
then
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
<
ct
or
(
ft
>
1
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
))
then
return
end
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
13536607
,
0
,
0x4011
,
0
,
0
,
1
,
RACE_CYBERS
,
ATTRIBUTE_LIGHT
)
then
return
end
for
i
=
1
,
ct
do
local
token
=
Duel
.
CreateToken
(
tp
,
13536607
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
Duel
.
SpecialSummonComplete
()
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetLabel
(
ct
)
e1
:
SetTarget
(
c13536606
.
splimit
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c13536606
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
c
:
GetLink
()
==
e
:
GetLabel
()
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