Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
41aa18d1
Commit
41aa18d1
authored
Apr 17, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
57ed46c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
20 deletions
+24
-20
script/c52628687.lua
script/c52628687.lua
+24
-20
No files found.
script/c52628687.lua
View file @
41aa18d1
...
...
@@ -6,47 +6,50 @@ function c52628687.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCost
(
c52628687
.
cost
)
e1
:
SetTarget
(
c52628687
.
target
)
e1
:
SetOperation
(
c52628687
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c52628687
.
cfilter
(
c
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
not
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsAbleToRemoveAsCost
()
function
c52628687
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
100
)
return
true
end
function
c52628687
.
cfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
GetLevel
()
>
0
and
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
IsExistingTarget
(
c52628687
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
e
,
tp
)
end
function
c52628687
.
cffilter
(
c
)
return
c
:
IsSetCard
(
0x106e
)
and
c
:
IsType
(
TYPE_SPELL
)
and
not
c
:
IsPublic
()
end
function
c52628687
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
not
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
GetLevel
()
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c52628687
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c52628687
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
if
Duel
.
GetFlagEffect
(
tp
,
52628687
)
~=
0
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
false
end
if
not
Duel
.
IsExistingMatchingCard
(
c52628687
.
cffilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
then
return
false
end
local
rg
=
Duel
.
GetMatchingGroup
(
c52628687
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
spg
=
Duel
.
GetMatchingGroup
(
c52628687
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
return
rg
:
GetCount
()
>
0
and
spg
:
GetCount
()
>
0
and
(
rg
:
GetCount
()
>
1
or
spg
:
GetCount
()
>
1
or
rg
:
GetFirst
()
~=
spg
:
GetFirst
())
if
e
:
GetLabel
()
~=
10
0
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c52628687
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c52628687
.
cffilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
local
rg
=
Duel
.
GetMatchingGroup
(
c52628687
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
spg
=
Duel
.
GetMatchingGroup
(
c52628687
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
spg
:
GetCount
()
==
1
then
rg
:
Sub
(
spg
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
r
m
=
rg
:
Select
(
tp
,
1
,
1
,
nil
)
e
:
SetLabel
(
r
m
:
GetFirst
():
GetLevel
())
Duel
.
Remove
(
r
m
,
POS_FACEUP
,
REASON_COST
)
local
r
g
=
Duel
.
SelectMatchingCard
(
tp
,
c52628687
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
e
:
SetLabel
(
r
g
:
GetFirst
():
GetLevel
())
Duel
.
Remove
(
r
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
Duel
.
ConfirmCards
(
1
-
tp
,
Duel
.
SelectMatchingCard
(
tp
,
c52628687
.
cffilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
()))
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c52628687
.
cffilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
spg
:
Select
(
tp
,
1
,
1
,
rm
:
GetFirst
())
Duel
.
SetTargetCard
(
g
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c52628687
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
RegisterFlagEffect
(
tp
,
52628687
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
function
c52628687
.
eqlimit
(
e
,
c
)
return
e
:
GetOwner
()
==
c
return
c
==
e
:
GetLabelObject
()
end
function
c52628687
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -63,11 +66,12 @@ function c52628687.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummonComplete
()
Duel
.
Equip
(
tp
,
c
,
tc
)
--Add Equip limit
local
e2
=
Effect
.
CreateEffect
(
t
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e2
:
SetLabelObject
(
tc
)
e2
:
SetValue
(
c52628687
.
eqlimit
)
c
:
RegisterEffect
(
e2
)
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