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
a099b1bc
Commit
a099b1bc
authored
Mar 21, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
112a3c63
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
19 deletions
+40
-19
script/c19221310.lua
script/c19221310.lua
+2
-3
script/c56619314.lua
script/c56619314.lua
+38
-16
No files found.
script/c19221310.lua
View file @
a099b1bc
...
...
@@ -36,14 +36,13 @@ function c19221310.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
+
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c19221310
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c19221310
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c19221310
.
filter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
1
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
...
...
script/c56619314.lua
View file @
a099b1bc
...
...
@@ -21,24 +21,46 @@ function c56619314.initial_effect(c)
e2
:
SetOperation
(
c56619314
.
operation
)
c
:
RegisterEffect
(
e2
)
end
function
c56619314
.
spfilter
(
c
,
rac
,
tp
)
return
c
:
IsRace
(
rac
)
and
c
:
IsControler
(
tp
)
end
function
c56619314
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
tp
,
Card
.
IsRace
,
1
,
e
:
GetHandler
(),
RACE_DRAGON
)
and
Duel
.
CheckReleaseGroupEx
(
tp
,
Card
.
IsRace
,
1
,
e
:
GetHandler
(),
RACE_FIEND
)
end
if
chk
==
0
then
local
ct
=
0
if
Duel
.
CheckReleaseGroup
(
tp
,
c56619314
.
spfilter
,
1
,
nil
,
RACE_DRAGON
,
tp
)
then
ct
=
ct
-
1
end
if
Duel
.
CheckReleaseGroup
(
tp
,
c56619314
.
spfilter
,
1
,
nil
,
RACE_FIEND
,
tp
)
then
ct
=
ct
-
1
end
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
ct
and
Duel
.
CheckReleaseGroupEx
(
tp
,
Card
.
IsRace
,
1
,
e
:
GetHandler
(),
RACE_DRAGON
)
and
Duel
.
CheckReleaseGroupEx
(
tp
,
Card
.
IsRace
,
1
,
e
:
GetHandler
(),
RACE_FIEND
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
>
0
then
local
g1
=
Duel
.
SelectReleaseGroupEx
(
tp
,
Card
.
IsRace
,
1
,
1
,
e
:
GetHandler
(),
RACE_DRAGON
)
local
g2
=
Duel
.
SelectReleaseGroupEx
(
tp
,
Card
.
IsRace
,
1
,
1
,
e
:
GetHandler
(),
RACE_FIEND
)
g1
:
Merge
(
g2
)
Duel
.
Release
(
g1
,
REASON_COST
)
elseif
ft
==
0
then
local
g1
=
Duel
.
SelectReleaseGroup
(
tp
,
c56619314
.
spfilter
,
1
,
1
,
nil
,
RACE_DRAGON
+
RACE_FIEND
,
tp
)
local
rac
=
RACE_DRAGON
if
g1
:
GetFirst
():
IsRace
(
RACE_DRAGON
)
then
rac
=
RACE_FIEND
end
local
g2
=
Duel
.
SelectReleaseGroupEx
(
tp
,
Card
.
IsRace
,
1
,
1
,
e
:
GetHandler
(),
rac
)
g1
:
Merge
(
g2
)
Duel
.
Release
(
g1
,
REASON_COST
)
else
local
g1
=
Duel
.
SelectReleaseGroup
(
tp
,
c56619314
.
spfilter
,
1
,
1
,
nil
,
RACE_DRAGON
,
tp
)
local
g2
=
Duel
.
SelectReleaseGroup
(
tp
,
c56619314
.
spfilter
,
1
,
1
,
nil
,
RACE_FIEND
,
tp
)
g1
:
Merge
(
g2
)
Duel
.
Release
(
g1
,
REASON_COST
)
end
end
function
c56619314
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c56619314
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c56619314
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
1
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c56619314
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -57,13 +79,13 @@ function c56619314.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
500
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
if
Duel
.
IsExistingMatchingCard
(
c56619314
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
56619314
,
2
))
then
local
g
=
Duel
.
GetMatchingGroup
(
c56619314
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
56619314
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c56619314
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
local
dg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
d
g
)
Duel
.
Destroy
(
d
g
,
REASON_EFFECT
)
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