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
fc81ea8b
Commit
fc81ea8b
authored
Dec 10, 2019
by
mercury233
Committed by
GitHub
Dec 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix aux.FShaddoll (#1260)
parent
f64894c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
utility.lua
utility.lua
+11
-9
No files found.
utility.lua
View file @
fc81ea8b
...
@@ -1418,13 +1418,15 @@ end
...
@@ -1418,13 +1418,15 @@ 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
,
chkf
)
function
Auxiliary
.
FShaddollSpFilter1
(
c
,
fc
,
tp
,
mg
,
exg
,
attr
,
chkf
)
return
mg
:
IsExists
(
Auxiliary
.
FShaddollSpFilter2
,
1
,
c
,
tp
,
c
,
attr
,
chkf
)
or
(
exg
and
exg
:
IsExists
(
Auxiliary
.
FShaddollSpFilter2
,
1
,
c
,
tp
,
c
,
attr
,
chkf
))
return
mg
:
IsExists
(
Auxiliary
.
FShaddollSpFilter2
,
1
,
c
,
fc
,
tp
,
c
,
attr
,
chkf
)
or
(
exg
and
exg
:
IsExists
(
Auxiliary
.
FShaddollSpFilter2
,
1
,
c
,
fc
,
tp
,
c
,
attr
,
chkf
))
end
end
function
Auxiliary
.
FShaddollSpFilter2
(
c
,
tp
,
mc
,
attr
,
chkf
)
function
Auxiliary
.
FShaddollSpFilter2
(
c
,
fc
,
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
if
Auxiliary
.
FCheckAdditional
and
not
Auxiliary
.
FCheckAdditional
(
tp
,
sg
,
fc
)
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
(
chkf
==
PLAYER_NONE
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
)
>
0
)
and
(
chkf
==
PLAYER_NONE
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
)
>
0
)
...
@@ -1442,9 +1444,9 @@ function Auxiliary.FShaddollCondition(attr)
...
@@ -1442,9 +1444,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
,
chkf
)
return
Auxiliary
.
FShaddollSpFilter1
(
gc
,
c
,
tp
,
mg
,
exg
,
attr
,
chkf
)
end
end
return
mg
:
IsExists
(
Auxiliary
.
FShaddollSpFilter1
,
1
,
nil
,
tp
,
mg
,
exg
,
attr
,
chkf
)
return
mg
:
IsExists
(
Auxiliary
.
FShaddollSpFilter1
,
1
,
nil
,
c
,
tp
,
mg
,
exg
,
attr
,
chkf
)
end
end
end
end
function
Auxiliary
.
FShaddollOperation
(
attr
)
function
Auxiliary
.
FShaddollOperation
(
attr
)
...
@@ -1462,18 +1464,18 @@ function Auxiliary.FShaddollOperation(attr)
...
@@ -1462,18 +1464,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
,
chkf
)
g
=
mg
:
FilterSelect
(
tp
,
Auxiliary
.
FShaddollSpFilter1
,
1
,
1
,
nil
,
c
,
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
,
chkf
)
if
exg
and
exg
:
IsExists
(
Auxiliary
.
FShaddollSpFilter2
,
1
,
nil
,
c
,
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
,
chkf
)
local
sg
=
exg
:
FilterSelect
(
tp
,
Auxiliary
.
FShaddollSpFilter2
,
1
,
1
,
nil
,
c
,
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
,
chkf
)
local
sg
=
mg
:
FilterSelect
(
tp
,
Auxiliary
.
FShaddollSpFilter2
,
1
,
1
,
nil
,
c
,
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