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
8ff3d039
Commit
8ff3d039
authored
Oct 14, 2022
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
aaf37848
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
12 deletions
+22
-12
expansions/script/c11451429.lua
expansions/script/c11451429.lua
+2
-2
expansions/script/c11451527.lua
expansions/script/c11451527.lua
+8
-4
expansions/script/c14000103.lua
expansions/script/c14000103.lua
+3
-3
expansions/script/c33201018.lua
expansions/script/c33201018.lua
+1
-1
expansions/script/c50587164.lua
expansions/script/c50587164.lua
+6
-0
expansions/script/c51782333.lua
expansions/script/c51782333.lua
+2
-2
No files found.
expansions/script/c11451429.lua
View file @
8ff3d039
--闪刀姬-机影
--闪刀姬-机影
local
m
=
11451429
local
cm
,
m
=
GetID
()
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
c
:
SetSPSummonOnce
(
m
)
c
:
SetSPSummonOnce
(
m
)
--synchro summon
--synchro summon
...
@@ -86,6 +85,7 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -86,6 +85,7 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e1
:
SetLabel
(
turn
)
e1
:
SetLabel
(
turn
)
e1
:
SetCondition
(
cm
.
qpcon
)
e1
:
SetCondition
(
cm
.
qpcon
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x115
))
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
2
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
2
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
...
expansions/script/c11451527.lua
View file @
8ff3d039
--珂拉琪的造物双子
--珂拉琪的造物双子
local
m
=
11451527
local
cm
,
m
=
GetID
()
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--pendulum summon
--pendulum summon
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
...
@@ -57,6 +56,11 @@ function cm.initial_effect(c)
...
@@ -57,6 +56,11 @@ function cm.initial_effect(c)
e5
:
SetRange
(
0xff
)
e5
:
SetRange
(
0xff
)
e5
:
SetValue
(
0x151
)
e5
:
SetValue
(
0x151
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
if
not
cm
.
pendulum_link
then
cm
.
pendulum_link
=
true
_GetLink
=
Card
.
GetLink
Card
.
GetLink
=
function
(
tc
)
if
tc
==
c
and
tc
:
IsLocation
(
LOCATION_PZONE
)
then
return
2
else
return
_GetLink
(
tc
)
end
end
end
end
end
function
cm
.
lcheck
(
g
)
function
cm
.
lcheck
(
g
)
return
g
:
GetClassCount
(
Card
.
GetLinkRace
)
==
1
and
g
:
GetClassCount
(
Card
.
GetCode
)
==
g
:
GetCount
()
return
g
:
GetClassCount
(
Card
.
GetLinkRace
)
==
1
and
g
:
GetClassCount
(
Card
.
GetCode
)
==
g
:
GetCount
()
...
@@ -79,12 +83,12 @@ function cm.LinkCondition(f,minc,maxc,gf)
...
@@ -79,12 +83,12 @@ function cm.LinkCondition(f,minc,maxc,gf)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
mg
=
nil
local
mg
=
nil
if
og
then
if
og
then
mg
=
og
:
Filter
(
Auxiliary
.
LConditionFilter
,
nil
,
f
,
c
)
mg
=
og
:
Filter
(
Auxiliary
.
LConditionFilter
,
nil
,
f
,
c
,
e
)
else
else
mg
=
Auxiliary
.
GetLinkMaterials
(
tp
,
f
,
c
)
mg
=
Auxiliary
.
GetLinkMaterials
(
tp
,
f
,
c
)
end
end
if
lmat
~=
nil
then
if
lmat
~=
nil
then
if
not
Auxiliary
.
LConditionFilter
(
lmat
,
f
,
c
)
then
return
false
end
if
not
Auxiliary
.
LConditionFilter
(
lmat
,
f
,
c
,
e
)
then
return
false
end
mg
:
AddCard
(
lmat
)
mg
:
AddCard
(
lmat
)
end
end
local
fg
=
Auxiliary
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Auxiliary
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
...
...
expansions/script/c14000103.lua
View file @
8ff3d039
...
@@ -64,7 +64,7 @@ end
...
@@ -64,7 +64,7 @@ end
function
cm
.
poscon
(
e
)
function
cm
.
poscon
(
e
)
return
e
:
GetHandler
():
IsAttackPos
()
return
e
:
GetHandler
():
IsAttackPos
()
end
end
function
cm
.
filter
(
c
,
e
,
tp
)
function
cm
.
filter
(
c
,
tp
)
return
c
:
IsCode
(
14000105
)
and
(
c
:
IsAbleToHand
()
or
c
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
,
true
))
return
c
:
IsCode
(
14000105
)
and
(
c
:
IsAbleToHand
()
or
c
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
,
true
))
end
end
function
cm
.
cfilter
(
c
,
tp
)
function
cm
.
cfilter
(
c
,
tp
)
...
@@ -122,12 +122,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -122,12 +122,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
else
else
local
tg
=
Duel
.
GetFirstMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
tp
)
local
tc
=
tg
local
tc
=
tg
if
tc
then
if
tc
then
local
te
=
tc
:
GetActivateEffect
()
local
te
=
tc
:
GetActivateEffect
()
local
b1
=
tc
:
IsAbleToHand
()
local
b1
=
tc
:
IsAbleToHand
()
local
b2
=
te
:
IsActivatable
(
tp
)
local
b2
=
te
:
IsActivatable
(
tp
,
true
,
true
)
if
b1
and
(
not
b2
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
)))
then
if
b1
and
(
not
b2
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
)))
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
...
...
expansions/script/c33201018.lua
View file @
8ff3d039
...
@@ -33,7 +33,7 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -33,7 +33,7 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
nil
,
0
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
nil
,
0
,
0
,
0
)
end
end
function
s
.
desfilter
(
c
)
function
s
.
desfilter
(
c
)
return
(
c
:
IsRace
(
RACE_ZOMBIE
)
or
c
:
IsCode
(
33201009
))
and
c
:
IsFaceup
()
return
(
(
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsType
(
TYPE_MONSTER
)
)
or
c
:
IsCode
(
33201009
))
and
c
:
IsFaceup
()
end
end
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c50587164.lua
View file @
8ff3d039
...
@@ -126,8 +126,13 @@ function c50587164.effop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -126,8 +126,13 @@ function c50587164.effop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c50587164
.
sctarg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50587164
.
sctarg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
and
c
:
IsOriginalCodeRule
(
74627016
)
then
return
Duel
.
GetFlagEffect
(
tp
,
50587164
)
==
0
and
(
Duel
.
IsExistingMatchingCard
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
Card
.
IsLinkSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
nil
,
c
))
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
50587164
)
==
0
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
50587164
)
==
0
and
(
Duel
.
IsExistingMatchingCard
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
c
)
or
Duel
.
IsExistingMatchingCard
(
Card
.
IsLinkSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
nil
,
c
))
end
and
(
Duel
.
IsExistingMatchingCard
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
c
)
or
Duel
.
IsExistingMatchingCard
(
Card
.
IsLinkSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
nil
,
c
))
end
Duel
.
RegisterFlagEffect
(
tp
,
50587164
,
RESET_CHAIN
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
50587164
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
...
@@ -135,6 +140,7 @@ function c50587164.scop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -135,6 +140,7 @@ function c50587164.scop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
GetControler
()
~=
tp
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
c
:
GetControler
()
~=
tp
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
c
)
if
c
:
IsOriginalCodeRule
(
74627016
)
then
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
nil
)
end
local
g2
=
Duel
.
GetMatchingGroup
(
Card
.
IsLinkSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
nil
,
c
)
local
g2
=
Duel
.
GetMatchingGroup
(
Card
.
IsLinkSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
nil
,
c
)
if
g
:
GetCount
()
>
0
and
g2
:
GetCount
()
<=
0
then
if
g
:
GetCount
()
>
0
and
g2
:
GetCount
()
<=
0
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
50587164
,
5
))
+
1
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
50587164
,
5
))
+
1
...
...
expansions/script/c51782333.lua
View file @
8ff3d039
...
@@ -181,10 +181,10 @@ function c51782333.spr(e,tp,eg,ep,ev,re,r,rp)
...
@@ -181,10 +181,10 @@ function c51782333.spr(e,tp,eg,ep,ev,re,r,rp)
if
not
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
then
return
end
if
not
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
then
return
end
if
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
then
if
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
then
e
:
SetLabel
(
Duel
.
GetTurnCount
())
e
:
SetLabel
(
Duel
.
GetTurnCount
())
c
:
RegisterFlagEffect
(
51782333
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
0
,
2
)
c
:
RegisterFlagEffect
(
51782333
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_STANDBY
,
0
,
2
)
else
else
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
c
:
RegisterFlagEffect
(
51782333
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
0
,
1
)
c
:
RegisterFlagEffect
(
51782333
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_STANDBY
,
0
,
1
)
end
end
end
end
function
c51782333
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c51782333
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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