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
ba8315b1
Commit
ba8315b1
authored
Dec 23, 2021
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e044bf51
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
43 deletions
+30
-43
expansions/script/c13254061.lua
expansions/script/c13254061.lua
+2
-2
expansions/script/c13254066.lua
expansions/script/c13254066.lua
+1
-1
expansions/script/c15000183.lua
expansions/script/c15000183.lua
+19
-21
expansions/script/c33400435.lua
expansions/script/c33400435.lua
+1
-1
expansions/script/c53702500.lua
expansions/script/c53702500.lua
+1
-1
expansions/script/c60000038.lua
expansions/script/c60000038.lua
+4
-16
expansions/script/c9910518.lua
expansions/script/c9910518.lua
+2
-1
No files found.
expansions/script/c13254061.lua
View file @
ba8315b1
...
@@ -43,11 +43,11 @@ function cm.spcon(e,c)
...
@@ -43,11 +43,11 @@ function cm.spcon(e,c)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
if
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
then
return
false
end
if
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
then
return
false
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
c
:
GetControler
()
,
LOCATION_GRAVE
,
0
,
1
,
c
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
)
end
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_
MZON
E
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_
GRAV
E
,
0
,
1
,
1
,
c
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
end
function
cm
.
tdfilter1
(
c
)
function
cm
.
tdfilter1
(
c
)
...
...
expansions/script/c13254066.lua
View file @
ba8315b1
...
@@ -29,7 +29,7 @@ function cm.tdfilter(c)
...
@@ -29,7 +29,7 @@ function cm.tdfilter(c)
return
#
tama
.
tamas_getElements
(
c
)
>
0
and
c
:
IsAbleToDeck
()
return
#
tama
.
tamas_getElements
(
c
)
>
0
and
c
:
IsAbleToDeck
()
end
end
function
cm
.
thfilter
(
c
,
el
)
function
cm
.
thfilter
(
c
,
el
)
return
c
:
IsAbleToHand
()
and
c
:
IsSetCard
(
0x3356
)
and
tamas_isAllElementsNotAbove
(
tama
.
tamas_getElements
(
c
),
el
)
return
c
:
IsAbleToHand
()
and
c
:
IsSetCard
(
0x3356
)
and
tama
.
tama
s_isAllElementsNotAbove
(
tama
.
tamas_getElements
(
c
),
el
)
end
end
function
cm
.
smtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
smtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
--if chk==0 then return Duel.IsExistingTarget(cm.tdfilter,tp,0,LOCATION_GRAVE,1,nil) end
--if chk==0 then return Duel.IsExistingTarget(cm.tdfilter,tp,0,LOCATION_GRAVE,1,nil) end
...
...
expansions/script/c15000183.lua
View file @
ba8315b1
local
m
=
15000183
local
m
=
15000183
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"上古星龙"
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
c
:
EnableCounterPermit
(
0xf3
)
c
:
EnableCounterPermit
(
0xf3
)
--xyz summon
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
11
,
3
)
aux
.
AddXyzProcedure
(
c
,
nil
,
11
,
3
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--special summon rule
--special summon rule
local
e
0
=
Effect
.
CreateEffect
(
c
)
local
e
6
=
Effect
.
CreateEffect
(
c
)
e
0
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e
6
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e
0
:
SetType
(
EFFECT_TYPE_FIELD
)
e
6
:
SetType
(
EFFECT_TYPE_FIELD
)
e
0
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e
6
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e
0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e
6
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e
0
:
SetCountLimit
(
1
,
15000183
+
EFFECT_COUNT_CODE_DUEL
)
e
6
:
SetCountLimit
(
1
,
15000183
+
EFFECT_COUNT_CODE_DUEL
)
e
0
:
SetRange
(
LOCATION_EXTRA
)
e
6
:
SetRange
(
LOCATION_EXTRA
)
e
0
:
SetCondition
(
cm
.
RkXyzCondition
(
cm
.
sprfilter
,
nil
,
cm
.
sprop
))
e
6
:
SetCondition
(
cm
.
RkXyzCondition
(
cm
.
sprfilter
,
nil
,
cm
.
sprop
))
e
0
:
SetTarget
(
cm
.
RkXyzTarget
(
cm
.
sprfilter
,
nil
,
cm
.
sprop
))
e
6
:
SetTarget
(
cm
.
RkXyzTarget
(
cm
.
sprfilter
,
nil
,
cm
.
sprop
))
e
0
:
SetOperation
(
cm
.
RkXyzOperation
(
cm
.
sprfilter
,
nil
,
cm
.
sprop
))
e
6
:
SetOperation
(
cm
.
RkXyzOperation
(
cm
.
sprfilter
,
nil
,
cm
.
sprop
))
e
0
:
SetValue
(
SUMMON_TYPE_XYZ
)
e
6
:
SetValue
(
SUMMON_TYPE_XYZ
)
c
:
RegisterEffect
(
e
0
)
c
:
RegisterEffect
(
e
6
)
--add counter
--add counter
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_COUNTER
)
e1
:
SetCategory
(
CATEGORY_COUNTER
)
e1
:
SetType
(
EFFECT_TYPE_
SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_
MOVE
)
e1
:
SetCode
(
EVENT_
ADJUST
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
cm
.
ctcon
)
e1
:
SetCondition
(
cm
.
ctcon
)
e1
:
SetOperation
(
cm
.
ctop
)
e1
:
SetOperation
(
cm
.
ctop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
Clone
(
e1
)
local
e2
=
Effect
.
Clone
(
e1
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_FLIP
)
e2
:
SetCode
(
EVENT_FLIP
)
e2
:
SetCondition
(
cm
.
ct2con
)
e2
:
SetCondition
(
cm
.
ct2con
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -133,17 +134,14 @@ function cm.RkXyzOperation(alterf,desc,op)
...
@@ -133,17 +134,14 @@ function cm.RkXyzOperation(alterf,desc,op)
mg
:
DeleteGroup
()
mg
:
DeleteGroup
()
end
end
end
end
function
cm
.
ctcon
(
e
)
function
cm
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
and
not
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_MZONE
)
return
bit
.
band
(
c
:
GetPreviousLocation
(),
LOCATION_MZONE
)
==
0
and
c
:
IsLocation
(
LOCATION_MZONE
)
end
end
function
cm
.
ct2con
(
e
)
function
cm
.
ct2con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
true
return
true
end
end
function
cm
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tp
=
c
:
GetControler
()
c
:
AddCounter
(
0xf3
,
12
)
c
:
AddCounter
(
0xf3
,
12
)
end
end
function
cm
.
defilter
(
c
)
function
cm
.
defilter
(
c
)
...
...
expansions/script/c33400435.lua
View file @
ba8315b1
...
@@ -99,7 +99,7 @@ function c33400435.cccfilter2(c)
...
@@ -99,7 +99,7 @@ function c33400435.cccfilter2(c)
end
end
function
c33400435
.
actcon
(
e
)
function
c33400435
.
actcon
(
e
)
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
return
tc
:
IsFaceup
()
and
(
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
or
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
())
and
(
tc
:
IsSetCard
(
0x341
)
or
(
Duel
.
IsExistingMatchingCard
(
c33400435
.
cccfilter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
c33400435
.
cccfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)))
return
tc
and
tc
:
IsFaceup
()
and
(
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
or
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
())
and
(
tc
:
IsSetCard
(
0x341
)
or
(
Duel
.
IsExistingMatchingCard
(
c33400435
.
cccfilter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
c33400435
.
cccfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)))
end
end
function
c33400435
.
eqcon
(
e
)
function
c33400435
.
eqcon
(
e
)
...
...
expansions/script/c53702500.lua
View file @
ba8315b1
...
@@ -214,7 +214,7 @@ function cm.GraveActCostOp(e,tp,eg,ep,ev,re,r,rp)
...
@@ -214,7 +214,7 @@ function cm.GraveActCostOp(e,tp,eg,ep,ev,re,r,rp)
Duel
.
MoveToField
(
e
:
GetHandler
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
e
:
GetHandler
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
end
function
cm
.
FanippetTrapSPCondition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
FanippetTrapSPCondition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
or
ep
==
1
-
tp
return
rp
==
1
-
tp
or
ep
==
1
-
tp
or
re
:
GetHandler
():
IsCode
(
53716006
)
end
end
function
cm
.
FanippetTrapSPCost
(
code
)
function
cm
.
FanippetTrapSPCost
(
code
)
return
return
...
...
expansions/script/c60000038.lua
View file @
ba8315b1
...
@@ -17,26 +17,19 @@ function c60000038.initial_effect(c)
...
@@ -17,26 +17,19 @@ function c60000038.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetCondition
(
c60000038
.
thcon
)
e3
:
SetTarget
(
c60000038
.
thtg
)
e3
:
SetTarget
(
c60000038
.
thtg
)
e3
:
SetOperation
(
c60000038
.
thop
)
e3
:
SetOperation
(
c60000038
.
thop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
cm
.
aclimit
(
e
,
re
,
tp
)
function
c60000038
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
GetLevel
()
<=
e
:
GetHandler
():
GetLevel
()
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
GetLevel
()
<=
e
:
GetHandler
():
GetLevel
()
end
function
c60000038
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
function
c60000038
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xfc
)
and
not
c
:
IsCode
(
60000038
)
and
c
:
IsAbleToHand
()
end
end
function
c60000038
.
filter
(
c
,
e
,
tp
)
function
c60000038
.
filter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
CheckFusionMaterial
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
and
c
:
IsSetCard
(
0x625
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
CheckFusionMaterial
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
and
c
:
IsSetCard
(
0x625
)
end
end
function
c60000038
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60000038
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
ux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_FMATERIAL
)
if
chk
==
0
then
return
a
ux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_FMATERIAL
)
and
Duel
.
IsExistingMatchingCard
(
c60000038
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c60000038
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
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
c60000038
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60000038
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -50,8 +43,3 @@ function c60000038.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,8 +43,3 @@ function c60000038.thop(e,tp,eg,ep,ev,re,r,rp)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
Duel
.
Hint
(
HINT_SOUND
,
0
,
aux
.
Stringid
(
60000038
,
1
))
Duel
.
Hint
(
HINT_SOUND
,
0
,
aux
.
Stringid
(
60000038
,
1
))
end
end
expansions/script/c9910518.lua
View file @
ba8315b1
...
@@ -25,9 +25,10 @@ function c9910518.initial_effect(c)
...
@@ -25,9 +25,10 @@ function c9910518.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DISABLE
)
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DISABLE
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
9910533
)
e3
:
SetCountLimit
(
1
,
9910533
)
e3
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e3
:
SetHintTiming
(
TIMING_DAMAGE_STEP
,
TIMING_DAMAGE_STEP
+
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e3
:
SetCondition
(
c9910518
.
atkcon
)
e3
:
SetCondition
(
c9910518
.
atkcon
)
e3
:
SetCost
(
c9910518
.
atkcost
)
e3
:
SetCost
(
c9910518
.
atkcost
)
e3
:
SetTarget
(
c9910518
.
atktg
)
e3
:
SetTarget
(
c9910518
.
atktg
)
...
...
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