Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
yks
pre-release-database-cdb
Commits
684de95d
Commit
684de95d
authored
Jun 14, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ユニオン・パイロット
parent
d4704637
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
script/c101206022.lua
script/c101206022.lua
+7
-4
No files found.
script/c101206022.lua
View file @
684de95d
--ユニオン・パイロット
--ユニオン・パイロット
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
aux
.
EnableUnionAttribute
(
c
,
aux
.
TRUE
)
aux
.
EnableUnionAttribute
(
c
,
s
.
eqfilter
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e2
:
SetCategory
(
CATEGORY_EQUIP
+
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetCategory
(
CATEGORY_EQUIP
+
CATEGORY_SPECIAL_SUMMON
)
...
@@ -14,6 +14,9 @@ function s.initial_effect(c)
...
@@ -14,6 +14,9 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
s
.
has_text_type
=
TYPE_UNION
s
.
has_text_type
=
TYPE_UNION
function
s
.
eqfilter
(
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
end
function
s
.
recost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
recost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
e
:
GetHandler
():
GetEquipTarget
()
local
tc
=
e
:
GetHandler
():
GetEquipTarget
()
e
:
SetLabelObject
(
tc
)
e
:
SetLabelObject
(
tc
)
...
@@ -30,12 +33,12 @@ function s.cfilter(c,ec,tp)
...
@@ -30,12 +33,12 @@ function s.cfilter(c,ec,tp)
end
end
function
s
.
retg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
retg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
TYPE_EFFECT
+
TYPE_MONSTER
,
2100
,
1000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_LIGHT
)
and
Duel
.
IsExistingMatchingCard
(
s
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
TYPE_EFFECT
+
TYPE_MONSTER
,
2100
,
1000
,
5
,
RACE_MACHINE
,
ATTRIBUTE_LIGHT
)
and
Duel
.
IsExistingMatchingCard
(
s
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetTargetCard
(
e
:
GetHandler
())
Duel
.
SetTargetCard
(
e
:
GetHandler
())
end
end
function
s
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
...
@@ -43,7 +46,7 @@ function s.reop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,7 +46,7 @@ function s.reop(e,tp,eg,ep,ev,re,r,rp)
local
ec
=
sg
:
GetFirst
()
local
ec
=
sg
:
GetFirst
()
if
ec
and
Duel
.
Equip
(
tp
,
ec
,
tc
)
then
if
ec
and
Duel
.
Equip
(
tp
,
ec
,
tc
)
then
aux
.
SetUnionState
(
ec
)
aux
.
SetUnionState
(
ec
)
if
e
:
GetHandler
():
IsRelateToChain
()
and
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
and
if
e
:
GetHandler
():
IsRelateToChain
()
and
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
then
Duel
.
SpecialSummon
(
e
:
GetHandler
(),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
e
:
GetHandler
(),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
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