Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
HiiragiGuardians
ygopro-THC-cards
Commits
faa9f404
You need to sign in or sign up before continuing.
Commit
faa9f404
authored
Mar 28, 2022
by
Grajade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c74563016.lua
parent
ecafd59b
Pipeline
#11226
passed with stage
in 38 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
42 deletions
+24
-42
script/c74563016.lua
script/c74563016.lua
+24
-42
No files found.
script/c74563016.lua
View file @
faa9f404
...
@@ -103,63 +103,45 @@ function c74563016.allfilter1(c,fc)
...
@@ -103,63 +103,45 @@ function c74563016.allfilter1(c,fc)
and
(
c
:
IsFusionSetCard
(
0x258
)
or
c
:
IsFusionAttribute
(
ATTRIBUTE_EARTH
)
or
c
:
IsFusionAttribute
(
ATTRIBUTE_FIRE
))
and
(
c
:
IsFusionSetCard
(
0x258
)
or
c
:
IsFusionAttribute
(
ATTRIBUTE_EARTH
)
or
c
:
IsFusionAttribute
(
ATTRIBUTE_FIRE
))
end
end
--
--
function
c74563016
.
CheckFusionFilter1
(
c
,
sg
,
tc
)
function
c74563016
.
ExFusFilter
(
c
,
fc
)
local
check1
=
0
return
c74563016
.
AllFusFilter
(
c
,
fc
)
and
c
:
IsCode
(
74563024
)
and
c
:
IsAbleToRemove
()
local
check2
=
0
end
local
sc
=
sg
:
GetFirst
()
function
c74563016
.
AllFusFilter
(
c
,
fc
)
while
sc
do
return
c
:
IsCanBeFusionMaterial
(
fc
)
and
c
:
IsFusionType
(
TYPE_MONSTER
)
and
(
c74563016
.
CheckFusFilter1
(
c
)
or
c74563016
.
CheckFusFilter2
(
c
))
if
sc
:
IsFusionSetCard
(
0x258
)
then
check1
=
1
end
end
if
(
sc
:
IsFusionAttribute
(
ATTRIBUTE_EARTH
)
or
sc
:
IsFusionAttribute
(
ATTRIBUTE_FIRE
))
then
check2
=
1
end
function
c74563016
.
CheckFusFilter1
(
c
)
sc
=
sg
:
GetNext
()
return
c
:
IsFusionSetCard
(
0x258
)
end
end
return
(
check1
==
0
and
(
tc
:
IsFusionSetCard
(
0x258
)))
function
c74563016
.
CheckFusFilter2
(
c
)
or
(
check2
==
0
and
(
tc
:
IsFusionAttribute
(
ATTRIBUTE_EARTH
)
or
tc
:
IsFusionAttribute
(
ATTRIBUTE_FIRE
)))
return
c
:
IsFusionAttribute
(
ATTRIBUTE_EARTH
+
ATTRIBUTE_FIRE
)
end
end
function
c74563016
.
CheckRecursive1
(
c
,
mg
,
sg
,
exg
,
tp
,
fc
,
chkf
)
function
c74563016
.
CheckGroupFilter
(
sg
,
lc
)
--if exg and exg:IsContains(c) then return false end
return
(
not
lc
)
or
(
lc
and
sg
:
IsContains
(
lc
))
if
sg
:
GetCount
()
>
0
and
not
sg
:
IsExists
(
c74563016
.
CheckFusionFilter1
,
1
,
nil
,
sg
,
c
)
then
return
false
end
sg
:
AddCard
(
c
)
if
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
,
c
)
<
0
then
return
false
end
local
res
=
false
if
sg
:
GetCount
()
==
2
then
res
=
(
chkf
==
PLAYER_NONE
or
Duel
.
GetLocationCountFromEx
(
chkf
,
tp
,
sg
,
fc
)
>
0
)
if
aux
.
FCheckAdditional
and
not
aux
.
FCheckAdditional
(
tp
,
sg
,
fc
)
then
res
=
false
end
else
res
=
mg
:
IsExists
(
c74563016
.
CheckRecursive1
,
1
,
sg
,
mg
,
sg
,
exg
,
tp
,
fc
,
PLAYER_NONE
)
end
sg
:
RemoveCard
(
c
)
return
res
end
end
--
function
c74563016
.
con1
(
e
,
g
,
gc
,
chkfnf
)
function
c74563016
.
con1
(
e
,
g
,
gc
,
chkfnf
)
if
g
==
nil
then
return
true
end
if
g
==
nil
then
return
true
end
local
sg
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
local
chkf
=
(
chkfnf
&
0xff
)
local
chkf
=
(
chkfnf
&
0xff
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
mg
=
g
:
Filter
(
c74563016
.
allfilter1
,
nil
,
c
)
local
mg
=
g
:
Filter
(
c74563016
.
AllFusFilter
,
nil
,
c
)
local
exg
=
Duel
.
GetMatchingGroup
(
c74563016
.
exfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
mg
,
c
)
local
exg
=
Duel
.
GetMatchingGroup
(
c74563016
.
ExFusFilter
,
tp
,
LOCATION_GRAVE
,
0
,
mg
,
c
)
mg
:
Merge
(
exg
)
mg
:
Merge
(
exg
)
if
gc
then
return
c74563016
.
allfilter1
(
gc
,
c
)
local
checks
=
{
c74563016
.
CheckFusFilter1
,
c74563016
.
CheckFusFilter2
}
and
c74563016
.
CheckRecursive1
(
gc
,
mg
,
sg
,
exg
,
tp
,
c
,
chkf
)
end
return
mg
:
CheckSubGroupEach
(
checks
,
c74563016
.
CheckGroupFilter
,
gc
)
return
mg
:
IsExists
(
c74563016
.
CheckRecursive1
,
1
,
sg
,
mg
,
sg
,
exg
,
tp
,
c
,
chkf
)
end
end
--
function
c74563016
.
op1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
gc
,
chkfnf
)
function
c74563016
.
op1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
gc
,
chkfnf
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
chkf
=
(
chkfnf
&
0xff
)
local
chkf
=
(
chkfnf
&
0xff
)
local
mg
=
eg
:
Filter
(
c74563016
.
allfilter1
,
nil
,
c
)
local
mg
=
eg
:
Filter
(
c74563016
.
AllFusFilter
,
nil
,
c
)
local
exg
=
Duel
.
GetMatchingGroup
(
c74563016
.
exfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
mg
,
c
)
local
exg
=
Duel
.
GetMatchingGroup
(
c74563016
.
ExFusFilter
,
tp
,
LOCATION_GRAVE
,
0
,
mg
,
c
)
mg
:
Merge
(
exg
)
mg
:
Merge
(
exg
)
local
sg
=
Group
.
CreateGroup
()
local
checks
=
{
c74563016
.
CheckFusFilter1
,
c74563016
.
CheckFusFilter2
}
if
gc
then
sg
:
AddCard
(
gc
)
end
repeat
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
local
g
=
mg
:
FilterSelect
(
tp
,
c74563016
.
CheckRecursive1
,
1
,
1
,
sg
,
mg
,
sg
,
exg
,
tp
,
c
,
chkf
)
local
sg
=
mg
:
SelectSubGroupEach
(
tp
,
checks
,
false
,
c74563016
.
CheckGroupFilter
,
gc
)
sg
:
Merge
(
g
)
until
sg
:
GetCount
()
==
2
Duel
.
SetFusionMaterial
(
sg
)
Duel
.
SetFusionMaterial
(
sg
)
end
end
--
c74563016
.
OriginalSetMaterial
=
Card
.
SetMaterial
c74563016
.
OriginalSetMaterial
=
Card
.
SetMaterial
function
c74563016
.
SetMaterial
(
c
,
g
)
function
c74563016
.
SetMaterial
(
c
,
g
)
c74563016
.
OriginalSetMaterial
(
c
,
g
)
c74563016
.
OriginalSetMaterial
(
c
,
g
)
...
...
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