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
30b034a5
Commit
30b034a5
authored
May 02, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c7893946
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
336 additions
and
29 deletions
+336
-29
expansions/script/c250000000.lua
expansions/script/c250000000.lua
+1
-8
expansions/script/c29005360.lua
expansions/script/c29005360.lua
+292
-2
expansions/script/c29036046.lua
expansions/script/c29036046.lua
+2
-2
expansions/script/c40009154.lua
expansions/script/c40009154.lua
+3
-3
expansions/script/c98920088.lua
expansions/script/c98920088.lua
+1
-0
expansions/script/c98920550.lua
expansions/script/c98920550.lua
+1
-0
expansions/script/c98940010.lua
expansions/script/c98940010.lua
+1
-1
expansions/script/c9910811.lua
expansions/script/c9910811.lua
+1
-1
expansions/script/c9910894.lua
expansions/script/c9910894.lua
+34
-12
No files found.
expansions/script/c250000000.lua
View file @
30b034a5
--卡通风暴密码人
function
c250000000
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
15259703
)
c
:
EnableReviveLimit
()
--special summon
--destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -95,12 +94,6 @@ end
function
c250000000
.
atlimit
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_TOON
)
or
c
:
IsFacedown
()
end
function
c250000000
.
atklimit
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e
:
GetHandler
():
RegisterEffect
(
e1
)
end
expansions/script/c29005360.lua
View file @
30b034a5
This diff is collapsed.
Click to expand it.
expansions/script/c29036046.lua
View file @
30b034a5
...
...
@@ -37,6 +37,7 @@ function cm.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetCountLimit
(
1
,
m
)
e3
:
SetCondition
(
cm
.
ArcKnightPCardCheck
)
e3
:
SetCode
(
29036036
)
e3
:
SetValue
(
function
()
return
LOCATION_DECK
,
cm
.
ArcKnightPCardFilter
,
1
end
)
...
...
@@ -85,8 +86,7 @@ function cm.ctlop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetControl
(
c
,
1
-
tp
,
PHASE_END
,
2
)
then
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
tgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
,
c
:
GetSequence
())
if
g
:
GetCount
()
>
0
then
local
og
=
Duel
.
GetOperatedGroup
()
for
tc
in
aux
.
Next
(
og
)
do
for
tc
in
aux
.
Next
(
g
)
do
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
...
...
expansions/script/c40009154.lua
View file @
30b034a5
...
...
@@ -113,12 +113,12 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
2
,
2
,
REASON_COST
+
REASON_DISCARD
)
end
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
PLAYER_ALL
,
LOCATION_MZONE
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
1
-
tp
,
LOCATION_MZONE
)
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGrave
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
...
...
expansions/script/c98920088.lua
View file @
30b034a5
...
...
@@ -38,6 +38,7 @@ function c98920088.initial_effect(c)
e1
:
SetOperation
(
c98920088
.
disop
)
c
:
RegisterEffect
(
e1
)
end
aux
.
xyz_number
[
98920088
]
=
55
function
c98920088
.
indtg
(
e
,
c
)
return
c
:
IsDefensePos
()
end
...
...
expansions/script/c98920550.lua
View file @
30b034a5
...
...
@@ -29,6 +29,7 @@ function c98920550.initial_effect(c)
e3
:
SetOperation
(
c98920550
.
disop
)
c
:
RegisterEffect
(
e3
)
end
aux
.
xyz_number
[
98920550
]
=
39
function
c98920550
.
ovfilter
(
c
)
local
rk
=
c
:
GetRank
()
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsCode
(
52653092
,
56832966
,
86532744
,
56840427
)
...
...
expansions/script/c98940010.lua
View file @
30b034a5
...
...
@@ -93,7 +93,7 @@ function c98940010.operation2(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c98940010
.
sumlimit
(
e
,
c
,
se
,
sump
,
sumtype
,
sumpos
,
targetp
)
return
se
and
se
:
GetHandler
():
IsCode
(
98940010
)
and
c
:
IsCode
(
e
:
GetLabel
())
return
c
:
IsCode
(
e
:
GetLabel
())
end
function
c98940010
.
sumlimit1
(
e
,
c
)
return
c
:
IsCode
(
e
:
GetLabel
())
...
...
expansions/script/c9910811.lua
View file @
30b034a5
...
...
@@ -65,7 +65,7 @@ function c9910811.racop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CHANGE_RACE
)
e1
:
SetTargetRange
(
OCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetTargetRange
(
L
OCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetValue
(
e
:
GetLabel
())
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
...
expansions/script/c9910894.lua
View file @
30b034a5
...
...
@@ -35,7 +35,7 @@ function c9910894.initial_effect(c)
c
:
RegisterEffect
(
e4
)
--destroy
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetCategory
(
CATEGORY_
DESTROY
+
CATEGORY_REMOVE
+
CATEGORY_COUNTER
)
e5
:
SetCategory
(
CATEGORY_
TOHAND
+
CATEGORY_COUNTER
)
e5
:
SetType
(
EFFECT_TYPE_IGNITION
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -57,16 +57,37 @@ end
function
c9910894
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
g
=
Duel
.
GetMatchingGroup
(
c9910894
.
tdfilter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
g
:
CheckSubGroup
(
aux
.
drccheck
,
2
,
2
)
end
if
chk
==
0
then
return
#
g
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
drccheck
,
false
,
2
,
4
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
drccheck
,
false
,
1
,
4
)
Duel
.
SetTargetCard
(
sg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
sg
,
sg
:
GetCount
(),
0
,
0
)
end
function
c9910894
.
posfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCanTurnSet
()
end
function
c9910894
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
tg
:
GetCount
()
<=
0
then
return
end
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
if
tg
:
GetCount
()
>
0
then
local
ct
=
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
local
g
=
Duel
.
GetOperatedGroup
()
if
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
Duel
.
ShuffleDeck
(
tp
)
end
local
b1
=
ct
==
2
and
Duel
.
IsExistingMatchingCard
(
c9910894
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
local
b2
=
ct
==
3
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
TYPE_MONSTER
)
local
b3
=
ct
==
4
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
1
if
(
b1
or
b2
or
b3
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
14001209
,
1
))
then
if
b1
then
local
pg
=
Duel
.
GetMatchingGroup
(
c9910894
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
Duel
.
ChangePosition
(
pg
,
POS_FACEDOWN_DEFENSE
)
elseif
b2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsType
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
TYPE_MONSTER
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
else
Duel
.
DiscardHand
(
1
-
tp
,
nil
,
2
,
2
,
REASON_EFFECT
+
REASON_DISCARD
)
end
end
end
end
function
c9910894
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
...
...
@@ -90,18 +111,19 @@ function c9910894.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0x1
,
3
,
REASON_COST
)
end
function
c9910894
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleTo
Remove
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleTo
Remove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleTo
Hand
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleTo
Hand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
IsCanAddCounter
(
tp
,
0x1
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleTo
Remove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
REMOVE
,
g
,
1
,
0
,
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleTo
Hand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
COUNTER
,
nil
,
1
,
0
,
0x1
)
end
function
c9910894
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
,
LOCATION_REMOVED
)
~=
0
and
c
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
BreakEffect
()
c
:
AddCounter
(
0x1
,
1
)
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