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
30b3088b
Commit
30b3088b
authored
Apr 30, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
881338b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
25 deletions
+16
-25
script/c65472618.lua
script/c65472618.lua
+4
-0
script/c82734805.lua
script/c82734805.lua
+12
-25
No files found.
script/c65472618.lua
View file @
30b3088b
...
...
@@ -71,6 +71,7 @@ function c65472618.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c65472618
.
thcon
)
e1
:
SetOperation
(
c65472618
.
thop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
...
@@ -78,6 +79,9 @@ end
function
c65472618
.
thfilter2
(
c
)
return
c65472618
.
thfilter
(
c
)
and
c
:
IsAbleToHand
()
end
function
c65472618
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c65472618
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
function
c65472618
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
65472618
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
script/c82734805.lua
View file @
30b3088b
...
...
@@ -110,20 +110,6 @@ end
function
c82734805
.
fcfilter4
(
c
,
code
)
return
c
:
IsCode
(
code
)
or
c
:
IsHasEffect
(
EFFECT_FUSION_SUBSTITUTE
)
end
function
c82734805
.
fcfilter5
(
c
,
g
,
ct
)
if
c
:
IsSetCard
(
0xbb
)
then
ct
=
ct
-
1
end
if
c
:
IsCode
(
14799437
)
then
return
g
:
IsExists
(
c82734805
.
fcfilter6
,
1
,
c
,
g
,
ct
,
true
)
elseif
c
:
IsHasEffect
(
EFFECT_FUSION_SUBSTITUTE
)
then
return
g
:
IsExists
(
c82734805
.
fcfilter6
,
1
,
c
,
g
,
ct
,
false
)
else
return
false
end
end
function
c82734805
.
fcfilter6
(
c
,
g
,
ct
,
sub
)
if
c
:
IsSetCard
(
0xbb
)
then
ct
=
ct
-
1
end
return
ct
>
0
and
(
c
:
IsCode
(
23440231
)
or
(
sub
and
c
:
IsHasEffect
(
EFFECT_FUSION_SUBSTITUTE
)))
end
function
c82734805
.
fcfilter7
(
c
,
chkf
)
return
aux
.
FConditionCheckF
(
c
,
chkf
)
and
(
c
:
IsSetCard
(
0xbb
)
or
c
:
IsHasEffect
(
EFFECT_FUSION_SUBSTITUTE
))
end
...
...
@@ -207,19 +193,20 @@ function c82734805.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkf)
ok
=
true
end
else
local
ct
=
mg
:
FilterCount
(
Card
.
IsSetCard
,
nil
,
0xbb
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
g1
=
mg
:
FilterSelect
(
tp
,
c82734805
.
fcfilter5
,
1
,
1
,
nil
,
mg
,
ct
)
local
tc1
=
g1
:
GetFirst
()
if
tc1
:
IsSetCard
(
0xbb
)
then
ct
=
ct
-
1
end
local
mg2
=
mg
:
Filter
(
aux
.
FConditionFilter22
,
nil
,
14799437
,
23440231
,
true
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
if
tc1
:
IsCode
(
14799437
)
then
local
sg
=
mg
:
FilterSelect
(
tp
,
c82734805
.
fcfilter6
,
1
,
1
,
tc1
,
mg
,
ct
,
true
)
g1
:
Merge
(
sg
)
else
local
sg
=
mg
:
FilterSelect
(
tp
,
c82734805
.
fcfilter6
,
1
,
1
,
tc1
,
mg
,
ct
,
false
)
g1
:
Merge
(
sg
)
local
sg1
=
mg2
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc1
=
sg1
:
GetFirst
()
if
not
mg
:
IsExists
(
Card
.
IsSetCard
,
2
,
tc1
,
0xbb
)
then
mg2
:
Remove
(
Card
.
IsSetCard
,
nil
,
0xbb
)
end
if
tc1
:
IsHasEffect
(
EFFECT_FUSION_SUBSTITUTE
)
then
mg2
:
Remove
(
Card
.
IsHasEffect
,
nil
,
EFFECT_FUSION_SUBSTITUTE
)
else
mg2
:
Remove
(
Card
.
IsCode
,
nil
,
tc1
:
GetCode
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
local
sg2
=
mg2
:
Select
(
tp
,
1
,
1
,
nil
)
g1
:
Merge
(
sg1
)
g1
:
Merge
(
sg2
)
end
mg
:
Sub
(
g1
)
mg
=
mg
:
Filter
(
Card
.
IsSetCard
,
nil
,
0xbb
)
...
...
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