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
0abfac43
Commit
0abfac43
authored
May 23, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
81859bc7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
106 additions
and
61 deletions
+106
-61
expansions/script/c33700792.lua
expansions/script/c33700792.lua
+8
-7
expansions/script/c65140032.lua
expansions/script/c65140032.lua
+1
-1
expansions/script/c7463195.lua
expansions/script/c7463195.lua
+92
-48
expansions/script/c91030020.lua
expansions/script/c91030020.lua
+5
-5
No files found.
expansions/script/c33700792.lua
View file @
0abfac43
...
@@ -10,21 +10,22 @@ function c33700792.initial_effect(c)
...
@@ -10,21 +10,22 @@ function c33700792.initial_effect(c)
e1
:
SetTarget
(
c33700792
.
target
)
e1
:
SetTarget
(
c33700792
.
target
)
e1
:
SetOperation
(
c33700792
.
activate
)
e1
:
SetOperation
(
c33700792
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
Duel
.
AddCustomActivityCounter
(
33700792
,
ACTIVITY_SPSUMMON
,
c33700792
.
counterfilter
)
end
function
c33700792
.
counterfilter
(
c
)
return
not
c
:
IsSummonLocation
(
LOCATION_EXTRA
)
end
end
function
c33700792
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33700792
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
Get
ActivityCount
(
tp
,
ACTIVITY_SUMMON
)
==
0
and
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
if
chk
==
0
then
return
Duel
.
Get
CustomActivityCount
(
33700792
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e1
:
SetCode
(
EFFECT_CANNOT_S
PECIAL_S
UMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetLabelObject
(
e
)
e1
:
SetTarget
(
c33700792
.
splimit
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e2
:
SetLabelObject
(
e
)
e2
:
SetTarget
(
c33700792
.
splimit
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c33700792
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c33700792
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
se
~=
e
:
GetLabelObject
()
and
c
:
IsLocation
(
LOCATION_EXTRA
)
return
se
~=
e
:
GetLabelObject
()
and
c
:
IsLocation
(
LOCATION_EXTRA
)
...
...
expansions/script/c65140032.lua
View file @
0abfac43
...
@@ -89,7 +89,7 @@ function s.scop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -89,7 +89,7 @@ function s.scop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSpecialSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSpecialSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
c
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
s
g
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
s
c
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
(
)
Duel
.
SpecialSummonRule
(
tp
,
sc
)
Duel
.
SpecialSummonRule
(
tp
,
sc
)
end
end
end
end
...
...
expansions/script/c7463195.lua
View file @
0abfac43
...
@@ -144,6 +144,8 @@ function s.PendCondition()
...
@@ -144,6 +144,8 @@ function s.PendCondition()
return
g
:
IsExists
(
s
.
PConditionFilter
,
1
,
nil
,
e
,
tp
,
lscale
,
rscale
,
eset
)
return
g
:
IsExists
(
s
.
PConditionFilter
,
1
,
nil
,
e
,
tp
,
lscale
,
rscale
,
eset
)
end
end
end
end
local
KOISHI_CHECK
=
false
if
Card
.
SetCardData
then
KOISHI_CHECK
=
true
end
function
s
.
PendOperation
()
function
s
.
PendOperation
()
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
sg
,
og
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
sg
,
og
)
local
rpz
=
Duel
.
GetMatchingGroup
(
s
.
rpzfilter
,
tp
,
LOCATION_SZONE
,
0
,
nil
):
GetFirst
()
local
rpz
=
Duel
.
GetMatchingGroup
(
s
.
rpzfilter
,
tp
,
LOCATION_SZONE
,
0
,
nil
):
GetFirst
()
...
@@ -205,64 +207,106 @@ function s.PendOperation()
...
@@ -205,64 +207,106 @@ function s.PendOperation()
aux
.
PendulumChecklist
=
aux
.
PendulumChecklist
|
(
0x1
<<
tp
)
aux
.
PendulumChecklist
=
aux
.
PendulumChecklist
|
(
0x1
<<
tp
)
end
end
sg
:
Merge
(
g
)
sg
:
Merge
(
g
)
if
KOISHI_CHECK
then
c
:
SetCardData
(
CARDDATA_LSCALE
,
6
)
rpz
:
SetCardData
(
CARDDATA_LSCALE
,
8
)
end
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
Duel
.
HintSelection
(
Group
.
FromCards
(
rpz
))
Duel
.
HintSelection
(
Group
.
FromCards
(
rpz
))
--
--
local
spellg
=
sg
:
Filter
(
s
.
spellfilter
,
nil
)
local
spellg
=
sg
:
Filter
(
s
.
spellfilter
,
nil
)
local
exgc
=
sg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_EXTRA
)
local
exgc
=
sg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_EXTRA
)
for
tc
in
aux
.
Next
(
spellg
)
do
for
tc
in
aux
.
Next
(
spellg
)
do
--spsummon limit
--spsummon limit
--local e0=Effect.CreateEffect(tc)
--local e0=Effect.CreateEffect(tc)
--e0:SetType(EFFECT_TYPE_SINGLE)
--e0:SetType(EFFECT_TYPE_SINGLE)
--e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+ EFFECT_FLAG_UNCOPYABLE)
--e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+ EFFECT_FLAG_UNCOPYABLE)
--e0:SetCode(EFFECT_SPSUMMON_CONDITION)
--e0:SetCode(EFFECT_SPSUMMON_CONDITION)
--e0:SetReset(RESET_EVENT+0x47c0000)
--e0:SetReset(RESET_EVENT+0x47c0000)
--e0:SetValue(aux.penlimit)
--e0:SetValue(aux.penlimit)
--tc:RegisterEffect(e0,true)
--tc:RegisterEffect(e0,true)
--local mt=getmetatable(tc)
--local mt=getmetatable(tc)
--local loc=mt.psummonable_location
--local loc=mt.psummonable_location
--if loc==nil then
--if loc==nil then
-- loc=0xff
-- loc=0xff
-- mt.psummonable_location=loc
-- mt.psummonable_location=loc
--end
--end
local
zone
=
0xff
if
KOISHI_CHECK
then
if
exgc
>=
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
TYPE_PENDULUM
)
then
tc
:
RegisterFlagEffect
(
id
+
2
,
0
,
0
,
1
,
tc
:
GetOriginalType
())
local
lzone
=
Duel
.
GetLinkedZone
(
tp
)
tc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_NORMAL
+
TYPE_MONSTER
)
zone
=
zone
~
lzone
end
end
local
e1
=
Effect
.
CreateEffect
(
tc
)
local
e1
=
Effect
.
CreateEffect
(
tc
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x47c0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x47c0000
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_ADD_RACE
)
e2
:
SetCode
(
EFFECT_ADD_RACE
)
e2
:
SetValue
(
RACE_SPELLCASTER
)
e2
:
SetValue
(
RACE_SPELLCASTER
)
tc
:
RegisterEffect
(
e2
,
true
)
tc
:
RegisterEffect
(
e2
,
true
)
local
e3
=
e1
:
Clone
()
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e3
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e3
:
SetValue
(
ATTRIBUTE_LIGHT
)
e3
:
SetValue
(
ATTRIBUTE_LIGHT
)
tc
:
RegisterEffect
(
e3
,
true
)
tc
:
RegisterEffect
(
e3
,
true
)
local
e4
=
e1
:
Clone
()
local
e4
=
e1
:
Clone
()
e4
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e4
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e4
:
SetValue
(
0
)
e4
:
SetValue
(
0
)
tc
:
RegisterEffect
(
e4
,
true
)
tc
:
RegisterEffect
(
e4
,
true
)
local
e5
=
e1
:
Clone
()
local
e5
=
e1
:
Clone
()
e5
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
e5
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
e5
:
SetValue
(
0
)
e5
:
SetValue
(
0
)
tc
:
RegisterEffect
(
e5
,
true
)
tc
:
RegisterEffect
(
e5
,
true
)
local
e6
=
e1
:
Clone
()
local
e6
=
e1
:
Clone
()
e6
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e6
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e6
:
SetValue
(
7
)
e6
:
SetValue
(
7
)
tc
:
RegisterEffect
(
e6
,
true
)
tc
:
RegisterEffect
(
e6
,
true
)
--tc:SetStatus(STATUS_EFFECT_ENABLED,true)
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
,
zone
)
--tc:SetStatus(STATUS_PROC_COMPLETE,true)
--tc:SetStatus(STATUS_SUMMONING,true)
if
not
KOISHI_CHECK
then
local
zone
=
0xff
if
exgc
>=
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
TYPE_PENDULUM
)
then
local
lzone
=
Duel
.
GetLinkedZone
(
tp
)
zone
=
zone
~
lzone
end
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
,
zone
)
end
end
if
#
spellg
>
0
and
KOISHI_CHECK
then
--summon cost
local
ge0
=
Effect
.
CreateEffect
(
c
)
ge0
:
SetType
(
EFFECT_TYPE_FIELD
)
ge0
:
SetCode
(
EFFECT_SPSUMMON_COST
)
ge0
:
SetTargetRange
(
LOCATION_HAND
,
0
)
ge0
:
SetLabelObject
(
spellg
)
ge0
:
SetCost
(
s
.
costchk
)
ge0
:
SetOperation
(
s
.
costop
)
Duel
.
RegisterEffect
(
ge0
,
tp
)
spellg
:
KeepAlive
()
end
if
not
KOISHI_CHECK
then
Duel
.
SpecialSummonComplete
()
end
end
Duel
.
SpecialSummonComplete
()
--Duel.SpecialSummon(spellg,SUMMON_TYPE_PENDULUM,tp,tp,true,false,POS_FACEUP)
--Duel.SpecialSummon(spellg,SUMMON_TYPE_PENDULUM,tp,tp,true,false,POS_FACEUP)
end
end
end
end
function
s
.
costchk
(
e
,
c
,
tp
)
return
true
end
function
s
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetLabelObject
()
if
#
g
>
0
then
for
tc
in
aux
.
Next
(
g
)
do
if
tc
:
GetFlagEffect
(
id
+
2
)
~=
0
then
tc
:
SetCardData
(
CARDDATA_TYPE
,
tc
:
GetFlagEffectLabel
(
id
+
2
))
tc
:
ResetFlagEffect
(
id
+
2
)
end
end
end
e
:
Reset
()
end
function
s
.
spellfilter
(
c
)
function
s
.
spellfilter
(
c
)
return
c
:
IsSetCard
(
0x106e
)
and
c
:
IsType
(
TYPE_SPELL
)
return
c
:
IsSetCard
(
0x106e
)
and
c
:
IsType
(
TYPE_SPELL
)
end
end
expansions/script/c91030020.lua
View file @
0abfac43
...
@@ -26,17 +26,17 @@ function c91030020.initial_effect(c)
...
@@ -26,17 +26,17 @@ function c91030020.initial_effect(c)
e2
:
SetOperation
(
c91030020
.
spop2
)
e2
:
SetOperation
(
c91030020
.
spop2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c91030020
.
lfilter
(
c
)
return
c
:
IsLinkSummonable
(
nil
)
end
function
c91030020
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c91030020
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsLinkSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsLinkSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c91030020
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c91030020
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c91030020
.
lfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsLinkSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
nil
)
Duel
.
LinkSummon
(
tp
,
g
:
GetFirst
(),
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
LinkSummon
(
tp
,
tc
,
nil
)
end
end
end
function
c91030020
.
cfilter
(
c
,
tp
,
rp
)
function
c91030020
.
cfilter
(
c
,
tp
,
rp
)
return
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousControler
(
tp
)
and
bit
.
band
(
c
:
GetPreviousTypeOnField
(),
TYPE_LINK
)
~=
0
return
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousControler
(
tp
)
and
bit
.
band
(
c
:
GetPreviousTypeOnField
(),
TYPE_LINK
)
~=
0
...
...
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