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
37ea9950
Commit
37ea9950
authored
Dec 12, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3b60e64a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
11 deletions
+15
-11
expansions/script/c11451464.lua
expansions/script/c11451464.lua
+2
-1
expansions/script/c11451867.lua
expansions/script/c11451867.lua
+1
-0
expansions/script/c11451961.lua
expansions/script/c11451961.lua
+3
-1
expansions/script/c65123333.lua
expansions/script/c65123333.lua
+9
-9
No files found.
expansions/script/c11451464.lua
View file @
37ea9950
...
...
@@ -222,7 +222,7 @@ function cm.SelectSubGroup(g,tp,f,cancelable,min,max,...)
end
end
end
if
check
then
return
false
end
if
check
then
return
false
end
--classification is essential for efficiency, and this part is only for backup
else
iter
=
{
1
}
...
...
@@ -304,6 +304,7 @@ function cm.pcop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
Duel
.
GetFieldGroupCount
(
1
-
tp
,
LOCATION_HAND
,
0
)
==
0
then
return
end
local
g
=
Duel
.
GetFieldGroup
(
1
-
tp
,
LOCATION_HAND
,
0
):
RandomSelect
(
tp
,
1
)
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
HintSelection
(
g
)
local
tc
=
g
:
GetFirst
()
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c11451867.lua
View file @
37ea9950
...
...
@@ -80,6 +80,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
sc
:
RegisterEffect
(
e1
,
true
)
c
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
ConfirmCards
(
tp
,
sc
)
Duel
.
HintSelection
(
Group
.
FromCards
(
sc
))
--hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
expansions/script/c11451961.lua
View file @
37ea9950
...
...
@@ -132,7 +132,7 @@ function cm.recon(e,tp,eg,ep,ev,re,r,rp)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
function
cm
.
filter
(
c
,
tp
,
seq
)
return
aux
.
GetColumn
(
c
,
tp
)
+
1
==
seq
return
aux
.
GetColumn
(
c
,
tp
)
and
aux
.
GetColumn
(
c
,
tp
)
==
seq
-
1
end
function
cm
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
eset
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_FLAG_EFFECT
+
11451961
)}
...
...
@@ -153,8 +153,10 @@ function cm.reop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
function
(
c
)
return
c
:
GetSequence
()
<
5
end
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
if
chk
==
0
then
return
true
end
if
c
:
IsLocation
(
LOCATION_GRAVE
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
c
,
1
,
0
,
0
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
cm
.
cclfilter
(
c
,
tc
)
local
seq1
=
aux
.
GetColumn
(
c
)
...
...
expansions/script/c65123333.lua
View file @
37ea9950
...
...
@@ -2156,7 +2156,7 @@ function s.randomop(tp)
if
s
.
Random_Mode
then
Debug
.
Message
(
"灌铅骰子 开"
)
function
Group
.
RandomSelect
(
g
,
p
,
count
)
return
s
.
Select
(
g
,
tp
,
count
,
count
,
nil
)
return
_Group
.
Select
(
g
,
tp
,
count
,
count
,
nil
)
end
function
Duel
.
TossCoin
(
p
,
count
)
local
ct
=
{}
...
...
@@ -2164,23 +2164,23 @@ function s.randomop(tp)
local
i
=
1
local
coin
=
1
while
i
<=
20
and
coin
==
1
do
coin
=
1
-
s
.
AnnounceCoin
(
tp
)
coin
=
1
-
_Duel
.
AnnounceCoin
(
tp
)
table.insert
(
ct
,
coin
)
i
=
i
+
1
end
s
.
TossCoin
(
p
,
i
)
_Duel
.
TossCoin
(
p
,
i
)
Duel
.
SetCoinResult
(
table.unpack
(
ct
))
else
for
i
=
1
,
count
do
table.insert
(
ct
,
1
-
s
.
AnnounceCoin
(
tp
))
table.insert
(
ct
,
1
-
_Duel
.
AnnounceCoin
(
tp
))
end
s
.
TossCoin
(
p
,
count
)
_Duel
.
TossCoin
(
p
,
count
)
Duel
.
SetCoinResult
(
table.unpack
(
ct
))
end
return
table.unpack
(
ct
)
end
function
Duel
.
TossDice
(
p
,
count
)
local
ac
=
Duel
.
AnnounceNumber
(
tp
,
1
,
2
,
3
,
4
,
5
,
6
)
local
ac
=
_
Duel
.
AnnounceNumber
(
tp
,
1
,
2
,
3
,
4
,
5
,
6
)
return
ac
end
else
...
...
@@ -2194,7 +2194,7 @@ function s.toolop(tp)
local
op
=
_Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
id
+
1
,
11
),
aux
.
Stringid
(
id
+
1
,
12
),
aux
.
Stringid
(
id
+
1
,
13
),
aux
.
Stringid
(
id
+
1
,
14
),
aux
.
Stringid
(
id
+
1
,
15
))
if
op
==
0
then
local
p
=
_Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
id
+
1
,
1
),
aux
.
Stringid
(
id
+
1
,
2
))
==
0
and
tp
or
1
-
tp
local
lp
=
s
.
AnnounceNumber
(
tp
,
80000
,
16000
,
8000
,
4000
,
2000
,
1000
,
500
,
100
,
1
)
local
lp
=
_Duel
.
AnnounceNumber
(
tp
,
80000
,
16000
,
8000
,
4000
,
2000
,
1000
,
500
,
100
,
1
)
Duel
.
SetLP
(
p
,
lp
)
elseif
op
==
1
then
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
...
...
@@ -2213,7 +2213,7 @@ function s.toolop(tp)
Debug
.
Message
(
"场上没有可以放置专属指示物的卡片!"
)
return
else
local
ac
=
s
.
Select
(
sg
,
tp
,
1
,
1
,
nil
):
GetFirst
()
local
ac
=
_Group
.
Select
(
sg
,
tp
,
1
,
1
,
nil
):
GetFirst
()
for
counter
=
0x1
,
0x999
do
local
loc
=
ac
:
GetLocation
()
if
ac
:
IsLocation
(
LOCATION_PZONE
)
then
loc
=
LOCATION_PZONE
end
...
...
@@ -2230,7 +2230,7 @@ function s.toolop(tp)
for
i
=
1
,
max
do
t
[
i
]
=
max
-
i
+
1
end
ac
:
AddCounter
(
counter
,
s
.
AnnounceNumber
(
tp
,
table.unpack
(
t
)))
ac
:
AddCounter
(
counter
,
_Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
t
)))
else
ac
:
AddCounter
(
counter
,
1
)
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