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
Hide 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)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCode
(
EFFECT_EXTRA_ATTACK
_MONSTER
)
e4
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e4
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
--synchro level
...
...
expansions/script/c29051189.lua
View file @
5d473ad3
--方舟骑士-梅
c29051189
.
named_with_Arknight
=
1
function
c29051189
.
initial_effect
(
c
)
--sp
ecial
summon
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
Set
Type
(
EFFECT_TYPE_FIELD
)
e1
:
SetC
ode
(
EFFECT_SPSUMMON_PROC
)
e1
:
Set
Property
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
Set
Description
(
aux
.
Stringid
(
29051189
,
0
)
)
e1
:
SetC
ategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
Set
Type
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
29051190
)
e1
:
SetCondition
(
c29051189
.
spcon
)
e1
:
SetTarget
(
c29051189
.
sptg
)
e1
:
SetOperation
(
c29051189
.
spop
)
c
:
RegisterEffect
(
e1
)
--announce
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
29051189
,
1
))
e3
:
SetCategory
(
CATEGORY_
TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_
DECKDES
)
e3
:
SetDescription
(
aux
.
Stringid
(
29051189
,
2
))
e3
:
SetCategory
(
CATEGORY_DECKDES
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
29051189
)
...
...
@@ -20,19 +23,24 @@ function c29051189.initial_effect(c)
e3
:
SetOperation
(
c29051189
.
acop
)
c
:
RegisterEffect
(
e3
)
end
function
c29051189
.
filter
(
c
)
return
c
:
IsFace
down
()
and
not
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
)
)
function
c29051189
.
c
filter
(
c
)
return
c
:
IsFace
up
()
and
c
:
IsType
(
TYPE_TUNER
)
end
function
c29051189
.
filter2
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
)
)
function
c29051189
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c29051189
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c29051189
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
not
Duel
.
IsExistingMatchingCard
(
c29051189
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c29051189
.
filter2
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
function
c29051189
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
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
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
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
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)
Duel
.
ConfirmDecktop
(
tp
,
5
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
5
)
if
g
:
GetCount
()
>
0
then
if
g
:
IsExists
(
c29051189
.
filter
,
1
,
nil
,
ac
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
29051189
,
1
))
then
Duel
.
DisableShuffleCheck
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg
=
g
:
FilterSelect
(
tp
,
c29051189
.
thfilter
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
ShuffleHand
(
tp
)
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
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg
=
g
:
FilterSelect
(
tp
,
c29051189
.
thfilter
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
ShuffleHand
(
tp
)
end
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
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)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
cm
.
tohtg
)
e1
:
SetOperation
(
cm
.
tohop
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c65130344.lua
View file @
5d473ad3
...
...
@@ -6,7 +6,8 @@ function c65130344.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_RELEASE
)
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
)
--to Grave
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