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
3cc4a48c
Commit
3cc4a48c
authored
Sep 22, 2023
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a9e56d3d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
49 additions
and
20 deletions
+49
-20
expansions/script/c11451001.lua
expansions/script/c11451001.lua
+4
-2
expansions/script/c22022230.lua
expansions/script/c22022230.lua
+0
-1
expansions/script/c60002364.lua
expansions/script/c60002364.lua
+15
-2
expansions/script/c65130363.lua
expansions/script/c65130363.lua
+13
-3
expansions/script/c65130366.lua
expansions/script/c65130366.lua
+9
-7
expansions/script/c65130370.lua
expansions/script/c65130370.lua
+7
-4
expansions/script/c88882036.lua
expansions/script/c88882036.lua
+1
-1
No files found.
expansions/script/c11451001.lua
View file @
3cc4a48c
...
@@ -158,8 +158,10 @@ function cm.initial_effect(c)
...
@@ -158,8 +158,10 @@ function cm.initial_effect(c)
end
end
local
KOISHI_CHECK
=
false
local
KOISHI_CHECK
=
false
if
Card
.
SetCardData
then
KOISHI_CHECK
=
true
end
if
Card
.
SetCardData
then
KOISHI_CHECK
=
true
end
if
Duel
.
GetRandomNumber
then
Debug
.
Message
(
"You can use Duel.GetRandomNumber ."
..
pcall
(
Duel
.
GetRandomNumber
,
1
,
20
)
or
"uncorrect form"
)
if
Duel
.
GetRandomNumber
then
Debug
.
Message
(
"You can use Duel.GetRandomNumber."
..
Duel
.
GetRandomNumber
(
1
,
20
))
else
Debug
.
Message
(
"You cannot use Duel.GetRandomNumber ."
)
end
else
Debug
.
Message
(
"You cannot use Duel.GetRandomNumber."
)
end
if
debug
and
debug.getregistry
then
Debug
.
Message
(
"You can use debug.getregistry."
)
else
Debug
.
Message
(
"You cannot use debug.getregistry."
)
end
function
cm
.
filter
(
g
,
f
,
nc
,
...
)
function
cm
.
filter
(
g
,
f
,
nc
,
...
)
if
aux
.
GetValueType
(
f
)
==
"function"
then
return
g
:
Filter
(
f
,
nc
,
...
)
end
if
aux
.
GetValueType
(
f
)
==
"function"
then
return
g
:
Filter
(
f
,
nc
,
...
)
end
local
ng
=
g
:
Clone
()
local
ng
=
g
:
Clone
()
...
...
expansions/script/c22022230.lua
View file @
3cc4a48c
...
@@ -31,7 +31,6 @@ function c22022230.initial_effect(c)
...
@@ -31,7 +31,6 @@ function c22022230.initial_effect(c)
e4
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e4
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e4
:
SetTarget
(
c22022230
.
reptg
)
e4
:
SetTarget
(
c22022230
.
reptg
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
Duel
.
AddCustomActivityCounter
(
22022230
,
ACTIVITY_CHAIN
,
c22022230
.
chainfilter
)
end
end
function
c22022230
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c22022230
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0xff1
)
return
not
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0xff1
)
...
...
expansions/script/c60002364.lua
View file @
3cc4a48c
...
@@ -40,9 +40,22 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,9 +40,22 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp)
ec
:
CancelToGrave
()
ec
:
CancelToGrave
()
if
Duel
.
SendtoDeck
(
ec
,
nil
,
2
,
REASON_EFFECT
)
then
if
Duel
.
SendtoDeck
(
ec
,
nil
,
2
,
REASON_EFFECT
)
then
local
rc
=
re
:
GetCode
()
local
rc
=
re
:
GetCode
()
if
Duel
.
IsExistingMatchingCard
(
cm
.
afil
,
tp
,
0
,
LOCATION_DECK
,
1
,
nil
,
rc
)
then
local
g4
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
0
,
LOCATION_DECK
,
nil
,
rc
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
afil
,
tp
,
0
,
LOCATION_DECK
,
nil
,
rc
):
RandomSelect
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
Duel
.
IsExistingMatchingCard
(
cm
.
afil
,
tp
,
0
,
LOCATION_DECK
,
1
,
g4
)
then
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
afil
,
tp
,
0
,
LOCATION_DECK
,
g4
):
RandomSelect
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
g
:
IsType
(
TYPE_FIELD
)
then
local
te
=
g
:
GetActivateEffect
()
Duel
.
MoveToField
(
g
,
1
-
tp
,
1
-
tp
,
LOCATION_FZONE
,
POS_FACEUP
,
true
)
Duel
.
RaiseEvent
(
g
,
4179255
,
te
,
0
,
tp
,
tp
,
Duel
.
GetCurrentChain
())
else
local
te
=
g
:
GetActivateEffect
()
Duel
.
MoveToField
(
g
,
1
-
tp
,
1
-
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
te
:
UseCountLimit
(
1
-
tp
,
1
,
true
)
cm
.
ActivateCard
(
g
,
1
-
tp
,
e
)
cm
.
ActivateCard
(
g
,
1
-
tp
,
e
)
if
not
(
g
:
IsType
(
TYPE_CONTINUOUS
)
or
g
:
IsType
(
TYPE_FIELD
)
or
g
:
IsType
(
TYPE_EQUIP
))
then
Duel
.
SendtoGrave
(
g
,
REASON_RULE
)
end
else
else
Duel
.
Draw
(
1
-
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
1
-
tp
,
1
,
REASON_EFFECT
)
end
end
...
...
expansions/script/c65130363.lua
View file @
3cc4a48c
...
@@ -93,10 +93,16 @@ function s.aeop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -93,10 +93,16 @@ function s.aeop(e,tp,eg,ep,ev,re,r,rp)
cm
.
initial_effect
=
addinit
cm
.
initial_effect
=
addinit
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsOriginalCodeRule
,
tp
,
0xff
,
0xff
,
nil
,
ac
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsOriginalCodeRule
,
tp
,
0xff
,
0xff
,
nil
,
ac
)
local
reg
=
Card
.
RegisterEffect
local
reg
=
Card
.
RegisterEffect
local
Isscd
=
{
false
,
false
}
for
tc
in
aux
.
Next
(
g
)
do
for
tc
in
aux
.
Next
(
g
)
do
local
Type
=
Duel
.
ReadCard
(
tc
,
CARDDATA_TYPE
)
local
Type
=
Duel
.
ReadCard
(
tc
,
CARDDATA_TYPE
)
if
Type
&
TYPE_NORMAL
~=
0
then
Type
=
Type
-
TYPE_NORMAL
end
local
Type2
=
Type
|
TYPE_EFFECT
if
Type2
&
TYPE_NORMAL
~=
0
then
Type2
=
Type2
-
TYPE_NORMAL
end
if
Type2
~=
Type
then
tc
:
SetCardData
(
CARDDATA_TYPE
,
Type
|
TYPE_EFFECT
)
tc
:
SetCardData
(
CARDDATA_TYPE
,
Type
|
TYPE_EFFECT
)
--There are some issues with the SetCardData function
if
tc
:
IsLocation
(
LOCATION_EXTRA
)
then
Isscd
[
tc
:
GetControler
()]
=
true
end
end
local
mt
=
getmetatable
(
tc
)
local
mt
=
getmetatable
(
tc
)
local
ini
=
s
.
initial_effect
local
ini
=
s
.
initial_effect
s
.
initial_effect
=
function
()
end
s
.
initial_effect
=
function
()
end
...
@@ -105,6 +111,10 @@ function s.aeop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -105,6 +111,10 @@ function s.aeop(e,tp,eg,ep,ev,re,r,rp)
mt
.
initial_effect
=
addinit
mt
.
initial_effect
=
addinit
tc
.
initial_effect
(
tc
)
tc
.
initial_effect
(
tc
)
end
end
--If you don't confirm them, there may be bugs
for
i
=
0
,
1
do
if
Isscd
[
i
]
==
true
then
Duel
.
ConfirmCards
(
i
,
Duel
.
GetFieldGroup
(
i
,
LOCATION_EXTRA
,
0
))
end
end
else
else
Debug
.
Message
(
"需要koishi函数!"
)
Debug
.
Message
(
"需要koishi函数!"
)
end
end
...
...
expansions/script/c65130366.lua
View file @
3cc4a48c
...
@@ -84,15 +84,17 @@ end
...
@@ -84,15 +84,17 @@ end
function
s
.
addop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
addop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ct
=
math.max
(
1
,
c
:
GetFlagEffect
(
id
))
local
ct
=
math.max
(
1
,
c
:
GetFlagEffect
(
id
))
Duel
.
Destroy
(
c
,
REASON_REPLACE
)
if
Duel
.
Destroy
(
c
,
REASON_REPLACE
)
>
0
then
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
for
i
=
1
,
ct
do
for
i
=
1
,
ct
do
for
tc
in
aux
.
Next
(
g
)
do
for
tc
in
aux
.
Next
(
g
)
do
if
tc
:
GetFlagEffect
(
id
)
==
0
then
if
tc
:
GetFlagEffect
(
id
)
==
0
then
tc
:
CopyEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
CopyEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
)
end
end
if
tc
:
GetFlagEffect
(
id
)
<
256
then
tc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
tc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
--
end
end
end
end
end
end
end
end
\ No newline at end of file
expansions/script/c65130370.lua
View file @
3cc4a48c
...
@@ -63,7 +63,8 @@ function s.initial_effect(c)
...
@@ -63,7 +63,8 @@ function s.initial_effect(c)
s
.
global_check
=
true
s
.
global_check
=
true
_SetLP
=
Duel
.
SetLP
_SetLP
=
Duel
.
SetLP
function
Duel
.
SetLP
(
p
,
lp
)
function
Duel
.
SetLP
(
p
,
lp
)
if
Duel
.
GetFieldGroup
(
p
,
LOCATION_FZONE
,
0
):
GetFirst
():
GetOriginalCode
()
==
id
then
local
fc
=
Duel
.
GetFieldGroup
(
p
,
LOCATION_FZONE
,
0
):
GetFirst
()
if
fc
and
fc
:
GetOriginalCode
()
==
id
then
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
return
return
end
end
...
@@ -71,12 +72,14 @@ function s.initial_effect(c)
...
@@ -71,12 +72,14 @@ function s.initial_effect(c)
end
end
_CheckLPCost
=
Duel
.
CheckLPCost
_CheckLPCost
=
Duel
.
CheckLPCost
function
Duel
.
CheckLPCost
(
p
,
cost
)
function
Duel
.
CheckLPCost
(
p
,
cost
)
if
Duel
.
GetFieldGroup
(
p
,
LOCATION_FZONE
,
0
):
GetFirst
():
GetOriginalCode
()
==
id
then
return
true
end
local
fc
=
Duel
.
GetFieldGroup
(
p
,
LOCATION_FZONE
,
0
):
GetFirst
()
if
fc
and
fc
:
GetOriginalCode
()
==
id
then
return
true
end
return
_CheckLPCost
(
p
,
cost
)
return
_CheckLPCost
(
p
,
cost
)
end
end
_PayLPCost
=
Duel
.
PayLPCost
_PayLPCost
=
Duel
.
PayLPCost
function
Duel
.
PayLPCost
(
p
,
cost
)
function
Duel
.
PayLPCost
(
p
,
cost
)
if
Duel
.
GetFieldGroup
(
p
,
LOCATION_FZONE
,
0
):
GetFirst
():
GetOriginalCode
()
==
id
then
local
fc
=
Duel
.
GetFieldGroup
(
p
,
LOCATION_FZONE
,
0
):
GetFirst
()
if
fc
and
fc
:
GetOriginalCode
()
==
id
then
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
return
return
end
end
...
@@ -128,7 +131,7 @@ function s.actop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -128,7 +131,7 @@ function s.actop(e,tp,eg,ep,ev,re,r,rp)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e4
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetRange
(
LOCATION_
M
ZONE
)
e4
:
SetRange
(
LOCATION_
F
ZONE
)
e4
:
SetValue
(
s
.
efilter
)
e4
:
SetValue
(
s
.
efilter
)
c
:
RegisterEffect
(
e4
,
true
)
c
:
RegisterEffect
(
e4
,
true
)
--cannot
--cannot
...
...
expansions/script/c88882036.lua
View file @
3cc4a48c
...
@@ -26,7 +26,7 @@ function s.initial_effect(c)
...
@@ -26,7 +26,7 @@ function s.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCountLimit
(
1
,
id
+
o
+
1
)
e3
:
SetTarget
(
s
.
settg
)
e3
:
SetTarget
(
s
.
settg
)
e3
:
SetOperation
(
s
.
setop
)
e3
:
SetOperation
(
s
.
setop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
...
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