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
506461b1
Commit
506461b1
authored
Dec 23, 2023
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bbbb5d7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
35 deletions
+50
-35
expansions/script/c88800020.lua
expansions/script/c88800020.lua
+1
-1
expansions/script/c9910213.lua
expansions/script/c9910213.lua
+49
-34
No files found.
expansions/script/c88800020.lua
View file @
506461b1
...
...
@@ -44,7 +44,7 @@ function c88800020.initial_effect(c)
c
:
RegisterEffect
(
e4
)
end
function
c88800020
.
ffilter
(
c
)
return
c
:
IsSetCard
(
0xc01
)
return
c
:
IsSetCard
(
0xc01
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c88800020
.
cfilter1
(
c
,
tp
)
return
c
:
IsSetCard
(
0xc01
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
...
...
expansions/script/c9910213.lua
View file @
506461b1
--天空漫步者-小憩
function
c9910213
.
initial_effect
(
c
)
--
recover
--
Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
9910213
,
0
))
e1
:
SetCategory
(
CATEGORY_RECOVER
+
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
9910213
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCost
(
c9910213
.
cost
)
e1
:
SetTarget
(
c9910213
.
target
)
e1
:
SetOperation
(
c9910213
.
activate
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
9910213
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCountLimit
(
1
,
9910213
+
EFFECT_COUNT_CODE_OATH
)
e2
:
SetCost
(
c9910213
.
cost
)
e2
:
SetTarget
(
c9910213
.
target2
)
e2
:
SetOperation
(
c9910213
.
activate2
)
c
:
RegisterEffect
(
e2
)
end
function
c9910213
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
100
)
if
chk
==
0
then
return
true
end
end
function
c9910213
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x955
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
9910213
)
end
function
c9910213
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c9910213
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
function
c9910213
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x955
)
and
(
c
:
IsLevelBelow
(
4
)
or
c
:
IsLink
(
1
))
and
(
c
:
IsAbleToHand
()
or
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)))
end
function
c9910213
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
,
exc
,
cpchk
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c9910213
.
spfilter
(
chkc
,
e
,
tp
)
end
local
b1
=
Duel
.
IsExistingMatchingCard
(
c9910213
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
local
b2
=
Duel
.
IsExistingTarget
(
c9910213
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
exc
,
e
,
tp
)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
0
and
not
cpchk
then
e
:
SetLabel
(
0
)
return
b1
or
(
b2
and
Duel
.
CheckLPCost
(
tp
,
1000
))
else
return
b1
or
b2
end
end
local
op
=
0
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
9910213
,
0
),
aux
.
Stringid
(
9910213
,
1
))
elseif
b1
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
9910213
,
0
))
else
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
9910213
,
1
))
+
1
end
if
op
==
0
then
e
:
SetCategory
(
CATEGORY_RECOVER
+
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e
:
SetProperty
(
0
)
e
:
SetOperation
(
c9910213
.
activate
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
else
if
e
:
GetLabel
()
~=
0
and
not
cpchk
then
e
:
SetLabel
(
0
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
+
CATEGORY_GRAVE_SPSUMMON
)
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c9910213
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
e
:
SetOperation
(
c9910213
.
activate2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
0
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
0
,
0
,
0
)
end
end
function
c9910213
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
Recover
(
tp
,
1000
,
REASON_EFFECT
)
<=
0
then
return
end
...
...
@@ -40,30 +70,15 @@ function c9910213.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
c9910213
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
Duel
.
PayLPCost
(
tp
,
1000
)
end
function
c9910213
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x955
)
and
(
c
:
IsLevelBelow
(
4
)
or
c
:
IsLink
(
1
))
and
(
c
:
IsAbleToHand
()
or
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)))
end
function
c9910213
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c9910213
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c9910213
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c9910213
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
0
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
0
,
0
,
0
)
end
function
c9910213
.
activate2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
aux
.
NecroValleyNegateCheck
(
tc
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
(
not
tc
:
IsAbleToHand
()
or
Duel
.
SelectOption
(
tp
,
1190
,
1152
)
==
1
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
end
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