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
6dbf9046
Commit
6dbf9046
authored
Oct 23, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f53fd028
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
30 deletions
+21
-30
expansions/script/c64800183.lua
expansions/script/c64800183.lua
+17
-25
expansions/script/c64800192.lua
expansions/script/c64800192.lua
+4
-5
No files found.
expansions/script/c64800183.lua
View file @
6dbf9046
...
...
@@ -7,8 +7,8 @@ function cm.initial_effect(c)
c
:
EnableReviveLimit
()
--destroy&damage
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DAMAGE
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -23,35 +23,26 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
cm
.
sp1filter
(
c
,
race
,
att
)
return
c
:
IsFaceup
()
and
(
bit
.
band
(
race
,
c
:
GetOriginalRace
())
~=
0
or
bit
.
band
(
att
,
c
:
GetOriginalAttribute
())
~=
0
)
return
c
:
IsFaceup
()
and
(
c
:
GetOriginalRace
()
==
race
or
c
:
GetOriginalAttribute
()
==
att
)
end
function
cm
.
gcheck
(
g
,
c
,
tp
)
local
sg
=
g
:
Clone
()
local
ac
=
sg
:
GetFirst
()
local
bg
=
Group
.
CreateGroup
()
while
ac
do
if
not
Duel
.
IsExistingMatchingCard
(
cm
.
sp1filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ac
:
GetOriginalRace
(),
ac
:
GetOriginalAttribute
())
then
bg
:
AddCard
(
ac
)
end
ac
=
sg
:
GetNext
()
end
return
bg
:
GetCount
()
~=
0
end
function
cm
.
check
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
function
cm
.
check
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
CheckUniqueOnField
(
tp
)
and
not
c
:
IsForbidden
()
and
not
Duel
.
IsExistingMatchingCard
(
cm
.
sp1filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
c
:
GetOriginalRace
(),
c
:
GetOriginalAttribute
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
check
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
g
:
CheckSubGroup
(
cm
.
gcheck
,
1
,
1
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
tp
,
LOCATION_DECK
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
check
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
check
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
(
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
)
then
return
end
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
check
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
g
:
CheckSubGroup
(
cm
.
gcheck
,
1
,
1
,
tp
)
then
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
check
,
tp
,
LOCATION_DECK
,
0
,
nil
,
tp
)
if
#
g
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
cm
.
gcheck
,
false
,
1
,
1
,
tp
)
if
not
sg
then
return
end
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
sg
:
GetFirst
()
if
tc
then
if
not
Duel
.
Equip
(
tp
,
tc
,
c
)
then
return
end
...
...
@@ -69,6 +60,9 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
1000
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
tc
:
RegisterEffect
(
e3
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
)
...
...
@@ -82,5 +76,3 @@ end
function
cm
.
eqlimit
(
e
,
c
)
return
c
==
e
:
GetLabelObject
()
end
expansions/script/c64800192.lua
View file @
6dbf9046
...
...
@@ -32,24 +32,23 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e2
)
end
function
s
.
cfilter
(
c
)
function
s
.
cfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_EQUIP
)
and
c
:
IsFaceup
()
end
function
s
.
spcost
(
e
,
c
,
tp
,
st
)
if
bit
.
band
(
st
,
SUMMON_TYPE_SPECIAL
)
~=
SUMMON_TYPE_SPECIAL
then
return
true
end
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
s
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsAbleToEnterBP
()
end
function
s
.
cfilter
(
c
)
function
s
.
c
ost
filter
(
c
)
return
c
:
IsLevel
(
10
)
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lg
=
e
:
GetHandler
():
GetLinkedGroup
()
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
s
.
cfilter
,
1
,
nil
,
lg
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
s
.
cfilter
,
1
,
1
,
nil
,
lg
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
s
.
c
ost
filter
,
1
,
nil
,
lg
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
s
.
c
ost
filter
,
1
,
1
,
nil
,
lg
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
s
.
datop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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