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
f1b610f2
Commit
f1b610f2
authored
Jan 13, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f1feb4a7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
21 deletions
+29
-21
script/c10002346.lua
script/c10002346.lua
+5
-4
script/c3549275.lua
script/c3549275.lua
+5
-5
script/c39454112.lua
script/c39454112.lua
+4
-1
script/c71645242.lua
script/c71645242.lua
+5
-3
script/c73659078.lua
script/c73659078.lua
+10
-8
No files found.
script/c10002346.lua
View file @
f1b610f2
...
@@ -21,6 +21,7 @@ function c10002346.initial_effect(c)
...
@@ -21,6 +21,7 @@ function c10002346.initial_effect(c)
e3
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e3
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTarget
(
c10002346
.
reptg
)
e3
:
SetTarget
(
c10002346
.
reptg
)
e3
:
SetOperation
(
c10002346
.
repop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c10002346
.
val
(
e
,
c
)
function
c10002346
.
val
(
e
,
c
)
...
@@ -28,8 +29,8 @@ function c10002346.val(e,c)
...
@@ -28,8 +29,8 @@ function c10002346.val(e,c)
end
end
function
c10002346
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10002346
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
10002346
,
0
))
then
return
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
10002346
,
0
))
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
end
return
true
function
c10002346
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
lse
return
false
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
end
end
script/c3549275.lua
View file @
f1b610f2
...
@@ -18,10 +18,10 @@ function c3549275.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -18,10 +18,10 @@ function c3549275.operation(e,tp,eg,ep,ev,re,r,rp)
while
d1
==
d2
do
while
d1
==
d2
do
d1
=
Duel
.
TossDice
(
tp
,
1
)
d1
=
Duel
.
TossDice
(
tp
,
1
)
d2
=
Duel
.
TossDice
(
1
-
tp
,
1
)
d2
=
Duel
.
TossDice
(
1
-
tp
,
1
)
if
d1
<
d2
then
end
if
d2
==
6
then
Duel
.
Damage
(
tp
,
6000
,
REASON_EFFECT
)
else
Duel
.
Damage
(
tp
,
d2
*
500
,
REASON_EFFECT
)
end
if
d1
<
d2
then
elseif
d1
>
d2
then
if
d2
==
6
then
Duel
.
Damage
(
tp
,
6000
,
REASON_EFFECT
)
else
Duel
.
Damage
(
tp
,
d2
*
500
,
REASON_EFFECT
)
end
if
d1
==
6
then
Duel
.
Damage
(
1
-
tp
,
6000
,
REASON_EFFECT
)
else
Duel
.
Damage
(
1
-
tp
,
d1
*
500
,
REASON_EFFECT
)
end
else
end
if
d1
==
6
then
Duel
.
Damage
(
1
-
tp
,
6000
,
REASON_EFFECT
)
else
Duel
.
Damage
(
1
-
tp
,
d1
*
500
,
REASON_EFFECT
)
end
end
end
end
end
script/c39454112.lua
View file @
f1b610f2
...
@@ -14,7 +14,9 @@ function c39454112.initial_effect(c)
...
@@ -14,7 +14,9 @@ function c39454112.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c39454112
.
diceop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c39454112
.
diceop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
39454112
,
0
))
then
local
cc
=
Duel
.
GetCurrentChain
()
local
cid
=
Duel
.
GetChainInfo
(
cc
,
CHAININFO_CHAIN_ID
)
if
c39454112
[
0
]
~=
cid
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
39454112
,
0
))
then
Duel
.
Hint
(
HINT_CARD
,
0
,
39454112
)
Duel
.
Hint
(
HINT_CARD
,
0
,
39454112
)
local
dc
=
{
Duel
.
GetDiceResult
()}
local
dc
=
{
Duel
.
GetDiceResult
()}
local
ac
=
1
local
ac
=
1
...
@@ -27,5 +29,6 @@ function c39454112.diceop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -27,5 +29,6 @@ function c39454112.diceop(e,tp,eg,ep,ev,re,r,rp)
if
dc
[
ac
]
==
1
or
dc
[
ac
]
==
3
or
dc
[
ac
]
==
5
then
dc
[
ac
]
=
6
if
dc
[
ac
]
==
1
or
dc
[
ac
]
==
3
or
dc
[
ac
]
==
5
then
dc
[
ac
]
=
6
else
dc
[
ac
]
=
1
end
else
dc
[
ac
]
=
1
end
Duel
.
SetDiceResult
(
table.unpack
(
dc
))
Duel
.
SetDiceResult
(
table.unpack
(
dc
))
c39454112
[
0
]
=
cid
end
end
end
end
script/c71645242.lua
View file @
f1b610f2
...
@@ -92,7 +92,7 @@ function c71645242.desfilter(c)
...
@@ -92,7 +92,7 @@ function c71645242.desfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsDestructable
()
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsDestructable
()
end
end
function
c71645242
.
filter2
(
c
,
atk
,
e
,
tp
)
function
c71645242
.
filter2
(
c
,
atk
,
e
,
tp
)
return
c
:
GetAttack
()
==
atk
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
GetAttack
()
==
atk
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
x20
,
tp
,
false
,
false
)
end
end
function
c71645242
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c71645242
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c71645242
.
filter2
(
chkc
,
e
:
GetLabel
(),
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c71645242
.
filter2
(
chkc
,
e
:
GetLabel
(),
e
,
tp
)
end
...
@@ -100,7 +100,7 @@ function c71645242.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -100,7 +100,7 @@ function c71645242.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
atk
=
g
:
GetSum
(
Card
.
GetAttack
)
local
atk
=
g
:
GetSum
(
Card
.
GetAttack
)
local
sc
=
g
:
FilterCount
(
Card
.
IsControler
,
nil
,
tp
)
local
sc
=
g
:
FilterCount
(
Card
.
IsControler
,
nil
,
tp
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDestructable
()
and
e
:
GetHandler
():
IsDestructable
(
e
)
and
g
:
GetCount
()
>
0
if
chk
==
0
then
return
e
:
GetHandler
():
IsDestructable
()
and
e
:
GetHandler
():
IsDestructable
(
e
)
and
g
:
GetCount
()
>
0
and
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
sc
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
sc
and
Duel
.
IsExistingTarget
(
c71645242
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
atk
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c71645242
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
atk
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
Duel
.
SelectTarget
(
tp
,
c71645242
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
atk
,
e
,
tp
)
local
tg
=
Duel
.
SelectTarget
(
tp
,
c71645242
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
atk
,
e
,
tp
)
...
@@ -113,10 +113,12 @@ function c71645242.spop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -113,10 +113,12 @@ function c71645242.spop2(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
(
c
:
IsRelateToEffect
(
e
)
and
c
:
IsDestructable
()
and
c
:
IsDestructable
(
e
))
then
return
end
if
not
(
c
:
IsRelateToEffect
(
e
)
and
c
:
IsDestructable
()
and
c
:
IsDestructable
(
e
))
then
return
end
local
dg
=
Duel
.
GetMatchingGroup
(
c71645242
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
dg
=
Duel
.
GetMatchingGroup
(
c71645242
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
atk
=
dg
:
GetSum
(
Card
.
GetAttack
)
dg
:
AddCard
(
c
)
dg
:
AddCard
(
c
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
og
=
Duel
.
GetOperatedGroup
()
og
:
RemoveCard
(
c
)
local
atk
=
og
:
GetSum
(
Card
.
GetPreviousAttackOnField
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
GetAttack
()
==
atk
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
GetAttack
()
==
atk
then
Duel
.
SpecialSummon
(
tc
,
0x20
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0x20
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
script/c73659078.lua
View file @
f1b610f2
...
@@ -10,6 +10,7 @@ function c73659078.initial_effect(c)
...
@@ -10,6 +10,7 @@ function c73659078.initial_effect(c)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCost
(
c73659078
.
cost
)
e1
:
SetCost
(
c73659078
.
cost
)
e1
:
SetTarget
(
c73659078
.
target
)
e1
:
SetOperation
(
c73659078
.
operation
)
e1
:
SetOperation
(
c73659078
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--atkdown
--atkdown
...
@@ -26,19 +27,20 @@ function c73659078.cfilter(c)
...
@@ -26,19 +27,20 @@ function c73659078.cfilter(c)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
not
c
:
IsPublic
()
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
not
c
:
IsPublic
()
end
end
function
c73659078
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c73659078
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
and
Duel
.
IsExistingMatchingCard
(
c73659078
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c73659078
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
99
,
nil
)
function
c73659078
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c73659078
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
ShuffleHand
(
tp
)
e
:
SetLabel
(
g
:
GetCount
())
end
end
function
c73659078
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73659078
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
if
g
:
GetCount
()
==
0
then
return
end
local
ct
=
e
:
GetLabel
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c73659078
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
99
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ShuffleHand
(
tp
)
local
ct
=
cg
:
GetCount
()
for
i
=
1
,
ct
do
for
i
=
1
,
ct
do
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
73659078
,
1
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
73659078
,
1
))
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
...
...
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