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
d63485ae
Commit
d63485ae
authored
Oct 19, 2023
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
adba2c5e
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
16 deletions
+23
-16
expansions/script/c11451428.lua
expansions/script/c11451428.lua
+3
-3
expansions/script/c11451484.lua
expansions/script/c11451484.lua
+6
-4
expansions/script/c11451651.lua
expansions/script/c11451651.lua
+3
-1
expansions/script/c11451690.lua
expansions/script/c11451690.lua
+4
-3
expansions/script/c11451759.lua
expansions/script/c11451759.lua
+3
-3
expansions/script/c11451776.lua
expansions/script/c11451776.lua
+3
-1
expansions/script/c11451844.lua
expansions/script/c11451844.lua
+1
-1
No files found.
expansions/script/c11451428.lua
View file @
d63485ae
--闪刀信条-守护
--闪刀信条-守护
local
m
=
11451428
local
cm
,
m
=
GetID
()
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -60,5 +59,6 @@ function cm.atklimit(e,c)
...
@@ -60,5 +59,6 @@ function cm.atklimit(e,c)
end
end
function
cm
.
efilter
(
e
,
re
)
function
cm
.
efilter
(
e
,
re
)
local
c
=
e
:
GetLabelObject
()
local
c
=
e
:
GetLabelObject
()
return
e
:
GetOwnerPlayer
()
~=
re
:
GetOwnerPlayer
()
and
(
c
:
GetRealFieldID
()
~=
e
:
GetLabel
()
or
not
((
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
and
c
:
IsRelateToEffect
(
re
))
or
re
:
IsHasCardTarget
(
c
)))
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
return
e
:
GetOwnerPlayer
()
~=
re
:
GetOwnerPlayer
()
and
(
c
:
GetRealFieldID
()
~=
e
:
GetLabel
()
or
not
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
and
g
and
g
:
IsContains
(
c
)))
end
end
\ No newline at end of file
expansions/script/c11451484.lua
View file @
d63485ae
...
@@ -97,8 +97,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -97,8 +97,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e7
:
SetCondition
(
cm
.
thcon
)
e7
:
SetCondition
(
cm
.
thcon
)
e7
:
SetOperation
(
cm
.
thop
)
e7
:
SetOperation
(
cm
.
thop
)
Duel
.
RegisterEffect
(
e7
,
tp
)
Duel
.
RegisterEffect
(
e7
,
tp
)
tc1
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x1de0000
,
0
,
1
)
tc1
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x1de0000
,
0
,
1
,
tc1
:
GetRealFieldID
()
)
tc2
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x1de0000
,
0
,
1
)
tc2
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x1de0000
,
0
,
1
,
tc2
:
GetRealFieldID
()
)
end
end
end
end
function
cm
.
thfilter
(
c
)
function
cm
.
thfilter
(
c
)
...
@@ -113,11 +113,13 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -113,11 +113,13 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
end
end
function
cm
.
filter
(
c
,
fid
,
ac
)
function
cm
.
filter
(
c
,
fid
,
ac
)
return
c
:
GetRealFieldID
()
==
fid
and
c
:
IsCanBeBattleTarget
(
ac
)
local
flag
=
c
:
GetFlagEffectLabel
(
m
)
return
flag
and
flag
==
fid
and
c
:
IsCanBeBattleTarget
(
ac
)
end
end
function
cm
.
macon
(
e
)
function
cm
.
macon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
(),
e
:
GetLabel
(),
e
:
GetHandler
())
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
(),
e
:
GetLabel
(),
e
:
GetHandler
())
end
end
function
cm
.
bttg
(
e
,
c
)
function
cm
.
bttg
(
e
,
c
)
return
c
:
GetRealFieldID
()
==
e
:
GetLabel
()
local
flag
=
c
:
GetFlagEffectLabel
(
m
)
return
flag
and
flag
==
e
:
GetLabel
()
end
end
\ No newline at end of file
expansions/script/c11451651.lua
View file @
d63485ae
...
@@ -56,12 +56,14 @@ function cm.check(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,12 +56,14 @@ function cm.check(e,tp,eg,ep,ev,re,r,rp)
local
tf
=
re
:
GetHandler
():
IsRelateToEffect
(
re
)
local
tf
=
re
:
GetHandler
():
IsRelateToEffect
(
re
)
local
cid
=
re
:
GetHandler
():
GetRealFieldID
()
local
cid
=
re
:
GetHandler
():
GetRealFieldID
()
cm
[
ev
]
=
{
re
,
tf
,
cid
}
cm
[
ev
]
=
{
re
,
tf
,
cid
}
re
:
GetHandler
():
RegisterFlagEffect
(
m
+
2
,
RESET_EVENT
+
0x1fc0000
+
RESET_CHAIN
,
0
,
1
)
end
end
function
cm
.
rscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
rscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentChain
()
>
1
return
Duel
.
GetCurrentChain
()
>
1
end
end
function
cm
.
reset
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
reset
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
cm
[
ev
]
=
{
re
,
false
,
0
}
cm
[
ev
]
=
{
re
,
false
,
0
}
re
:
GetHandler
():
ResetFlagEffect
(
m
+
2
)
end
end
function
cm
.
clearcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
clearcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentChain
()
==
1
return
Duel
.
GetCurrentChain
()
==
1
...
@@ -108,7 +110,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -108,7 +110,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
while
type
(
cm
[
i
])
==
"table"
do
while
type
(
cm
[
i
])
==
"table"
do
local
te
,
tf
,
cid
=
table.unpack
(
cm
[
i
])
local
te
,
tf
,
cid
=
table.unpack
(
cm
[
i
])
local
tc
=
te
:
GetHandler
()
local
tc
=
te
:
GetHandler
()
if
((
i
<=
Duel
.
GetCurrentChain
()
and
tc
:
IsRelateToEffect
(
te
))
or
(
i
>
Duel
.
GetCurrentChain
()
and
tf
and
tc
:
Get
RealFieldID
()
==
cid
))
and
tc
:
IsReleasableByEffect
()
then
g
:
AddCard
(
tc
)
end
if
((
i
<=
Duel
.
GetCurrentChain
()
and
tc
:
IsRelateToEffect
(
te
))
or
(
i
>
Duel
.
GetCurrentChain
()
and
tf
and
tc
:
Get
FlagEffect
(
m
+
2
)
>
0
))
and
tc
:
IsReleasableByEffect
()
then
g
:
AddCard
(
tc
)
end
i
=
i
+
1
i
=
i
+
1
end
end
local
hg
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
#
g
*
2
)
local
hg
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
#
g
*
2
)
...
...
expansions/script/c11451690.lua
View file @
d63485ae
--天空漫步者-仰卧飞行
--天空漫步者-仰卧飞行
local
m
=
11451690
local
cm
,
m
=
GetID
()
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
@@ -62,6 +61,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,6 +61,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if
sel
==
0
then
if
sel
==
0
then
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
tc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
,
tc
:
GetRealFieldID
())
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
...
@@ -94,5 +94,6 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -94,5 +94,6 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
efilter
(
e
,
re
)
function
cm
.
efilter
(
e
,
re
)
local
c
=
e
:
GetLabelObject
()
local
c
=
e
:
GetLabelObject
()
return
c
:
GetRealFieldID
()
==
e
:
GetLabel
()
and
re
:
IsActivated
()
and
re
:
GetOwner
()
==
c
local
flag
=
c
:
GetFlagEffectLabel
(
m
)
return
flag
and
flag
==
e
:
GetLabel
()
and
re
:
IsActivated
()
and
re
:
GetOwner
()
==
c
end
end
\ No newline at end of file
expansions/script/c11451759.lua
View file @
d63485ae
...
@@ -74,7 +74,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -74,7 +74,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
tc
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
):
GetFirst
()
c
:
SetCardTarget
(
tc
)
c
:
SetCardTarget
(
tc
)
tc
:
SetUniqueOnField
(
1
,
1
,
cm
.
uqfilter
,
LOCATION_ONFIELD
)
tc
:
SetUniqueOnField
(
1
,
1
,
cm
.
uqfilter
,
LOCATION_ONFIELD
)
tc
:
RegisterFlagEffect
(
m
-
14
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
,
tc
:
GetRealFieldID
()
)
tc
:
RegisterFlagEffect
(
m
-
14
,
RESET_EVENT
+
0x1fc0000
,
0
,
1
)
end
end
function
cm
.
uqfilter
(
c
)
function
cm
.
uqfilter
(
c
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
afilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
c
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
afilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
c
)
...
@@ -82,11 +82,11 @@ end
...
@@ -82,11 +82,11 @@ end
function
cm
.
afilter
(
c
,
tc
)
function
cm
.
afilter
(
c
,
tc
)
local
flag
=
c
:
GetFlagEffectLabel
(
m
-
13
)
local
flag
=
c
:
GetFlagEffectLabel
(
m
-
13
)
local
flag2
=
tc
:
GetFlagEffectLabel
(
m
-
14
)
local
flag2
=
tc
:
GetFlagEffectLabel
(
m
-
14
)
return
c
:
IsHasCardTarget
(
tc
)
and
flag
and
flag
==
c
:
GetFieldID
()
and
flag2
and
flag2
==
tc
:
GetRealFieldID
()
return
c
:
IsHasCardTarget
(
tc
)
and
flag
and
flag
2
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
c
:
RegisterFlagEffect
(
m
-
13
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
,
c
:
GetFieldID
()
)
c
:
RegisterFlagEffect
(
m
-
13
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
end
end
function
cm
.
spfilter
(
c
,
se
)
function
cm
.
spfilter
(
c
,
se
)
if
not
(
se
==
nil
or
c
:
GetReasonEffect
()
~=
se
)
then
return
false
end
if
not
(
se
==
nil
or
c
:
GetReasonEffect
()
~=
se
)
then
return
false
end
...
...
expansions/script/c11451776.lua
View file @
d63485ae
...
@@ -105,12 +105,14 @@ function cm.check(e,tp,eg,ep,ev,re,r,rp)
...
@@ -105,12 +105,14 @@ function cm.check(e,tp,eg,ep,ev,re,r,rp)
local
tf
=
re
:
GetHandler
():
IsRelateToEffect
(
re
)
local
tf
=
re
:
GetHandler
():
IsRelateToEffect
(
re
)
local
cid
=
re
:
GetHandler
():
GetRealFieldID
()
local
cid
=
re
:
GetHandler
():
GetRealFieldID
()
cm
[
ev
]
=
{
re
,
tf
,
cid
}
cm
[
ev
]
=
{
re
,
tf
,
cid
}
re
:
GetHandler
():
RegisterFlagEffect
(
m
+
1
,
RESET_EVENT
+
0x1fc0000
+
RESET_CHAIN
,
0
,
1
)
end
end
function
cm
.
rscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
rscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentChain
()
>
1
return
Duel
.
GetCurrentChain
()
>
1
end
end
function
cm
.
reset
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
reset
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
cm
[
ev
]
=
{
re
,
false
,
0
}
cm
[
ev
]
=
{
re
,
false
,
0
}
re
:
GetHandler
():
ResetFlagEffect
(
m
+
1
)
end
end
function
cm
.
clearcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
clearcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentChain
()
==
1
return
Duel
.
GetCurrentChain
()
==
1
...
@@ -145,7 +147,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -145,7 +147,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
while
type
(
cm
[
i
])
==
"table"
do
while
type
(
cm
[
i
])
==
"table"
do
local
te
,
tf
,
cid
=
table.unpack
(
cm
[
i
])
local
te
,
tf
,
cid
=
table.unpack
(
cm
[
i
])
local
tc
=
te
:
GetHandler
()
local
tc
=
te
:
GetHandler
()
if
((
i
<=
Duel
.
GetCurrentChain
()
and
tc
:
IsRelateToEffect
(
te
))
or
(
i
>
Duel
.
GetCurrentChain
()
and
tf
and
tc
:
Get
RealFieldID
()
==
cid
))
and
tc
:
IsAbleToRemove
()
and
not
tc
:
IsLocation
(
LOCATION_REMOVED
)
then
g
:
AddCard
(
tc
)
end
if
((
i
<=
Duel
.
GetCurrentChain
()
and
tc
:
IsRelateToEffect
(
te
))
or
(
i
>
Duel
.
GetCurrentChain
()
and
tf
and
tc
:
Get
FlagEffect
(
m
+
1
)
>
0
))
and
tc
:
IsAbleToRemove
()
and
not
tc
:
IsLocation
(
LOCATION_REMOVED
)
then
g
:
AddCard
(
tc
)
end
i
=
i
+
1
i
=
i
+
1
end
end
g
:
RemoveCard
(
c
)
g
:
RemoveCard
(
c
)
...
...
expansions/script/c11451844.lua
View file @
d63485ae
...
@@ -50,7 +50,7 @@ function cm.fieldid(c)
...
@@ -50,7 +50,7 @@ function cm.fieldid(c)
return
c
:
GetFlagEffectLabel
(
m
)
or
-
1
return
c
:
GetFlagEffectLabel
(
m
)
or
-
1
end
end
function
cm
.
filter
(
c
,
ec
)
function
cm
.
filter
(
c
,
ec
)
return
(
c
:
GetType
()
&
TYPE_QUICKPLAY
>
0
or
c
:
GetType
()
==
TYPE_TRAP
)
and
not
c
:
IsReason
(
REASON_RETURN
)
and
c
:
GetRealFieldID
()
<
ec
:
GetRealFieldID
(
)
return
(
c
:
GetType
()
&
TYPE_QUICKPLAY
>
0
or
c
:
GetType
()
==
TYPE_TRAP
)
and
not
c
:
IsReason
(
REASON_RETURN
)
and
c
m
.
fieldid
(
c
)
<
cm
.
fieldid
(
ec
)
end
end
function
cm
.
filter2
(
c
,
ec
,
sc
)
function
cm
.
filter2
(
c
,
ec
,
sc
)
return
cm
.
filter
(
c
,
ec
)
and
cm
.
fieldid
(
c
)
==
cm
.
fieldid
(
sc
)
and
c
:
IsAbleToRemoveAsCost
()
and
((
c
:
GetType
()
&
TYPE_QUICKPLAY
>
0
and
c
:
CheckActivateEffect
(
true
,
true
,
false
)
~=
nil
)
or
(
c
:
GetType
()
==
TYPE_TRAP
>
0
and
c
:
CheckActivateEffect
(
false
,
true
,
false
)
~=
nil
))
return
cm
.
filter
(
c
,
ec
)
and
cm
.
fieldid
(
c
)
==
cm
.
fieldid
(
sc
)
and
c
:
IsAbleToRemoveAsCost
()
and
((
c
:
GetType
()
&
TYPE_QUICKPLAY
>
0
and
c
:
CheckActivateEffect
(
true
,
true
,
false
)
~=
nil
)
or
(
c
:
GetType
()
==
TYPE_TRAP
>
0
and
c
:
CheckActivateEffect
(
false
,
true
,
false
)
~=
nil
))
...
...
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