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
fa2e80c6
Commit
fa2e80c6
authored
Sep 17, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
15002eb1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
63 additions
and
62 deletions
+63
-62
expansions/script/c12835103.lua
expansions/script/c12835103.lua
+1
-1
expansions/script/c12835110.lua
expansions/script/c12835110.lua
+4
-3
expansions/script/c49811161.lua
expansions/script/c49811161.lua
+56
-55
expansions/script/c49811166.lua
expansions/script/c49811166.lua
+1
-2
expansions/script/c53738005.lua
expansions/script/c53738005.lua
+1
-1
No files found.
expansions/script/c12835103.lua
View file @
fa2e80c6
...
@@ -59,7 +59,7 @@ function s.pcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,7 +59,7 @@ function s.pcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsPublic
()
return
e
:
GetHandler
():
IsPublic
()
end
end
function
s
.
cfilter
(
c
,
ec
)
function
s
.
cfilter
(
c
,
ec
)
return
((
c
:
GetOriginalType
()
&
TYPE_SPELL
+
TYPE_TRAP
)
>
0
and
c
:
IsSetCard
(
0x3a70
)
or
c
:
IsLocation
(
LOCATION_ONFIELD
)
and
ec
:
IsLocation
(
LOCATION_HAND
)
and
ec
:
IsPublic
())
and
c
:
IsAbleToGraveAsCost
()
return
c
:
GetOriginalType
()
&
(
TYPE_SPELL
+
TYPE_TRAP
)
>
0
and
(
c
:
IsSetCard
(
0x3a70
)
or
c
:
IsLocation
(
LOCATION_ONFIELD
)
and
ec
:
IsLocation
(
LOCATION_HAND
)
and
ec
:
IsPublic
())
and
c
:
IsAbleToGraveAsCost
()
end
end
function
s
.
sscost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
sscost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
expansions/script/c12835110.lua
View file @
fa2e80c6
...
@@ -20,7 +20,6 @@ function s.initial_effect(c)
...
@@ -20,7 +20,6 @@ function s.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e2
:
SetCountLimit
(
1
,
id
+
100
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCondition
(
s
.
imncon
)
e2
:
SetCondition
(
s
.
imncon
)
e2
:
SetOperation
(
s
.
imnop
)
e2
:
SetOperation
(
s
.
imnop
)
...
@@ -114,7 +113,7 @@ end
...
@@ -114,7 +113,7 @@ end
function
s
.
imnop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
imnop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
s
.
movefilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
movefilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
and
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
then
if
g
:
GetCount
()
>
0
and
Duel
.
GetFlagEffect
(
tp
,
id
+
100
)
==
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
and
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
then
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
for
tc
in
aux
.
Next
(
g
)
do
for
tc
in
aux
.
Next
(
g
)
do
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -125,8 +124,10 @@ function s.imnop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -125,8 +124,10 @@ function s.imnop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
)
e1
:
SetValue
(
s
.
efilter
)
e1
:
SetValue
(
s
.
efilter
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
,
true
)
end
end
Duel
.
AdjustAll
()
Duel
.
RegisterFlagEffect
(
tp
,
id
+
100
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
12835102
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
12835102
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
end
end
...
...
expansions/script/c49811161.lua
View file @
fa2e80c6
--ぎりぎり対峙するG
--ぎりぎり対峙するG
function
c49811161
.
initial_effect
(
c
)
function
c49811161
.
initial_effect
(
c
)
c
:
EnableCounterPermit
(
0x4981
)
c
:
EnableCounterPermit
(
0x4981
)
--change name
--change name
aux
.
EnableChangeCode
(
c
,
15721123
,
LOCATION_GRAVE
)
aux
.
EnableChangeCode
(
c
,
15721123
,
LOCATION_GRAVE
)
--spsummon
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
49811161
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
49811161
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_COUNTER
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_COUNTER
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c49811161
.
condition
)
e1
:
SetCondition
(
c49811161
.
condition
)
e1
:
SetTarget
(
c49811161
.
sptg
)
e1
:
SetTarget
(
c49811161
.
sptg
)
e1
:
SetOperation
(
c49811161
.
spop
)
e1
:
SetOperation
(
c49811161
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--remove counter
--remove counter
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
49811161
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
49811161
,
1
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCondition
(
c49811161
.
rctcon
)
e2
:
SetCondition
(
c49811161
.
rctcon
)
e2
:
SetOperation
(
c49811161
.
rctop
)
e2
:
SetOperation
(
c49811161
.
rctop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c49811161
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c49811161
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_MZONE
,
0
)
==
0
and
rp
==
1
-
tp
return
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_MZONE
,
0
)
==
0
and
rp
==
1
-
tp
end
end
function
c49811161
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c49811161
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c49811161
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c49811161
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
then
local
cn
=
Duel
.
GetMatchingGroupCount
(
nil
,
tp
,
LOCATION_HAND
,
LOCATION_HAND
,
nil
)
local
cn
=
Duel
.
GetMatchingGroupCount
(
nil
,
tp
,
LOCATION_HAND
,
LOCATION_HAND
,
nil
)
c
:
AddCounter
(
0x4981
,
cn
)
c
:
AddCounter
(
0x4981
,
cn
)
c
:
CompleteProcedure
()
c
:
CompleteProcedure
()
end
c
:
RegisterFlagEffect
(
49811161
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
,
0
,
1
)
end
end
end
function
c49811161
.
cfilter
(
c
,
tp
)
function
c49811161
.
cfilter
(
c
,
tp
)
return
c
:
IsSummonPlayer
(
1
-
tp
)
return
c
:
IsSummonPlayer
(
1
-
tp
)
end
end
function
c49811161
.
rctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c49811161
.
rctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c49811161
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c49811161
.
cfilter
,
1
,
nil
,
tp
)
and
e
:
GetHandler
():
GetFlagEffect
(
49811161
)
~=
0
end
end
function
c49811161
.
rctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c49811161
.
rctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsCanRemoveCounter
(
tp
,
0x4981
,
1
,
REASON_EFFECT
)
then
if
c
:
IsCanRemoveCounter
(
tp
,
0x4981
,
1
,
REASON_EFFECT
)
then
c
:
RemoveCounter
(
tp
,
0x4981
,
1
,
REASON_EFFECT
)
c
:
RemoveCounter
(
tp
,
0x4981
,
1
,
REASON_EFFECT
)
else
else
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
--can not spsummon
--can not spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
49811161
,
2
))
e3
:
SetDescription
(
aux
.
Stringid
(
49811161
,
2
))
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetTargetRange
(
0
,
1
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
end
end
end
end
end
\ No newline at end of file
expansions/script/c49811166.lua
View file @
fa2e80c6
...
@@ -118,9 +118,8 @@ end
...
@@ -118,9 +118,8 @@ end
function
cm
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetLabel
()
==
100
and
Duel
.
IsExistingMatchingCard
(
cm
.
drfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
e
:
GetLabel
()
==
100
and
Duel
.
IsExistingMatchingCard
(
cm
.
drfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
drfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_MZONE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
drfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_COST
)
e
:
SetLabelObject
(
tc
)
e
:
SetLabelObject
(
tc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
...
...
expansions/script/c53738005.lua
View file @
fa2e80c6
...
@@ -4,7 +4,7 @@ cm.name="歼世死士轮 贩子"
...
@@ -4,7 +4,7 @@ cm.name="歼世死士轮 贩子"
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_DE
CKDES
)
e1
:
SetCategory
(
CATEGORY_DE
STROY
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
...
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