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
Huangnan
no81cards
Commits
c7893946
Commit
c7893946
authored
May 01, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4441c44a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
32 additions
and
26 deletions
+32
-26
expansions/script/c14000096.lua
expansions/script/c14000096.lua
+2
-2
expansions/script/c15000623.lua
expansions/script/c15000623.lua
+6
-3
expansions/script/c53759001.lua
expansions/script/c53759001.lua
+4
-4
expansions/script/c53759002.lua
expansions/script/c53759002.lua
+4
-4
expansions/script/c53759003.lua
expansions/script/c53759003.lua
+4
-4
expansions/script/c53759004.lua
expansions/script/c53759004.lua
+4
-4
expansions/script/c53759012.lua
expansions/script/c53759012.lua
+4
-4
expansions/script/c53799141.lua
expansions/script/c53799141.lua
+3
-0
expansions/script/c82204241.lua
expansions/script/c82204241.lua
+1
-1
No files found.
expansions/script/c14000096.lua
View file @
c7893946
...
...
@@ -35,12 +35,12 @@ function cm.BRAVE(c)
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
return
m
and
m
.
named_with_brave
end
function
cm
.
setfilter
(
c
,
e
,
tp
)
function
cm
.
setfilter
1
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetSequence
()
<
5
end
function
cm
.
actcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
not
Duel
.
IsExistingMatchingCard
(
cm
.
setfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
return
not
Duel
.
IsExistingMatchingCard
(
cm
.
setfilter
1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
end
function
cm
.
setfilter
(
c
)
return
cm
.
BRAVE
(
c
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
...
...
expansions/script/c15000623.lua
View file @
c7893946
...
...
@@ -26,7 +26,9 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetLP
(
e
:
GetHandlerPlayer
())
<=
2000
local
c
=
e
:
GetHandler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLP
(
tp
)
<=
2000
end
function
cm
.
tkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -58,9 +60,9 @@ function cm.tkop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCondition
(
cm
.
descon
)
e2
:
SetOperation
(
cm
.
desop
)
Duel
.
RegisterEffect
(
e2
,
tp
)
token
:
RegisterFlagEffect
(
15000623
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
Duel
.
SpecialSummonComplete
()
end
token
:
RegisterFlagEffect
(
15000623
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
Duel
.
SpecialSummonComplete
()
end
end
function
cm
.
srfilter
(
c
)
...
...
@@ -72,6 +74,7 @@ function cm.srop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
c
:
GetPreviousControler
(),
HINTMSG_ATOHAND
)
local
tc
=
Duel
.
SelectMatchingCard
(
1
-
c
:
GetPreviousControler
(),
cm
.
srfilter
,
1
-
c
:
GetPreviousControler
(),
LOCATION_DECK
,
0
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
c
:
GetPreviousControler
(),
tc
)
end
e
:
Reset
()
end
...
...
expansions/script/c53759001.lua
View file @
c7893946
...
...
@@ -801,7 +801,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
==
4
)
else
b
=
cm
[
35
](
sc
,
int
,
...
)
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
==
lv
)
else
b
=
cm
[
35
](
sc
,
int
,
...
)
end
return
b
end
cm
[
36
]
=
Card
.
IsLevelAbove
...
...
@@ -818,7 +818,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
<=
4
)
else
b
=
cm
[
36
](
sc
,
int
)
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
<=
lv
)
else
b
=
cm
[
36
](
sc
,
int
)
end
return
b
end
cm
[
37
]
=
Card
.
IsLevelBelow
...
...
@@ -835,7 +835,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
>=
4
)
else
b
=
cm
[
37
](
sc
,
int
)
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
>=
lv
)
else
b
=
cm
[
37
](
sc
,
int
)
end
return
b
end
cm
[
38
]
=
Card
.
GetLevel
...
...
@@ -852,7 +852,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
4
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
lv
end
return
b
end
cm
[
39
]
=
Card
.
IsAttack
...
...
expansions/script/c53759002.lua
View file @
c7893946
...
...
@@ -784,7 +784,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
==
4
)
else
b
=
cm
[
35
](
sc
,
int
,
...
)
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
==
lv
)
else
b
=
cm
[
35
](
sc
,
int
,
...
)
end
return
b
end
cm
[
36
]
=
Card
.
IsLevelAbove
...
...
@@ -801,7 +801,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
<=
4
)
else
b
=
cm
[
36
](
sc
,
int
)
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
<=
lv
)
else
b
=
cm
[
36
](
sc
,
int
)
end
return
b
end
cm
[
37
]
=
Card
.
IsLevelBelow
...
...
@@ -818,7 +818,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
>=
4
)
else
b
=
cm
[
37
](
sc
,
int
)
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
>=
lv
)
else
b
=
cm
[
37
](
sc
,
int
)
end
return
b
end
cm
[
38
]
=
Card
.
GetLevel
...
...
@@ -835,7 +835,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
4
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
lv
end
return
b
end
cm
[
39
]
=
Card
.
IsAttack
...
...
expansions/script/c53759003.lua
View file @
c7893946
...
...
@@ -784,7 +784,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
==
4
)
else
b
=
cm
[
35
](
sc
,
int
,
...
)
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
==
lv
)
else
b
=
cm
[
35
](
sc
,
int
,
...
)
end
return
b
end
cm
[
36
]
=
Card
.
IsLevelAbove
...
...
@@ -801,7 +801,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
<=
4
)
else
b
=
cm
[
36
](
sc
,
int
)
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
<=
lv
)
else
b
=
cm
[
36
](
sc
,
int
)
end
return
b
end
cm
[
37
]
=
Card
.
IsLevelBelow
...
...
@@ -818,7 +818,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
>=
4
)
else
b
=
cm
[
37
](
sc
,
int
)
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
>=
lv
)
else
b
=
cm
[
37
](
sc
,
int
)
end
return
b
end
cm
[
38
]
=
Card
.
GetLevel
...
...
@@ -835,7 +835,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
4
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
lv
end
return
b
end
cm
[
39
]
=
Card
.
IsAttack
...
...
expansions/script/c53759004.lua
View file @
c7893946
...
...
@@ -784,7 +784,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
==
4
)
else
b
=
cm
[
35
](
sc
,
int
,
...
)
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
==
lv
)
else
b
=
cm
[
35
](
sc
,
int
,
...
)
end
return
b
end
cm
[
36
]
=
Card
.
IsLevelAbove
...
...
@@ -801,7 +801,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
<=
4
)
else
b
=
cm
[
36
](
sc
,
int
)
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
<=
lv
)
else
b
=
cm
[
36
](
sc
,
int
)
end
return
b
end
cm
[
37
]
=
Card
.
IsLevelBelow
...
...
@@ -818,7 +818,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
>=
4
)
else
b
=
cm
[
37
](
sc
,
int
)
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
>=
lv
)
else
b
=
cm
[
37
](
sc
,
int
)
end
return
b
end
cm
[
38
]
=
Card
.
GetLevel
...
...
@@ -835,7 +835,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
4
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
lv
end
return
b
end
cm
[
39
]
=
Card
.
IsAttack
...
...
expansions/script/c53759012.lua
View file @
c7893946
...
...
@@ -779,7 +779,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
==
4
)
else
b
=
cm
[
35
](
sc
,
int
,
...
)
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
==
lv
)
else
b
=
cm
[
35
](
sc
,
int
,
...
)
end
return
b
end
cm
[
36
]
=
Card
.
IsLevelAbove
...
...
@@ -796,7 +796,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
<=
4
)
else
b
=
cm
[
36
](
sc
,
int
)
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
<=
lv
)
else
b
=
cm
[
36
](
sc
,
int
)
end
return
b
end
cm
[
37
]
=
Card
.
IsLevelBelow
...
...
@@ -813,7 +813,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
>=
4
)
else
b
=
cm
[
37
](
sc
,
int
)
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
(
int
>=
lv
)
else
b
=
cm
[
37
](
sc
,
int
)
end
return
b
end
cm
[
38
]
=
Card
.
GetLevel
...
...
@@ -830,7 +830,7 @@ function cm.initial_effect(c)
end
local
res1
=
ly
>
0
and
(
class
[
"Card_Prophecy_L_Check_"
..
ly
]
or
class
[
"Card_Prophecy_Certain_SP_"
..
ly
])
local
res2
=
Duel
.
GetFlagEffectLabel
(
0
,
53759000
)
==
0
and
not
sc
:
IsLocation
(
LOCATION_MZONE
)
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
4
end
if
lv
>
0
and
(
res1
or
res2
)
then
b
=
lv
end
return
b
end
cm
[
39
]
=
Card
.
IsAttack
...
...
expansions/script/c53799141.lua
View file @
c7893946
...
...
@@ -18,6 +18,9 @@ end
function
cm
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToDeck
()
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToDeck
()
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
Duel
.
GetCustomActivityCount
(
m
,
1
-
tp
,
ACTIVITY_CHAIN
)
>
0
then
...
...
expansions/script/c82204241.lua
View file @
c7893946
...
...
@@ -42,7 +42,7 @@ function cm.repfilter1(c,tp)
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
.
SetCard_01_YaoHu
end
function
cm
.
repfilter2
(
c
,
tp
)
return
c
:
IsOnField
()
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
return
c
:
IsOnField
()
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
Controler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
cm
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeck
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
repfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
eg
:
IsExists
(
cm
.
repfilter2
,
1
,
nil
,
tp
)
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