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
dd0d556a
Commit
dd0d556a
authored
May 17, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bf517793
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
15 deletions
+23
-15
script/c11082056.lua
script/c11082056.lua
+2
-1
script/c46232525.lua
script/c46232525.lua
+2
-1
script/c53315891.lua
script/c53315891.lua
+6
-6
script/c5832914.lua
script/c5832914.lua
+8
-4
script/c79447365.lua
script/c79447365.lua
+1
-0
script/c83743222.lua
script/c83743222.lua
+2
-1
script/c84565800.lua
script/c84565800.lua
+2
-2
No files found.
script/c11082056.lua
View file @
dd0d556a
...
@@ -35,11 +35,12 @@ function c11082056.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -35,11 +35,12 @@ function c11082056.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
:
IsFacedown
()
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
if
tc
:
IsFacedown
()
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
if
not
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c11082056
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetCode
())
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c11082056
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetCode
())
local
sc
=
sg
:
GetFirst
()
local
sc
=
sg
:
GetFirst
()
if
sc
then
if
sc
then
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
sc
:
CompleteProcedure
()
sc
:
CompleteProcedure
()
...
...
script/c46232525.lua
View file @
dd0d556a
...
@@ -37,11 +37,12 @@ function c46232525.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,11 +37,12 @@ function c46232525.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
:
IsFacedown
()
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
if
tc
:
IsFacedown
()
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
if
not
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c46232525
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetRace
())
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c46232525
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetRace
())
local
sc
=
sg
:
GetFirst
()
local
sc
=
sg
:
GetFirst
()
if
sc
then
if
sc
then
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
sc
:
CompleteProcedure
()
sc
:
CompleteProcedure
()
...
...
script/c53315891.lua
View file @
dd0d556a
...
@@ -46,7 +46,7 @@ function c53315891.initial_effect(c)
...
@@ -46,7 +46,7 @@ function c53315891.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c53315891
.
sprfilter
(
c
,
code
)
function
c53315891
.
sprfilter
(
c
,
code
)
return
c
:
IsCode
(
code
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsCode
(
code
)
and
c
:
IsAbleToGraveAsCost
()
end
end
function
c53315891
.
sprcon
(
e
,
c
)
function
c53315891
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
...
@@ -98,7 +98,6 @@ function c53315891.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -98,7 +98,6 @@ function c53315891.atkop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_DEFENCE_FINAL
)
e2
:
SetCode
(
EFFECT_SET_DEFENCE_FINAL
)
e2
:
SetValue
(
atk
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
end
end
...
@@ -113,9 +112,10 @@ function c53315891.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -113,9 +112,10 @@ function c53315891.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c53315891
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c53315891
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
3
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
3
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
GetMatchingGroup
(
c53315891
.
spfilter
,
tp
,
0x13
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c53315891
.
spfilter
,
tp
,
0x13
,
0
,
3
,
3
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
2
then
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
local
sg
=
g
:
Select
(
tp
,
3
,
3
,
nil
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
end
end
end
end
script/c5832914.lua
View file @
dd0d556a
...
@@ -20,14 +20,18 @@ function c5832914.cfilter(c)
...
@@ -20,14 +20,18 @@ function c5832914.cfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_TOON
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_TOON
)
end
end
function
c5832914
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c5832914
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
Duel
.
IsExistingMatchingCard
(
c5832914
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c5832914
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c5832914
.
filter
(
c
,
tp
)
return
c
:
GetSummonPlayer
()
==
tp
and
c
:
IsAbleToDeck
()
end
end
function
c5832914
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c5832914
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
Card
.
IsAbleToDeck
,
1
,
nil
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c5832914
.
filter
,
1
,
nil
,
1
-
tp
)
end
local
g
=
eg
:
Filter
(
Card
.
IsAbleToDeck
,
nil
)
local
g
=
eg
:
Filter
(
c5832914
.
filter
,
nil
,
1
-
tp
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c5832914
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c5832914
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
eg
:
Filter
(
Card
.
IsAbleToDeck
,
nil
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
end
end
script/c79447365.lua
View file @
dd0d556a
...
@@ -38,6 +38,7 @@ function c79447365.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -38,6 +38,7 @@ function c79447365.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
)
end
end
function
c79447365
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c79447365
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsFacedown
()
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsFacedown
()
then
return
end
local
lv
=
0
local
lv
=
0
...
...
script/c83743222.lua
View file @
dd0d556a
...
@@ -57,7 +57,8 @@ function c83743222.eqlimit(e,c)
...
@@ -57,7 +57,8 @@ function c83743222.eqlimit(e,c)
return
c
==
e
:
GetLabelObject
()
return
c
==
e
:
GetLabelObject
()
end
end
function
c83743222
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c83743222
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetEquipTarget
()
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
ep
~=
tp
local
ph
=
Duel
.
GetCurrentPhase
()
return
e
:
GetHandler
():
GetEquipTarget
()
and
(
ph
>
PHASE_MAIN1
and
ph
<
PHASE_MAIN2
)
and
ep
~=
tp
end
end
function
c83743222
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c83743222
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
script/c84565800.lua
View file @
dd0d556a
...
@@ -44,7 +44,7 @@ function c84565800.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,7 +44,7 @@ function c84565800.rmop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c84565800
.
cpfilter
(
c
)
function
c84565800
.
cpfilter
(
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
and
not
c
:
IsCode
(
84565800
)
return
c
:
IsType
(
TYPE_EFFECT
)
end
end
function
c84565800
.
cptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c84565800
.
cptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c84565800
.
cpfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c84565800
.
cpfilter
(
chkc
)
end
...
@@ -55,7 +55,7 @@ end
...
@@ -55,7 +55,7 @@ end
function
c84565800
.
cpop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c84565800
.
cpop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
code
=
tc
:
GetCode
()
local
code
=
tc
:
GetCode
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
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