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
20863752
Commit
20863752
authored
Jul 12, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1435 from nekrozar/patch-3
fix Artifacts Unleashed, Number F0: Utopic Future
parents
eff85782
d494b2de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
16 deletions
+34
-16
script/c56611470.lua
script/c56611470.lua
+4
-2
script/c65305468.lua
script/c65305468.lua
+30
-14
No files found.
script/c56611470.lua
View file @
20863752
...
...
@@ -34,6 +34,9 @@ end
function
c56611470
.
mfilter2
(
c
,
mc
)
return
c
.
xyz_filter
(
mc
)
end
function
c56611470
.
mfilter3
(
c
,
mc
,
exg
)
return
exg
:
IsExists
(
Card
.
IsXyzSummonable
,
1
,
nil
,
Group
.
FromCards
(
c
,
mc
))
end
function
c56611470
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
local
mg
=
Duel
.
GetMatchingGroup
(
c56611470
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
e
)
...
...
@@ -43,9 +46,8 @@ function c56611470.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
sg1
=
mg
:
FilterSelect
(
tp
,
c56611470
.
mfilter1
,
1
,
1
,
nil
,
exg
)
local
tc1
=
sg1
:
GetFirst
()
local
exg2
=
exg
:
Filter
(
c56611470
.
mfilter2
,
nil
,
tc1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
sg2
=
mg
:
FilterSelect
(
tp
,
c56611470
.
mfilter
1
,
1
,
1
,
tc1
,
exg2
)
local
sg2
=
mg
:
FilterSelect
(
tp
,
c56611470
.
mfilter
3
,
1
,
1
,
tc1
,
tc1
,
exg
)
sg1
:
Merge
(
sg2
)
Duel
.
SetTargetCard
(
sg1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
...
...
script/c65305468.lua
View file @
20863752
...
...
@@ -44,8 +44,12 @@ function c65305468.initial_effect(c)
e7
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetTarget
(
c65305468
.
reptg
)
c
:
RegisterEffect
(
e7
)
if
not
c65305468
.
xyz_filter
then
c65305468
.
xyz_filter
=
function
(
mc
)
return
mc
:
IsType
(
TYPE_XYZ
)
and
not
mc
:
IsSetCard
(
0x48
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
end
end
end
c65305468
.
xyz_number
=
0
c65305468
.
xyz_count
=
2
function
c65305468
.
mfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
not
c
:
IsSetCard
(
0x48
)
end
...
...
@@ -59,24 +63,36 @@ function c65305468.xyzcon(e,c,og)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
mg
=
Duel
.
GetMatchingGroup
(
c65305468
.
mfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
og
then
mg
=
og
end
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
mg
:
IsExists
(
c65305468
.
xyzfilter1
,
1
,
nil
,
mg
)
end
function
c65305468
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
og
)
local
mg
=
Duel
.
GetMatchingGroup
(
c65305468
.
mfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g1
=
mg
:
FilterSelect
(
tp
,
c65305468
.
xyzfilter1
,
1
,
1
,
nil
,
mg
)
local
tc1
=
g1
:
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g2
=
mg
:
FilterSelect
(
tp
,
c65305468
.
xyzfilter2
,
1
,
1
,
tc1
,
tc1
:
GetRank
())
local
tc2
=
g2
:
GetFirst
()
g1
:
Merge
(
g2
)
local
sg1
=
tc1
:
GetOverlayGroup
()
local
sg2
=
tc2
:
GetOverlayGroup
()
sg1
:
Merge
(
sg2
)
Duel
.
SendtoGrave
(
sg1
,
REASON_RULE
)
c
:
SetMaterial
(
g1
)
Duel
.
Overlay
(
c
,
g1
)
local
g
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
if
og
then
local
tc
=
og
:
GetFirst
()
while
tc
do
g
:
AddCard
(
tc
)
sg
:
Merge
(
tc
:
GetOverlayGroup
())
tc
=
og
:
GetNext
()
end
else
local
mg
=
Duel
.
GetMatchingGroup
(
c65305468
.
mfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g1
=
mg
:
FilterSelect
(
tp
,
c65305468
.
xyzfilter1
,
1
,
1
,
nil
,
mg
)
local
tc1
=
g1
:
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g2
=
mg
:
FilterSelect
(
tp
,
c65305468
.
xyzfilter2
,
1
,
1
,
tc1
,
tc1
:
GetRank
())
local
tc2
=
g2
:
GetFirst
()
g
:
AddCard
(
tc1
)
g
:
AddCard
(
tc2
)
sg
:
Merge
(
tc1
:
GetOverlayGroup
())
sg
:
Merge
(
tc2
:
GetOverlayGroup
())
end
Duel
.
SendtoGrave
(
sg
,
REASON_RULE
)
c
:
SetMaterial
(
g
)
Duel
.
Overlay
(
c
,
g
)
end
function
c65305468
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
...
...
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