Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
specials
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
JoyJ
specials
Commits
5dbb1cbb
Commit
5dbb1cbb
authored
Dec 21, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix common special summons
parent
8c1e9c08
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
1 deletion
+36
-1
mr5/special.lua
mr5/special.lua
+36
-1
No files found.
mr5/special.lua
View file @
5dbb1cbb
local
forced_to_extra
=
{
forced_to_extra
=
{
[
0
]
=
false
,
[
0
]
=
false
,
[
1
]
=
false
[
1
]
=
false
}
}
...
@@ -144,3 +144,38 @@ function Auxiliary.PendOperation()
...
@@ -144,3 +144,38 @@ function Auxiliary.PendOperation()
forced_to_extra
[
tp
]
=
true
forced_to_extra
[
tp
]
=
true
end
end
end
end
local
old_spsummon_step
=
Duel
.
SpecialSummonStep
local
old_spsummon
=
Duel
.
SpecialSummon
function
Duel
.
SpecialSummonStep
(
c
,
...
)
local
tp
=
select
(
3
,
...
)
if
c
:
IsLocation
(
LOCATION_EXTRA
)
and
(
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsType
(
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
)
or
c
:
IsType
(
TYPE_LINK
))
then
forced_to_extra
[
tp
]
=
true
end
local
res
=
old_spsummon_step
(
c
,
...
)
forced_to_extra
[
tp
]
=
false
return
res
end
function
Duel
.
SpecialSummon
(
g
,
...
)
local
res
=
0
local
tg
=
g
if
Auxiliary
.
GetValueType
(
g
)
==
"Card"
then
tg
=
Group
.
FromCards
(
g
)
end
local
groups
=
{}
groups
[
1
]
=
tg
:
Filter
(
function
(
c
)
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
(
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsType
(
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
)
or
c
:
IsType
(
TYPE_LINK
))
end
,
nil
)
tg
:
Sub
(
groups
[
1
])
groups
[
2
]
=
tg
:
Filter
(
function
(
c
)
return
not
c
:
IsLocation
(
LOCATION_EXTRA
)
end
,
nil
)
tg
:
Sub
(
groups
[
2
])
groups
[
3
]
=
tg
for
i
=
1
,
3
do
for
tc
in
Auxiliary
.
Next
(
groups
[
i
])
do
if
Duel
.
SpecialSummonStep
(
c
,
...
)
then
res
=
res
+
1
end
end
end
Duel
.
SpecialSummonComplete
()
return
res
end
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