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
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
MyCard
ygopro-scripts
Commits
e83433ba
Commit
e83433ba
authored
Dec 02, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
id fix
parent
3f5b187a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
c40450317.lua
c40450317.lua
+14
-14
No files found.
c40
54
0317.lua
→
c40
45
0317.lua
View file @
e83433ba
--同胞の絆
--同胞の絆
function
c40
54
0317
.
initial_effect
(
c
)
function
c40
45
0317
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCost
(
c40
54
0317
.
cost
)
e1
:
SetCost
(
c40
45
0317
.
cost
)
e1
:
SetTarget
(
c40
54
0317
.
target
)
e1
:
SetTarget
(
c40
45
0317
.
target
)
e1
:
SetOperation
(
c40
54
0317
.
activate
)
e1
:
SetOperation
(
c40
45
0317
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c40
54
0317
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c40
45
0317
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2000
)
and
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_BATTLE_PHASE
)
==
0
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2000
)
and
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_BATTLE_PHASE
)
==
0
end
Duel
.
PayLPCost
(
tp
,
2000
)
Duel
.
PayLPCost
(
tp
,
2000
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
@@ -22,27 +22,27 @@ function c40540317.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -22,27 +22,27 @@ function c40540317.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c40
54
0317
.
filter
(
c
,
e
,
tp
)
function
c40
45
0317
.
filter
(
c
,
e
,
tp
)
if
not
c
:
IsFaceup
()
or
not
c
:
IsLevelBelow
(
4
)
then
return
false
end
if
not
c
:
IsFaceup
()
or
not
c
:
IsLevelBelow
(
4
)
then
return
false
end
local
g
=
Duel
.
GetMatchingGroup
(
c40
54
0317
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c40
45
0317
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
,
c
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
>
1
return
g
:
GetClassCount
(
Card
.
GetCode
)
>
1
end
end
function
c40
54
0317
.
filter2
(
c
,
e
,
tp
,
tc
)
function
c40
45
0317
.
filter2
(
c
,
e
,
tp
,
tc
)
return
c
:
GetLevel
()
==
tc
:
GetLevel
()
and
c
:
IsRace
(
tc
:
GetRace
())
and
c
:
IsAttribute
(
tc
:
GetAttribute
())
return
c
:
GetLevel
()
==
tc
:
GetLevel
()
and
c
:
IsRace
(
tc
:
GetRace
())
and
c
:
IsAttribute
(
tc
:
GetAttribute
())
and
not
c
:
IsCode
(
tc
:
GetCode
())
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsCode
(
tc
:
GetCode
())
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c40
54
0317
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c40
45
0317
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c40
54
0317
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c40
45
0317
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsExistingTarget
(
c40
54
0317
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c40
45
0317
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c40
54
0317
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SelectTarget
(
tp
,
c40
45
0317
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
tp
,
LOCATION_DECK
)
end
end
function
c40
54
0317
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40
45
0317
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetMatchingGroup
(
c40
54
0317
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
,
tc
)
local
g
=
Duel
.
GetMatchingGroup
(
c40
45
0317
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
,
tc
)
if
ft
>
1
and
g
:
GetClassCount
(
Card
.
GetCode
)
>
1
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
ft
>
1
and
g
:
GetClassCount
(
Card
.
GetCode
)
>
1
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g1
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
g1
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
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