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
Huangnan
no81cards
Commits
5d473ad3
Commit
5d473ad3
authored
Jul 26, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
33f655fa
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
24 deletions
+36
-24
expansions/script/c29021764.lua
expansions/script/c29021764.lua
+1
-1
expansions/script/c29051189.lua
expansions/script/c29051189.lua
+32
-22
expansions/script/c31407005.lua
expansions/script/c31407005.lua
+1
-0
expansions/script/c65130344.lua
expansions/script/c65130344.lua
+2
-1
No files found.
expansions/script/c29021764.lua
View file @
5d473ad3
...
@@ -21,7 +21,7 @@ function cm.initial_effect(c)
...
@@ -21,7 +21,7 @@ function cm.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCode
(
EFFECT_EXTRA_ATTACK
_MONSTER
)
e4
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e4
:
SetValue
(
1
)
e4
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--synchro level
--synchro level
...
...
expansions/script/c29051189.lua
View file @
5d473ad3
--方舟骑士-梅
--方舟骑士-梅
c29051189
.
named_with_Arknight
=
1
c29051189
.
named_with_Arknight
=
1
function
c29051189
.
initial_effect
(
c
)
function
c29051189
.
initial_effect
(
c
)
--sp
ecial
summon
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
Set
Type
(
EFFECT_TYPE_FIELD
)
e1
:
Set
Description
(
aux
.
Stringid
(
29051189
,
0
)
)
e1
:
SetC
ode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetC
ategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
Set
Property
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
Set
Type
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
29051190
)
e1
:
SetCondition
(
c29051189
.
spcon
)
e1
:
SetCondition
(
c29051189
.
spcon
)
e1
:
SetTarget
(
c29051189
.
sptg
)
e1
:
SetOperation
(
c29051189
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--announce
--announce
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
29051189
,
1
))
e3
:
SetDescription
(
aux
.
Stringid
(
29051189
,
2
))
e3
:
SetCategory
(
CATEGORY_
TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_
DECKDES
)
e3
:
SetCategory
(
CATEGORY_DECKDES
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
29051189
)
e3
:
SetCountLimit
(
1
,
29051189
)
...
@@ -20,19 +23,24 @@ function c29051189.initial_effect(c)
...
@@ -20,19 +23,24 @@ function c29051189.initial_effect(c)
e3
:
SetOperation
(
c29051189
.
acop
)
e3
:
SetOperation
(
c29051189
.
acop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c29051189
.
filter
(
c
)
function
c29051189
.
c
filter
(
c
)
return
c
:
IsFace
down
()
and
not
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
)
)
return
c
:
IsFace
up
()
and
c
:
IsType
(
TYPE_TUNER
)
end
end
function
c29051189
.
filter2
(
c
)
function
c29051189
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
)
)
return
Duel
.
IsExistingMatchingCard
(
c29051189
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c29051189
.
spcon
(
e
,
c
)
function
c29051189
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
c
==
nil
then
return
true
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
not
Duel
.
IsExistingMatchingCard
(
c29051189
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c29051189
.
filter2
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c29051189
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c29051189
.
actg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c29051189
.
actg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
5
)
and
Duel
.
GetDecktopGroup
(
tp
,
5
):
FilterCount
(
Card
.
IsAbleTo
Hand
,
nil
)
>
0
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
5
)
and
Duel
.
GetDecktopGroup
(
tp
,
5
):
FilterCount
(
Card
.
IsAbleTo
Grave
,
nil
)
>
0
end
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
5
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
5
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
getmetatable
(
e
:
GetHandler
()).
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
getmetatable
(
e
:
GetHandler
()).
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
...
@@ -56,13 +64,15 @@ function c29051189.acop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,13 +64,15 @@ function c29051189.acop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmDecktop
(
tp
,
5
)
Duel
.
ConfirmDecktop
(
tp
,
5
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
5
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
5
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
if
g
:
IsExists
(
c29051189
.
filter
,
1
,
nil
,
ac
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
29051189
,
1
))
then
if
g
:
IsExists
(
c29051189
.
filter
,
1
,
nil
,
ac
)
and
g
:
IsExists
(
c29051189
.
thfilter
,
1
,
nil
)
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
29051189
,
1
))
then
Duel
.
DisableShuffleCheck
()
Duel
.
DisableShuffleCheck
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg
=
g
:
FilterSelect
(
tp
,
c29051189
.
thfilter
,
1
,
1
,
nil
)
local
sg
=
g
:
FilterSelect
(
tp
,
c29051189
.
thfilter
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
end
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
g
:
FilterSelect
(
tp
,
c29051189
.
tgfilter
,
1
,
1
,
nil
)
local
sg
=
g
:
FilterSelect
(
tp
,
c29051189
.
tgfilter
,
1
,
1
,
nil
)
...
...
expansions/script/c31407005.lua
View file @
5d473ad3
...
@@ -8,6 +8,7 @@ function cm.initial_effect(c)
...
@@ -8,6 +8,7 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
cm
.
tohtg
)
e1
:
SetTarget
(
cm
.
tohtg
)
e1
:
SetOperation
(
cm
.
tohop
)
e1
:
SetOperation
(
cm
.
tohop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c65130344.lua
View file @
5d473ad3
...
@@ -6,7 +6,8 @@ function c65130344.initial_effect(c)
...
@@ -6,7 +6,8 @@ function c65130344.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_RELEASE
)
e1
:
SetCode
(
EFFECT_CANNOT_RELEASE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
LOCATION_HAND
,
LOCATION_HAND
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsLocation
,
LOCATION_HAND
))
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--to Grave
--to Grave
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
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