Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Nemo Ma
no81cards
Commits
1ee8d23d
Commit
1ee8d23d
authored
Mar 05, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
da057c58
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
58 additions
and
52 deletions
+58
-52
expansions/script/c11451462.lua
expansions/script/c11451462.lua
+10
-8
expansions/script/c11451463.lua
expansions/script/c11451463.lua
+8
-8
expansions/script/c11451464.lua
expansions/script/c11451464.lua
+8
-8
expansions/script/c11451465.lua
expansions/script/c11451465.lua
+8
-8
expansions/script/c11451466.lua
expansions/script/c11451466.lua
+12
-10
expansions/script/c11451467.lua
expansions/script/c11451467.lua
+12
-10
No files found.
expansions/script/c11451462.lua
View file @
1ee8d23d
...
@@ -63,11 +63,13 @@ function cm.hspcheck(g,lv,tp)
...
@@ -63,11 +63,13 @@ function cm.hspcheck(g,lv,tp)
--Duel.SetSelectedCard(g)
--Duel.SetSelectedCard(g)
return
cm
.
fselect
(
g
,
lv
,
tp
)
--g:CheckSubGroup(cm.fselect,1,#g,lv,tp)
return
cm
.
fselect
(
g
,
lv
,
tp
)
--g:CheckSubGroup(cm.fselect,1,#g,lv,tp)
end
end
function
cm
.
hspgcheck
(
g
,
c
,
mg
,
f
,
min
,
max
,
ext_params
)
function
cm
.
hspgcheck
(
lv
,
tp
)
local
lv
,
tp
=
table.unpack
(
ext_params
)
return
function
(
g
,
c
,
mg
)
if
g
:
GetSum
(
cm
.
lvplus
)
<=
lv
then
return
true
end
--local lv,tp=table.unpack(ext_params)
--Duel.SetSelectedCard(g)
if
g
:
GetSum
(
cm
.
lvplus
)
<=
lv
then
return
true
end
return
cm
.
fselect
(
g
,
lv
,
tp
)
--g:CheckSubGroup(cm.fselect,1,#g,lv,tp)
--Duel.SetSelectedCard(g)
return
cm
.
fselect
(
g
,
lv
,
tp
)
--g:CheckSubGroup(cm.fselect,1,#g,lv,tp)
end
end
end
function
cm
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
...
@@ -112,7 +114,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -112,7 +114,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
tg
=
Group
.
CreateGroup
()
local
tg
=
Group
.
CreateGroup
()
for
sc
in
aux
.
Next
(
sg
)
do
for
sc
in
aux
.
Next
(
sg
)
do
aux
.
GCheckAdditional
=
cm
.
hspgcheck
aux
.
GCheckAdditional
=
cm
.
hspgcheck
(
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
tc
then
return
true
end
if
tc
then
return
true
end
...
@@ -128,7 +130,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -128,7 +130,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
tg
=
Group
.
CreateGroup
()
local
tg
=
Group
.
CreateGroup
()
for
sc
in
aux
.
Next
(
sg
)
do
for
sc
in
aux
.
Next
(
sg
)
do
aux
.
GCheckAdditional
=
cm
.
hspgcheck
aux
.
GCheckAdditional
=
cm
.
hspgcheck
(
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
tc
then
tg
:
AddCard
(
sc
)
end
if
tc
then
tg
:
AddCard
(
sc
)
end
...
@@ -140,7 +142,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -140,7 +142,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
tc
=
tg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
tc
=
tg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
aux
.
GCheckAdditional
=
cm
.
hspgcheck
aux
.
GCheckAdditional
=
cm
.
hspgcheck
(
cm
.
lvplus
(
tc
),
tp
)
rg
=
mg
:
SelectSubGroup
(
tp
,
cm
.
hspcheck
,
true
,
1
,
#
mg
,
cm
.
lvplus
(
tc
),
tp
)
rg
=
mg
:
SelectSubGroup
(
tp
,
cm
.
hspcheck
,
true
,
1
,
#
mg
,
cm
.
lvplus
(
tc
),
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
end
end
...
...
expansions/script/c11451463.lua
View file @
1ee8d23d
...
@@ -61,11 +61,11 @@ function cm.hspcheck(g,lv,tp)
...
@@ -61,11 +61,11 @@ function cm.hspcheck(g,lv,tp)
Duel
.
SetSelectedCard
(
g
)
Duel
.
SetSelectedCard
(
g
)
return
g
:
CheckSubGroup
(
cm
.
fselect
,
1
,
#
g
,
lv
,
tp
)
return
g
:
CheckSubGroup
(
cm
.
fselect
,
1
,
#
g
,
lv
,
tp
)
end
end
function
cm
.
hspgcheck
(
g
,
c
,
mg
,
f
,
min
,
max
,
ext_params
)
function
cm
.
hspgcheck
(
lv
,
tp
)
local
lv
,
tp
=
table.unpack
(
ext_params
)
return
function
(
g
,
c
,
mg
)
if
g
:
GetSum
(
cm
.
lvplus
)
<=
lv
then
return
true
end
if
g
:
GetSum
(
cm
.
lvplus
)
<=
lv
then
return
true
end
Duel
.
SetSelectedCard
(
g
)
return
cm
.
fselect
(
g
,
lv
,
tp
)
return
g
:
CheckSubGroup
(
cm
.
fselect
,
1
,
#
g
,
lv
,
tp
)
end
end
end
function
cm
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
@@ -95,7 +95,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -95,7 +95,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
tg
=
Group
.
CreateGroup
()
local
tg
=
Group
.
CreateGroup
()
for
sc
in
aux
.
Next
(
sg
)
do
for
sc
in
aux
.
Next
(
sg
)
do
aux
.
GCheckAdditional
=
cm
.
hspgcheck
aux
.
GCheckAdditional
=
cm
.
hspgcheck
(
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
tc
then
return
true
end
if
tc
then
return
true
end
...
@@ -111,7 +111,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -111,7 +111,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
tg
=
Group
.
CreateGroup
()
local
tg
=
Group
.
CreateGroup
()
for
sc
in
aux
.
Next
(
sg
)
do
for
sc
in
aux
.
Next
(
sg
)
do
aux
.
GCheckAdditional
=
cm
.
hspgcheck
aux
.
GCheckAdditional
=
cm
.
hspgcheck
(
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
tc
then
tg
:
AddCard
(
sc
)
end
if
tc
then
tg
:
AddCard
(
sc
)
end
...
@@ -123,7 +123,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -123,7 +123,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
tc
=
tg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
tc
=
tg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
aux
.
GCheckAdditional
=
cm
.
hspgcheck
aux
.
GCheckAdditional
=
cm
.
hspgcheck
(
cm
.
lvplus
(
tc
),
tp
)
rg
=
mg
:
SelectSubGroup
(
tp
,
cm
.
hspcheck
,
true
,
1
,
#
mg
,
cm
.
lvplus
(
tc
),
tp
)
rg
=
mg
:
SelectSubGroup
(
tp
,
cm
.
hspcheck
,
true
,
1
,
#
mg
,
cm
.
lvplus
(
tc
),
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
end
end
...
...
expansions/script/c11451464.lua
View file @
1ee8d23d
...
@@ -95,11 +95,11 @@ function cm.hspcheck(g,lv,tp)
...
@@ -95,11 +95,11 @@ function cm.hspcheck(g,lv,tp)
Duel
.
SetSelectedCard
(
g
)
Duel
.
SetSelectedCard
(
g
)
return
g
:
CheckSubGroup
(
cm
.
fselect
,
1
,
#
g
,
lv
,
tp
)
return
g
:
CheckSubGroup
(
cm
.
fselect
,
1
,
#
g
,
lv
,
tp
)
end
end
function
cm
.
hspgcheck
(
g
,
c
,
mg
,
f
,
min
,
max
,
ext_params
)
function
cm
.
hspgcheck
(
lv
,
tp
)
local
lv
,
tp
=
table.unpack
(
ext_params
)
return
function
(
g
,
c
,
mg
)
if
g
:
GetSum
(
cm
.
lvplus
)
<=
lv
then
return
true
end
if
g
:
GetSum
(
cm
.
lvplus
)
<=
lv
then
return
true
end
Duel
.
SetSelectedCard
(
g
)
return
cm
.
fselect
(
g
,
lv
,
tp
)
return
g
:
CheckSubGroup
(
cm
.
fselect
,
1
,
#
g
,
lv
,
tp
)
end
end
end
function
cm
.
pccost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
pccost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -151,7 +151,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -151,7 +151,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
tg
=
Group
.
CreateGroup
()
local
tg
=
Group
.
CreateGroup
()
for
sc
in
aux
.
Next
(
sg
)
do
for
sc
in
aux
.
Next
(
sg
)
do
aux
.
GCheckAdditional
=
cm
.
hspgcheck
aux
.
GCheckAdditional
=
cm
.
hspgcheck
(
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
tc
then
return
true
end
if
tc
then
return
true
end
...
@@ -167,7 +167,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -167,7 +167,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
tg
=
Group
.
CreateGroup
()
local
tg
=
Group
.
CreateGroup
()
for
sc
in
aux
.
Next
(
sg
)
do
for
sc
in
aux
.
Next
(
sg
)
do
aux
.
GCheckAdditional
=
cm
.
hspgcheck
aux
.
GCheckAdditional
=
cm
.
hspgcheck
(
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
tc
then
tg
:
AddCard
(
sc
)
end
if
tc
then
tg
:
AddCard
(
sc
)
end
...
@@ -179,7 +179,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -179,7 +179,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
tc
=
tg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
tc
=
tg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
aux
.
GCheckAdditional
=
cm
.
hspgcheck
aux
.
GCheckAdditional
=
cm
.
hspgcheck
(
cm
.
lvplus
(
tc
),
tp
)
rg
=
mg
:
SelectSubGroup
(
tp
,
cm
.
hspcheck
,
true
,
1
,
#
mg
,
cm
.
lvplus
(
tc
),
tp
)
rg
=
mg
:
SelectSubGroup
(
tp
,
cm
.
hspcheck
,
true
,
1
,
#
mg
,
cm
.
lvplus
(
tc
),
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
end
end
...
...
expansions/script/c11451465.lua
View file @
1ee8d23d
...
@@ -79,11 +79,11 @@ function cm.hspcheck(g,lv,tp)
...
@@ -79,11 +79,11 @@ function cm.hspcheck(g,lv,tp)
Duel
.
SetSelectedCard
(
g
)
Duel
.
SetSelectedCard
(
g
)
return
g
:
CheckSubGroup
(
cm
.
fselect
,
1
,
#
g
,
lv
,
tp
)
return
g
:
CheckSubGroup
(
cm
.
fselect
,
1
,
#
g
,
lv
,
tp
)
end
end
function
cm
.
hspgcheck
(
g
,
c
,
mg
,
f
,
min
,
max
,
ext_params
)
function
cm
.
hspgcheck
(
lv
,
tp
)
local
lv
,
tp
=
table.unpack
(
ext_params
)
return
function
(
g
,
c
,
mg
)
if
g
:
GetSum
(
cm
.
lvplus
)
<=
lv
then
return
true
end
if
g
:
GetSum
(
cm
.
lvplus
)
<=
lv
then
return
true
end
Duel
.
SetSelectedCard
(
g
)
return
cm
.
fselect
(
g
,
lv
,
tp
)
return
g
:
CheckSubGroup
(
cm
.
fselect
,
1
,
#
g
,
lv
,
tp
)
end
end
end
function
cm
.
chcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
chcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -129,7 +129,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -129,7 +129,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
tg
=
Group
.
CreateGroup
()
local
tg
=
Group
.
CreateGroup
()
for
sc
in
aux
.
Next
(
sg
)
do
for
sc
in
aux
.
Next
(
sg
)
do
aux
.
GCheckAdditional
=
cm
.
hspgcheck
aux
.
GCheckAdditional
=
cm
.
hspgcheck
(
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
tc
then
return
true
end
if
tc
then
return
true
end
...
@@ -145,7 +145,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -145,7 +145,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
tg
=
Group
.
CreateGroup
()
local
tg
=
Group
.
CreateGroup
()
for
sc
in
aux
.
Next
(
sg
)
do
for
sc
in
aux
.
Next
(
sg
)
do
aux
.
GCheckAdditional
=
cm
.
hspgcheck
aux
.
GCheckAdditional
=
cm
.
hspgcheck
(
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
local
tc
=
mg
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
#
mg
,
cm
.
lvplus
(
sc
),
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
tc
then
tg
:
AddCard
(
sc
)
end
if
tc
then
tg
:
AddCard
(
sc
)
end
...
@@ -157,7 +157,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -157,7 +157,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
tc
=
tg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
tc
=
tg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
aux
.
GCheckAdditional
=
cm
.
hspgcheck
aux
.
GCheckAdditional
=
cm
.
hspgcheck
(
cm
.
lvplus
(
tc
),
tp
)
rg
=
mg
:
SelectSubGroup
(
tp
,
cm
.
hspcheck
,
true
,
1
,
#
mg
,
cm
.
lvplus
(
tc
),
tp
)
rg
=
mg
:
SelectSubGroup
(
tp
,
cm
.
hspcheck
,
true
,
1
,
#
mg
,
cm
.
lvplus
(
tc
),
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
end
end
...
...
expansions/script/c11451466.lua
View file @
1ee8d23d
...
@@ -83,7 +83,7 @@ function cm.fselect(g,ng,goal,tp)
...
@@ -83,7 +83,7 @@ function cm.fselect(g,ng,goal,tp)
elseif
g
:
GetSum
(
cm
.
lvplus
)
==
goal
and
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
then
elseif
g
:
GetSum
(
cm
.
lvplus
)
==
goal
and
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
then
return
true
return
true
end
end
aux
.
GCheckAdditional
=
cm
.
hspgcheck2
aux
.
GCheckAdditional
=
cm
.
hspgcheck2
(
g
,
g
:
GetSum
(
cm
.
lvplus
)
-
goal
,
tp
)
local
tc
=
ng
:
CheckSubGroup
(
cm
.
fselect3
,
1
,
#
ng
,
g
,
g
:
GetSum
(
cm
.
lvplus
)
-
goal
,
tp
)
local
tc
=
ng
:
CheckSubGroup
(
cm
.
fselect3
,
1
,
#
ng
,
g
,
g
:
GetSum
(
cm
.
lvplus
)
-
goal
,
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
return
tc
return
tc
...
@@ -91,15 +91,17 @@ end
...
@@ -91,15 +91,17 @@ end
function
cm
.
fselect3
(
g
,
g1
,
lv
,
tp
)
function
cm
.
fselect3
(
g
,
g1
,
lv
,
tp
)
return
g
:
GetSum
(
cm
.
lvplus
)
==
lv
and
Duel
.
GetMZoneCount
(
tp
,
g
+
g1
)
>
0
return
g
:
GetSum
(
cm
.
lvplus
)
==
lv
and
Duel
.
GetMZoneCount
(
tp
,
g
+
g1
)
>
0
end
end
function
cm
.
hspgcheck
(
g
,
c
,
mg
,
f
,
min
,
max
,
ext_params
)
function
cm
.
hspgcheck
(
ng
,
goal
,
tp
)
local
ng
,
goal
,
tp
=
table.unpack
(
ext_params
)
return
function
(
g
,
c
,
mg
)
if
g
:
GetSum
(
cm
.
lvplus
)
<=
goal
then
return
true
end
if
g
:
GetSum
(
cm
.
lvplus
)
<=
goal
then
return
true
end
return
cm
.
fselect
(
g
,
ng
,
goal
,
tp
)
return
cm
.
fselect
(
g
,
ng
,
goal
,
tp
)
end
end
end
function
cm
.
hspgcheck2
(
g
,
c
,
mg
,
f
,
min
,
max
,
ext_params
)
function
cm
.
hspgcheck2
(
ng
,
goal
,
tp
)
local
g1
,
lv
,
tp
=
table.unpack
(
ext_params
)
return
function
(
g
,
c
,
mg
)
if
g
:
GetSum
(
cm
.
lvplus
)
<=
lv
then
return
true
end
if
g
:
GetSum
(
cm
.
lvplus
)
<=
goal
then
return
true
end
return
cm
.
fselect3
(
g
,
g1
,
lv
,
tp
)
return
cm
.
fselect3
(
g
,
ng
,
goal
,
tp
)
end
end
end
function
cm
.
accost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
accost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -167,7 +169,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -167,7 +169,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
rg
=
trg
:
SelectSubGroup
(
tp
,
cm
.
fselect
,
true
,
1
,
#
trg
,
ng
,
cm
.
lvplus
(
tc
),
tp
)
rg
=
trg
:
SelectSubGroup
(
tp
,
cm
.
fselect
,
true
,
1
,
#
trg
,
ng
,
cm
.
lvplus
(
tc
),
tp
)
if
rg
and
#
rg
>
0
and
rg
:
GetSum
(
cm
.
lvplus
)
>
cm
.
lvplus
(
tc
)
then
if
rg
and
#
rg
>
0
and
rg
:
GetSum
(
cm
.
lvplus
)
>
cm
.
lvplus
(
tc
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
7
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
7
))
aux
.
GCheckAdditional
=
cm
.
hspgcheck2
aux
.
GCheckAdditional
=
cm
.
hspgcheck2
(
rg
,
rg
:
GetSum
(
cm
.
lvplus
)
-
cm
.
lvplus
(
tc
),
tp
)
rg2
=
ng
:
SelectSubGroup
(
tp
,
cm
.
fselect3
,
true
,
1
,
#
ng
,
rg
,
rg
:
GetSum
(
cm
.
lvplus
)
-
cm
.
lvplus
(
tc
),
tp
)
rg2
=
ng
:
SelectSubGroup
(
tp
,
cm
.
fselect3
,
true
,
1
,
#
ng
,
rg
,
rg
:
GetSum
(
cm
.
lvplus
)
-
cm
.
lvplus
(
tc
),
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
rg2
and
#
rg2
>
0
then
if
rg2
and
#
rg2
>
0
then
...
...
expansions/script/c11451467.lua
View file @
1ee8d23d
...
@@ -86,7 +86,7 @@ function cm.fselect(g,ng,goal,tp)
...
@@ -86,7 +86,7 @@ function cm.fselect(g,ng,goal,tp)
elseif
g
:
GetSum
(
cm
.
lvplus
)
==
goal
and
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
then
elseif
g
:
GetSum
(
cm
.
lvplus
)
==
goal
and
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
then
return
true
return
true
end
end
aux
.
GCheckAdditional
=
cm
.
hspgcheck2
aux
.
GCheckAdditional
=
cm
.
hspgcheck2
(
g
,
g
:
GetSum
(
cm
.
lvplus
)
-
goal
,
tp
)
local
tc
=
ng
:
CheckSubGroup
(
cm
.
fselect3
,
1
,
#
ng
,
g
,
g
:
GetSum
(
cm
.
lvplus
)
-
goal
,
tp
)
local
tc
=
ng
:
CheckSubGroup
(
cm
.
fselect3
,
1
,
#
ng
,
g
,
g
:
GetSum
(
cm
.
lvplus
)
-
goal
,
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
return
tc
return
tc
...
@@ -94,15 +94,17 @@ end
...
@@ -94,15 +94,17 @@ end
function
cm
.
fselect3
(
g
,
g1
,
lv
,
tp
)
function
cm
.
fselect3
(
g
,
g1
,
lv
,
tp
)
return
g
:
GetSum
(
cm
.
lvplus
)
==
lv
and
Duel
.
GetMZoneCount
(
tp
,
g
+
g1
)
>
0
return
g
:
GetSum
(
cm
.
lvplus
)
==
lv
and
Duel
.
GetMZoneCount
(
tp
,
g
+
g1
)
>
0
end
end
function
cm
.
hspgcheck
(
g
,
c
,
mg
,
f
,
min
,
max
,
ext_params
)
function
cm
.
hspgcheck
(
ng
,
goal
,
tp
)
local
ng
,
goal
,
tp
=
table.unpack
(
ext_params
)
return
function
(
g
,
c
,
mg
)
if
g
:
GetSum
(
cm
.
lvplus
)
<=
goal
then
return
true
end
if
g
:
GetSum
(
cm
.
lvplus
)
<=
goal
then
return
true
end
return
cm
.
fselect
(
g
,
ng
,
goal
,
tp
)
return
cm
.
fselect
(
g
,
ng
,
goal
,
tp
)
end
end
end
function
cm
.
hspgcheck2
(
g
,
c
,
mg
,
f
,
min
,
max
,
ext_params
)
function
cm
.
hspgcheck2
(
ng
,
goal
,
tp
)
local
g1
,
lv
,
tp
=
table.unpack
(
ext_params
)
return
function
(
g
,
c
,
mg
)
if
g
:
GetSum
(
cm
.
lvplus
)
<=
lv
then
return
true
end
if
g
:
GetSum
(
cm
.
lvplus
)
<=
goal
then
return
true
end
return
cm
.
fselect3
(
g
,
g1
,
lv
,
tp
)
return
cm
.
fselect3
(
g
,
ng
,
goal
,
tp
)
end
end
end
function
cm
.
chcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
chcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -207,7 +209,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -207,7 +209,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
rg
=
trg
:
SelectSubGroup
(
tp
,
cm
.
fselect
,
true
,
1
,
#
trg
,
ng
,
cm
.
lvplus
(
tc
),
tp
)
rg
=
trg
:
SelectSubGroup
(
tp
,
cm
.
fselect
,
true
,
1
,
#
trg
,
ng
,
cm
.
lvplus
(
tc
),
tp
)
if
rg
and
#
rg
>
0
and
rg
:
GetSum
(
cm
.
lvplus
)
>
cm
.
lvplus
(
tc
)
then
if
rg
and
#
rg
>
0
and
rg
:
GetSum
(
cm
.
lvplus
)
>
cm
.
lvplus
(
tc
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
7
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
7
))
aux
.
GCheckAdditional
=
cm
.
hspgcheck2
aux
.
GCheckAdditional
=
cm
.
hspgcheck2
(
rg
,
rg
:
GetSum
(
cm
.
lvplus
)
-
cm
.
lvplus
(
tc
),
tp
)
rg2
=
ng
:
SelectSubGroup
(
tp
,
cm
.
fselect3
,
true
,
1
,
#
ng
,
rg
,
rg
:
GetSum
(
cm
.
lvplus
)
-
cm
.
lvplus
(
tc
),
tp
)
rg2
=
ng
:
SelectSubGroup
(
tp
,
cm
.
fselect3
,
true
,
1
,
#
ng
,
rg
,
rg
:
GetSum
(
cm
.
lvplus
)
-
cm
.
lvplus
(
tc
),
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
rg2
and
#
rg2
>
0
then
if
rg2
and
#
rg2
>
0
then
...
...
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