Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Nanahira-Cards
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
nanahira
Nanahira-Cards
Commits
ce5bc27c
Commit
ce5bc27c
authored
Dec 30, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates for mr5
parent
5cac8ad5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
expansions/script/c37564765.lua
expansions/script/c37564765.lua
+10
-0
No files found.
expansions/script/c37564765.lua
View file @
ce5bc27c
...
@@ -996,6 +996,11 @@ function cm.PConditionFilterNanahira(c,e,tp,lscale,rscale,f,tc,eset)
...
@@ -996,6 +996,11 @@ function cm.PConditionFilterNanahira(c,e,tp,lscale,rscale,f,tc,eset)
and
(
PENDULUM_CHECKLIST
&
(
0x1
<<
tp
)
==
0
or
aux
.
PConditionExtraFilter
(
c
,
e
,
tp
,
lscale
,
rscale
,
eset
))
and
(
PENDULUM_CHECKLIST
&
(
0x1
<<
tp
)
==
0
or
aux
.
PConditionExtraFilter
(
c
,
e
,
tp
,
lscale
,
rscale
,
eset
))
and
not
c
:
IsForbidden
()
and
(
not
f
or
f
(
c
,
tc
))
and
not
c
:
IsForbidden
()
and
(
not
f
or
f
(
c
,
tc
))
end
end
function
cm
.
SetForceExtra
(
tp
,
res
)
if
forced_to_extra
then
forced_to_extra
[
tp
]
=
res
end
end
function
cm
.
PendConditionNanahira
()
function
cm
.
PendConditionNanahira
()
return
function
(
e
,
c
,
og
)
return
function
(
e
,
c
,
og
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
...
@@ -1010,7 +1015,9 @@ function cm.PendConditionNanahira()
...
@@ -1010,7 +1015,9 @@ function cm.PendConditionNanahira()
local
ft
=
Duel
.
GetUsableMZoneCount
(
tp
)
local
ft
=
Duel
.
GetUsableMZoneCount
(
tp
)
if
ft
<=
0
then
return
false
end
if
ft
<=
0
then
return
false
end
local
mft
=
Duel
.
GetMZoneCount
(
tp
)
local
mft
=
Duel
.
GetMZoneCount
(
tp
)
cm
.
SetForceExtra
(
tp
,
true
)
local
eft
=
Duel
.
GetLocationCountFromEx
(
tp
)
local
eft
=
Duel
.
GetLocationCountFromEx
(
tp
)
cm
.
SetForceExtra
(
tp
,
false
)
local
g
=
nil
local
g
=
nil
if
og
then
if
og
then
g
=
og
:
Filter
(
aux
.
PConditionFilter
,
1
,
nil
,
e
,
tp
,
lscale
,
rscale
,
eset
)
g
=
og
:
Filter
(
aux
.
PConditionFilter
,
1
,
nil
,
e
,
tp
,
lscale
,
rscale
,
eset
)
...
@@ -1056,7 +1063,9 @@ function cm.PendOperationNanahira()
...
@@ -1056,7 +1063,9 @@ function cm.PendOperationNanahira()
local
eset
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_EXTRA_PENDULUM_SUMMON
)}
local
eset
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_EXTRA_PENDULUM_SUMMON
)}
local
ft
=
Duel
.
GetUsableMZoneCount
(
tp
)
local
ft
=
Duel
.
GetUsableMZoneCount
(
tp
)
local
mft
=
Duel
.
GetMZoneCount
(
tp
)
local
mft
=
Duel
.
GetMZoneCount
(
tp
)
cm
.
SetForceExtra
(
tp
,
true
)
local
eft
=
Duel
.
GetLocationCountFromEx
(
tp
)
local
eft
=
Duel
.
GetLocationCountFromEx
(
tp
)
cm
.
SetForceExtra
(
tp
,
false
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
mft
=
math.min
(
1
,
mft
)
mft
=
math.min
(
1
,
mft
)
mft
=
math.min
(
1
,
eft
)
mft
=
math.min
(
1
,
eft
)
...
@@ -1138,6 +1147,7 @@ function cm.PendOperationNanahira()
...
@@ -1138,6 +1147,7 @@ function cm.PendOperationNanahira()
sg
:
Merge
(
g
)
sg
:
Merge
(
g
)
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
Duel
.
HintSelection
(
Group
.
FromCards
(
rpz
))
Duel
.
HintSelection
(
Group
.
FromCards
(
rpz
))
cm
.
SetForceExtra
(
tp
,
true
)
end
end
end
end
function
cm
.
NanahiraPCardFilter
(
c
)
function
cm
.
NanahiraPCardFilter
(
c
)
...
...
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