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
fc2ee127
Commit
fc2ee127
authored
Mar 25, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a71f7946
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
33 additions
and
23 deletions
+33
-23
expansions/no81.cdb
expansions/no81.cdb
+0
-0
expansions/script/c11410000.lua
expansions/script/c11410000.lua
+9
-7
expansions/script/c11451867.lua
expansions/script/c11451867.lua
+1
-1
expansions/script/c28381214.lua
expansions/script/c28381214.lua
+1
-1
expansions/script/c28381466.lua
expansions/script/c28381466.lua
+4
-1
expansions/script/c53731006.lua
expansions/script/c53731006.lua
+10
-12
expansions/script/c7438104.lua
expansions/script/c7438104.lua
+1
-1
expansions/script/special.lua
expansions/script/special.lua
+7
-0
No files found.
expansions/no81.cdb
View file @
fc2ee127
No preview for this file type
expansions/script/c11410000.lua
View file @
fc2ee127
...
@@ -36,12 +36,6 @@ function Card.IsCanBeSynchroMaterial(c,...)
...
@@ -36,12 +36,6 @@ function Card.IsCanBeSynchroMaterial(c,...)
end
end
return
_IsCanBeSynchroMaterial
(
c
,
...
)
return
_IsCanBeSynchroMaterial
(
c
,
...
)
end
end
function
cm
.
nfilter
(
c
,
g
)
return
g
:
FilterCount
(
cm
.
sfilter
,
nil
,
c
)
<
3
end
function
cm
.
sfilter
(
c
,
sc
)
return
c
:
GetOriginalCode
()
==
sc
:
GetOriginalCode
()
end
local
KOISHI_CHECK
=
false
local
KOISHI_CHECK
=
false
if
Duel
.
Exile
then
KOISHI_CHECK
=
true
end
if
Duel
.
Exile
then
KOISHI_CHECK
=
true
end
local
A
=
1103515245
local
A
=
1103515245
...
@@ -62,6 +56,14 @@ function cm.roll(min,max)
...
@@ -62,6 +56,14 @@ function cm.roll(min,max)
return
cm
.
r
return
cm
.
r
end
end
--if Duel.GetRandomNumber then cm.roll=Duel.GetRandomNumber end
--if Duel.GetRandomNumber then cm.roll=Duel.GetRandomNumber end
if
not
Effect
.
GetRange
then
function
Effect
.
GetRange
(
e
)
if
table_range
and
table_range
[
e
]
then
return
table_range
[
e
]
end
return
0
end
end
if
not
require
and
loadfile
then
if
not
require
and
loadfile
then
function
require
(
str
)
function
require
(
str
)
require_list
=
require_list
or
{}
require_list
=
require_list
or
{}
...
@@ -174,6 +176,6 @@ end
...
@@ -174,6 +176,6 @@ end
if
not
apricot_nightfall
then
if
not
apricot_nightfall
then
apricot_nightfall
=
true
apricot_nightfall
=
true
pcall
(
dofile
,
"expansions/script/special.lua"
)
pcall
(
dofile
,
"expansions/script/special.lua"
)
if
Auxiliary
.
PreloadUds
then
Auxiliary
.
PreloadUds
()
end
if
Auxiliary
.
PreloadUds
and
not
PreloadUds_Done
then
Auxiliary
.
PreloadUds
()
end
--Debug.Message("Protocol Request Complete. 杏花宵®漏洞解决方案已上线。")
--Debug.Message("Protocol Request Complete. 杏花宵®漏洞解决方案已上线。")
end
end
\ No newline at end of file
expansions/script/c11451867.lua
View file @
fc2ee127
...
@@ -100,7 +100,7 @@ function cm.operation2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -100,7 +100,7 @@ function cm.operation2(e,tp,eg,ep,ev,re,r,rp)
e
:
Reset
()
e
:
Reset
()
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
local
dr
=
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
dr
=
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
sp
=
c
:
GetFlagEffect
(
m
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
local
sp
=
c
:
GetFlagEffect
(
m
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
not
dr
and
not
sp
then
return
end
if
not
dr
and
not
sp
then
return
end
local
op
=
aux
.
SelectFromOptions
(
tp
,{
dr
,
aux
.
Stringid
(
m
,
5
)},{
sp
,
aux
.
Stringid
(
m
,
6
)})
local
op
=
aux
.
SelectFromOptions
(
tp
,{
dr
,
aux
.
Stringid
(
m
,
5
)},{
sp
,
aux
.
Stringid
(
m
,
6
)})
if
op
==
1
then
if
op
==
1
then
...
...
expansions/script/c28381214.lua
View file @
fc2ee127
...
@@ -110,7 +110,7 @@ function c28381214.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -110,7 +110,7 @@ function c28381214.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Damage
(
1
-
tp
,
500
,
REASON_EFFECT
,
true
)
Duel
.
Damage
(
1
-
tp
,
500
,
REASON_EFFECT
,
true
)
Duel
.
RDComplete
()
Duel
.
RDComplete
()
elseif
sel
==
2
then
elseif
sel
==
2
then
if
not
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c28381214
.
hkfilter
,
tp
,
LOCATION_HAND
,
0
,
2
,
2
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c28381214
.
hkfilter
,
tp
,
LOCATION_HAND
,
0
,
2
,
2
,
nil
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
expansions/script/c28381466.lua
View file @
fc2ee127
...
@@ -119,7 +119,7 @@ function c28381466.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -119,7 +119,7 @@ function c28381466.regop(e,tp,eg,ep,ev,re,r,rp)
ge2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
ge2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
ge2
:
SetRange
(
LOCATION_MZONE
)
ge2
:
SetRange
(
LOCATION_MZONE
)
ge2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
ge2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
ge2
:
SetTarget
(
function
(
e
,
c
,
tp
,
r
)
return
c
:
GetControl
()
==
tp
and
r
==
REASON_EFFECT
and
c
:
IsSetCard
(
0x283
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
end
)
ge2
:
SetTarget
(
c28381466
.
indtg
)
ge2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
ge2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
ge2
)
c
:
RegisterEffect
(
ge2
)
end
end
...
@@ -205,6 +205,9 @@ function c28381466.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -205,6 +205,9 @@ function c28381466.regop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
28381466
,
5
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
28381466
,
5
))
end
end
end
end
function
c28381466
.
indtg
(
e
,
c
,
r
,
tp
)
return
c
:
IsSetCard
(
0x283
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
r
==
REASON_EFFECT
and
c
:
GetControl
()
==
tp
end
function
c28381466
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c28381466
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
return
rp
==
1
-
tp
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
and
((
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
GetFlagEffect
(
tp
,
28381466
)
==
0
)
and
((
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
GetFlagEffect
(
tp
,
28381466
)
==
0
)
...
...
expansions/script/c53731006.lua
View file @
fc2ee127
...
@@ -41,25 +41,23 @@ end
...
@@ -41,25 +41,23 @@ end
function
cm
.
lvplus
(
c
)
function
cm
.
lvplus
(
c
)
if
c
:
IsType
(
TYPE_NORMAL
)
then
return
c
:
GetLevel
()
-
3
else
return
c
:
GetLevel
()
end
if
c
:
IsType
(
TYPE_NORMAL
)
then
return
c
:
GetLevel
()
-
3
else
return
c
:
GetLevel
()
end
end
end
function
cm
.
fselect
(
g
,
lv
,
tp
)
function
cm
.
fselect
(
g
,
lv
)
return
g
:
GetSum
(
Card
.
GetLevel
)
<=
lv
and
aux
.
dncheck
(
g
)
return
g
:
GetSum
(
Card
.
GetLevel
)
<=
lv
end
end
function
cm
.
hspcheck
(
g
,
lv
,
tp
)
function
cm
.
hspcheck
(
g
,
lv
,
tp
)
Duel
.
SetSelectedCard
(
g
)
return
g
:
GetSum
(
Card
.
GetLevel
)
<=
lv
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
)
local
lv
,
tp
=
table.unpack
(
ext_params
)
return
function
(
g
)
if
g
:
GetSum
(
cm
.
lvplus
)
<=
lv
then
return
true
end
return
g
:
GetSum
(
cm
.
lvplus
)
<=
lv
and
aux
.
dncheck
(
g
)
Duel
.
SetSelectedCard
(
g
)
end
return
g
:
CheckSubGroup
(
cm
.
fselect
,
1
,
#
g
,
lv
,
tp
)
end
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
op
,
ct
,
tc
=
0
,
0
,
e
:
GetLabelObject
()
local
op
,
ct
,
tc
=
0
,
0
,
e
:
GetLabelObject
()
local
res
=
false
local
res
=
false
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
aux
.
GCheckAdditional
=
cm
.
hspgcheck
aux
.
GCheckAdditional
=
cm
.
hspgcheck
(
cm
.
lvplus
(
tc
))
local
hastur
=
g
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
3
,
cm
.
lvplus
(
tc
),
tp
)
local
hastur
=
g
:
CheckSubGroup
(
cm
.
hspcheck
,
1
,
3
,
cm
.
lvplus
(
tc
),
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
hastur
then
res
=
true
end
if
hastur
then
res
=
true
end
...
@@ -79,8 +77,8 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -79,8 +77,8 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
aux
.
GCheckAdditional
=
cm
.
hspgcheck
aux
.
GCheckAdditional
=
cm
.
hspgcheck
(
tc
:
GetLevel
())
local
sg
=
g
:
SelectSubGroup
(
tp
,
cm
.
hspcheck
,
false
,
1
,
3
,
tc
:
GetLevel
()
,
tp
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
cm
.
hspcheck
,
false
,
1
,
3
,
tc
:
GetLevel
())
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
#
sg
>
0
and
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
~=
0
then
if
#
sg
>
0
and
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
~=
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
...
...
expansions/script/c7438104.lua
View file @
fc2ee127
...
@@ -163,7 +163,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -163,7 +163,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e8
,
tp
)
Duel
.
RegisterEffect
(
e8
,
tp
)
end
end
function
cm
.
lockcon
(
e
)
function
cm
.
lockcon
(
e
)
return
Duel
.
GetCurrentPhase
()
~
=
PHASE_MAIN1
return
Duel
.
GetCurrentPhase
()
=
=
PHASE_MAIN1
end
end
function
cm
.
fuslimit
(
e
,
c
,
sumtype
)
function
cm
.
fuslimit
(
e
,
c
,
sumtype
)
return
sumtype
==
SUMMON_TYPE_FUSION
return
sumtype
==
SUMMON_TYPE_FUSION
...
...
expansions/script/special.lua
View file @
fc2ee127
function
Auxiliary
.
PreloadUds
()
function
Auxiliary
.
PreloadUds
()
PreloadUds_Done
=
true
function
require
(
str
)
function
require
(
str
)
require_list
=
require_list
or
{}
require_list
=
require_list
or
{}
if
not
require_list
[
str
]
then
if
not
require_list
[
str
]
then
...
@@ -57,6 +58,12 @@ function Auxiliary.PreloadUds()
...
@@ -57,6 +58,12 @@ function Auxiliary.PreloadUds()
if
not
Auxiliary
.
GetMustMaterialGroup
then
if
not
Auxiliary
.
GetMustMaterialGroup
then
Auxiliary
.
GetMustMaterialGroup
=
Duel
.
GetMustMaterial
Auxiliary
.
GetMustMaterialGroup
=
Duel
.
GetMustMaterial
end
end
local
_SetRange
=
Effect
.
SetRange
function
Effect
.
SetRange
(
e
,
r
,
...
)
table_range
=
table_range
or
{}
table_range
[
e
]
=
r
return
_SetRange
(
e
,
r
,
...
)
end
EFFECT_FLAG_CANNOT_NEGATE
=
EFFECT_FLAG_CANNOT_NEGATE
or
0x200
EFFECT_FLAG_CANNOT_NEGATE
=
EFFECT_FLAG_CANNOT_NEGATE
or
0x200
--require("script/procedure.lua")
--require("script/procedure.lua")
end
end
\ No newline at end of file
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