Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
List
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
YGOPRO-520DIY
ygopro
Commits
fbc5ee15
Commit
fbc5ee15
authored
Jun 12, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1382 from Tianchenglipu/patch-2
Update c44394295.lua
parents
0fdeae03
4b435bd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
script/c44394295.lua
script/c44394295.lua
+10
-7
No files found.
script/c44394295.lua
View file @
fbc5ee15
...
@@ -26,11 +26,11 @@ end
...
@@ -26,11 +26,11 @@ end
function
c44394295
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c44394295
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
local
chkf
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
PLAYER_NONE
or
tp
local
chkf
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
PLAYER_NONE
or
tp
local
mg1
=
Duel
.
GetMatchingGroup
(
c44394295
.
filter0
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
)
local
loc
=
LOCATION_HAND
+
LOCATION_MZONE
if
Duel
.
IsExistingMatchingCard
(
c44394295
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
then
if
Duel
.
IsExistingMatchingCard
(
c44394295
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
then
local
sg
=
Duel
.
GetMatchingGroup
(
c44394295
.
filter0
,
tp
,
LOCATION_DECK
,
0
,
nil
)
loc
=
loc
+
LOCATION_DECK
mg1
:
Merge
(
sg
)
end
end
local
mg1
=
Duel
.
GetMatchingGroup
(
c44394295
.
filter0
,
tp
,
loc
,
0
,
nil
)
local
res
=
Duel
.
IsExistingMatchingCard
(
c44394295
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
res
=
Duel
.
IsExistingMatchingCard
(
c44394295
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
if
not
res
then
if
not
res
then
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
...
@@ -47,11 +47,11 @@ function c44394295.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -47,11 +47,11 @@ function c44394295.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c44394295
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c44394295
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
chkf
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
PLAYER_NONE
or
tp
local
chkf
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
PLAYER_NONE
or
tp
local
mg1
=
Duel
.
GetMatchingGroup
(
c44394295
.
filter1
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
,
e
)
local
loc
=
LOCATION_HAND
+
LOCATION_MZONE
if
Duel
.
IsExistingMatchingCard
(
c44394295
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
then
if
Duel
.
IsExistingMatchingCard
(
c44394295
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
then
local
sg
=
Duel
.
GetMatchingGroup
(
c44394295
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
)
loc
=
loc
+
LOCATION_DECK
mg1
:
Merge
(
sg
)
end
end
local
mg1
=
Duel
.
GetMatchingGroup
(
c44394295
.
filter1
,
tp
,
loc
,
0
,
nil
,
e
)
local
sg1
=
Duel
.
GetMatchingGroup
(
c44394295
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
sg1
=
Duel
.
GetMatchingGroup
(
c44394295
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
mg2
=
nil
local
mg2
=
nil
local
sg2
=
nil
local
sg2
=
nil
...
@@ -81,13 +81,16 @@ function c44394295.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -81,13 +81,16 @@ function c44394295.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
else
else
local
cg1
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
)
local
cg1
=
Duel
.
GetFieldGroup
(
tp
,
loc
,
0
)
local
cg2
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_EXTRA
,
0
)
local
cg2
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_EXTRA
,
0
)
if
cg1
:
GetCount
()
>
1
and
cg2
:
IsExists
(
Card
.
IsFacedown
,
1
,
nil
)
if
cg1
:
GetCount
()
>
1
and
cg2
:
IsExists
(
Card
.
IsFacedown
,
1
,
nil
)
and
Duel
.
IsPlayerCanSpecialSummon
(
tp
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
27581098
)
then
and
Duel
.
IsPlayerCanSpecialSummon
(
tp
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
27581098
)
then
Duel
.
ConfirmCards
(
1
-
tp
,
cg1
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg1
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg2
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg2
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
if
bit
.
band
(
loc
,
LOCATION_DECK
)
==
LOCATION_DECK
then
Duel
.
ShuffleDeck
(
tp
)
end
end
end
end
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