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
8001e727
Commit
8001e727
authored
Feb 06, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
52700c01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
expansions/script/c33310155.lua
expansions/script/c33310155.lua
+1
-1
expansions/script/c9911078.lua
expansions/script/c9911078.lua
+10
-5
No files found.
expansions/script/c33310155.lua
View file @
8001e727
...
...
@@ -44,7 +44,7 @@ function c33310155.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33310155
.
costfil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
Debug
.
Message
(
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
if
not
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
0
)
Debug
.
Message
(
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
end
--
if not e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) then Duel.SendtoGrave(e:GetHandler(),0) Debug.Message(e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)) end
end
function
c33310155
.
tgfil
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x55b
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
expansions/script/c9911078.lua
View file @
8001e727
...
...
@@ -26,9 +26,14 @@ function c9911078.poscost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabel
(
1
)
return
true
end
function
c9911078
.
costfilter
(
c
,
tp
,
mc
,
res
)
function
c9911078
.
costfilter
(
c
,
tp
,
mc
)
if
not
c
:
IsAbleToGraveAsCost
()
then
return
false
end
local
g
=
Group
.
FromCards
(
c
,
mc
)
return
c
:
IsAbleToGraveAsCost
()
and
(
res
or
Duel
.
IsExistingMatchingCard
(
c9911078
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
g
))
if
Duel
.
IsExistingMatchingCard
(
c9911078
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
g
)
then
return
true
end
local
ct1
=
Duel
.
GetCounter
(
tp
,
1
,
0
,
0x1954
)
-
c
:
GetCounter
(
0x1954
)
local
ct2
=
Duel
.
GetCounter
(
tp
,
0
,
1
,
0x1954
)
return
(
ct1
>
ct2
and
Duel
.
GetDecktopGroup
(
tp
,
ct1
-
ct2
):
FilterCount
(
Card
.
IsAbleToRemove
,
nil
,
tp
,
POS_FACEDOWN
)
==
ct1
-
ct2
)
or
(
ct1
<
ct2
and
Duel
.
GetDecktopGroup
(
1
-
tp
,
ct2
-
ct1
):
FilterCount
(
Card
.
IsAbleToRemove
,
nil
,
tp
,
POS_FACEDOWN
)
==
ct2
-
ct1
)
end
function
c9911078
.
posfilter
(
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsFaceup
()
and
c
:
IsCanTurnSet
()
...
...
@@ -42,15 +47,15 @@ function c9911078.postg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
0
then
e
:
SetLabel
(
0
)
return
Duel
.
IsExistingMatchingCard
(
c9911078
.
costfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
,
c
,
res
)
return
Duel
.
IsExistingMatchingCard
(
c9911078
.
costfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
,
c
)
else
return
Duel
.
IsExistingMatchingCard
(
c9911078
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
c
)
return
res
or
Duel
.
IsExistingMatchingCard
(
c9911078
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
c
)
end
end
if
e
:
GetLabel
()
~=
0
then
e
:
SetLabel
(
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c9911078
.
costfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
tp
,
c
,
res
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c9911078
.
costfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
tp
,
c
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
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