Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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-scripts
Commits
8ea9ea23
Commit
8ea9ea23
authored
Jul 15, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8ed9d3fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
utility.lua
utility.lua
+10
-10
No files found.
utility.lua
View file @
8ea9ea23
...
@@ -1374,16 +1374,16 @@ end
...
@@ -1374,16 +1374,16 @@ end
function
Auxiliary
.
FShaddollFilter2
(
c
,
attr
)
function
Auxiliary
.
FShaddollFilter2
(
c
,
attr
)
return
c
:
IsFusionAttribute
(
attr
)
or
c
:
IsHasEffect
(
4904633
)
return
c
:
IsFusionAttribute
(
attr
)
or
c
:
IsHasEffect
(
4904633
)
end
end
function
Auxiliary
.
FShaddollSpFilter1
(
c
,
tp
,
mg
,
exg
,
attr
)
function
Auxiliary
.
FShaddollSpFilter1
(
c
,
tp
,
mg
,
exg
,
attr
,
chkf
)
return
mg
:
IsExists
(
Auxiliary
.
FShaddollSpFilter2
,
1
,
c
,
tp
,
c
,
attr
)
or
(
exg
and
exg
:
IsExists
(
Auxiliary
.
FShaddollSpFilter2
,
1
,
c
,
tp
,
c
,
attr
))
return
mg
:
IsExists
(
Auxiliary
.
FShaddollSpFilter2
,
1
,
c
,
tp
,
c
,
attr
,
chkf
)
or
(
exg
and
exg
:
IsExists
(
Auxiliary
.
FShaddollSpFilter2
,
1
,
c
,
tp
,
c
,
attr
,
chkf
))
end
end
function
Auxiliary
.
FShaddollSpFilter2
(
c
,
tp
,
mc
,
attr
)
function
Auxiliary
.
FShaddollSpFilter2
(
c
,
tp
,
mc
,
attr
,
chkf
)
local
sg
=
Group
.
FromCards
(
c
,
mc
)
local
sg
=
Group
.
FromCards
(
c
,
mc
)
if
sg
:
IsExists
(
Auxiliary
.
TuneMagicianCheckX
,
1
,
nil
,
sg
,
EFFECT_TUNE_MAGICIAN_F
)
then
return
false
end
if
sg
:
IsExists
(
Auxiliary
.
TuneMagicianCheckX
,
1
,
nil
,
sg
,
EFFECT_TUNE_MAGICIAN_F
)
then
return
false
end
if
not
Auxiliary
.
MustMaterialCheck
(
sg
,
tp
,
EFFECT_MUST_BE_FMATERIAL
)
then
return
false
end
if
not
Auxiliary
.
MustMaterialCheck
(
sg
,
tp
,
EFFECT_MUST_BE_FMATERIAL
)
then
return
false
end
return
((
Auxiliary
.
FShaddollFilter1
(
c
)
and
Auxiliary
.
FShaddollFilter2
(
mc
,
attr
))
return
((
Auxiliary
.
FShaddollFilter1
(
c
)
and
Auxiliary
.
FShaddollFilter2
(
mc
,
attr
))
or
(
Auxiliary
.
FShaddollFilter2
(
c
,
attr
)
and
Auxiliary
.
FShaddollFilter1
(
mc
)))
or
(
Auxiliary
.
FShaddollFilter2
(
c
,
attr
)
and
Auxiliary
.
FShaddollFilter1
(
mc
)))
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
)
>
0
and
(
chkf
==
PLAYER_NONE
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
)
>
0
)
end
end
function
Auxiliary
.
FShaddollCondition
(
attr
)
function
Auxiliary
.
FShaddollCondition
(
attr
)
return
function
(
e
,
g
,
gc
,
chkf
)
return
function
(
e
,
g
,
gc
,
chkf
)
...
@@ -1398,9 +1398,9 @@ function Auxiliary.FShaddollCondition(attr)
...
@@ -1398,9 +1398,9 @@ function Auxiliary.FShaddollCondition(attr)
end
end
if
gc
then
if
gc
then
if
not
mg
:
IsContains
(
gc
)
then
return
false
end
if
not
mg
:
IsContains
(
gc
)
then
return
false
end
return
Auxiliary
.
FShaddollSpFilter1
(
gc
,
tp
,
mg
,
exg
,
attr
)
return
Auxiliary
.
FShaddollSpFilter1
(
gc
,
tp
,
mg
,
exg
,
attr
,
chkf
)
end
end
return
mg
:
IsExists
(
Auxiliary
.
FShaddollSpFilter1
,
1
,
nil
,
tp
,
mg
,
exg
,
attr
)
return
mg
:
IsExists
(
Auxiliary
.
FShaddollSpFilter1
,
1
,
nil
,
tp
,
mg
,
exg
,
attr
,
chkf
)
end
end
end
end
function
Auxiliary
.
FShaddollOperation
(
attr
)
function
Auxiliary
.
FShaddollOperation
(
attr
)
...
@@ -1418,18 +1418,18 @@ function Auxiliary.FShaddollOperation(attr)
...
@@ -1418,18 +1418,18 @@ function Auxiliary.FShaddollOperation(attr)
mg
:
RemoveCard
(
gc
)
mg
:
RemoveCard
(
gc
)
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
g
=
mg
:
FilterSelect
(
tp
,
Auxiliary
.
FShaddollSpFilter1
,
1
,
1
,
nil
,
tp
,
mg
,
exg
,
attr
)
g
=
mg
:
FilterSelect
(
tp
,
Auxiliary
.
FShaddollSpFilter1
,
1
,
1
,
nil
,
tp
,
mg
,
exg
,
attr
,
chkf
)
mg
:
Sub
(
g
)
mg
:
Sub
(
g
)
end
end
if
exg
and
exg
:
IsExists
(
Auxiliary
.
FShaddollSpFilter2
,
1
,
nil
,
tp
,
g
:
GetFirst
(),
attr
)
if
exg
and
exg
:
IsExists
(
Auxiliary
.
FShaddollSpFilter2
,
1
,
nil
,
tp
,
g
:
GetFirst
(),
attr
,
chkf
)
and
(
mg
:
GetCount
()
==
0
or
(
exg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
81788994
,
0
))))
then
and
(
mg
:
GetCount
()
==
0
or
(
exg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
81788994
,
0
))))
then
fc
:
RemoveCounter
(
tp
,
0x16
,
3
,
REASON_EFFECT
)
fc
:
RemoveCounter
(
tp
,
0x16
,
3
,
REASON_EFFECT
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
local
sg
=
exg
:
FilterSelect
(
tp
,
Auxiliary
.
FShaddollSpFilter2
,
1
,
1
,
nil
,
tp
,
g
:
GetFirst
(),
attr
)
local
sg
=
exg
:
FilterSelect
(
tp
,
Auxiliary
.
FShaddollSpFilter2
,
1
,
1
,
nil
,
tp
,
g
:
GetFirst
(),
attr
,
chkf
)
g
:
Merge
(
sg
)
g
:
Merge
(
sg
)
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
local
sg
=
mg
:
FilterSelect
(
tp
,
Auxiliary
.
FShaddollSpFilter2
,
1
,
1
,
nil
,
tp
,
g
:
GetFirst
(),
attr
)
local
sg
=
mg
:
FilterSelect
(
tp
,
Auxiliary
.
FShaddollSpFilter2
,
1
,
1
,
nil
,
tp
,
g
:
GetFirst
(),
attr
,
chkf
)
g
:
Merge
(
sg
)
g
:
Merge
(
sg
)
end
end
Duel
.
SetFusionMaterial
(
g
)
Duel
.
SetFusionMaterial
(
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