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
2bb5f11e
Commit
2bb5f11e
authored
Apr 08, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
25b76f81
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
84 additions
and
32 deletions
+84
-32
expansions/script/c11451486.lua
expansions/script/c11451486.lua
+2
-0
expansions/script/c11451537.lua
expansions/script/c11451537.lua
+7
-1
expansions/script/c11451580.lua
expansions/script/c11451580.lua
+6
-1
expansions/script/c14010308.lua
expansions/script/c14010308.lua
+11
-11
expansions/script/c29027255.lua
expansions/script/c29027255.lua
+1
-1
expansions/script/c29065500.lua
expansions/script/c29065500.lua
+43
-7
expansions/script/c29083691.lua
expansions/script/c29083691.lua
+1
-1
expansions/script/c33201358.lua
expansions/script/c33201358.lua
+8
-5
expansions/script/c67200610.lua
expansions/script/c67200610.lua
+5
-5
No files found.
expansions/script/c11451486.lua
View file @
2bb5f11e
...
...
@@ -178,6 +178,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
end
tc
:
CancelToGrave
()
Duel
.
Overlay
(
c
,
tc
)
end
if
#
tg
>
1
then
...
...
@@ -188,6 +189,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
end
tc
:
CancelToGrave
()
Duel
.
Overlay
(
c
,
tc
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
end
...
...
expansions/script/c11451537.lua
View file @
2bb5f11e
...
...
@@ -87,7 +87,13 @@ function cm.adcost(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
c
,
tp
,
c
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
#
g
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
sg
:
GetFirst
()
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
end
tc
:
CancelToGrave
()
Duel
.
Overlay
(
c
,
sg
)
end
function
cm
.
smfilter
(
c
)
...
...
expansions/script/c11451580.lua
View file @
2bb5f11e
...
...
@@ -61,7 +61,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
e
:
GetLabel
()
==
1
then
local
rc
=
re
:
GetHandler
()
if
c
:
IsImmuneToEffect
(
e
)
or
not
rc
:
IsRelateToEffect
(
re
)
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
r
c
:
IsImmuneToEffect
(
e
)
or
not
rc
:
IsRelateToEffect
(
re
)
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
rc
:
CancelToGrave
()
local
og
=
rc
:
GetOverlayGroup
()
if
#
og
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
end
...
...
@@ -80,8 +80,11 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
5
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVING
)
--e1:SetProperty(EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_PLAYER_TARGET)
--e1:SetTargetRange(0,1)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
cm
.
discon
)
e1
:
SetOperation
(
cm
.
disop
)
...
...
@@ -94,6 +97,8 @@ function cm.discon(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
e
:
SetProperty
(
0
)
e
:
Reset
()
end
function
cm
.
filter3
(
c
,
tp
)
return
c
:
IsCode
(
11451583
)
and
c
:
IsAbleToHand
()
...
...
expansions/script/c14010308.lua
View file @
2bb5f11e
...
...
@@ -7,26 +7,26 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DISABLE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
cm
.
limcon
)
e
5
:
SetTarget
(
cm
.
limtg
)
e
5
:
SetOperation
(
cm
.
limop
)
--
e1:SetCondition(cm.limcon)
e
1
:
SetTarget
(
cm
.
limtg
)
e
1
:
SetOperation
(
cm
.
limop
)
c
:
RegisterEffect
(
e1
)
--timing chk
if
cm
.
call
==
nil
then
cm
.
call
=
true
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e
3
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e
3
:
SetCondition
(
cm
.
callcon1
)
e
3
:
SetOperation
(
cm
.
callchk1
)
Duel
.
RegisterEffect
(
e
3
,
0
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e
2
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e
2
:
SetCondition
(
cm
.
callcon1
)
e
2
:
SetOperation
(
cm
.
callchk1
)
Duel
.
RegisterEffect
(
e
2
,
0
)
end
end
function
cm
.
limtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetChainLimit
(
cm
.
chainlm
)
end
function
cm
.
chainlm
(
e
,
rp
,
tp
)
function
cm
.
chainlm
(
r
e
,
rp
,
tp
)
return
re
:
GetHandler
():
IsOnField
()
end
function
cm
.
limop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -42,7 +42,7 @@ function cm.limop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
actcon
(
e
,
c
)
local
tp
=
e
:
GetOwnerPlayer
()
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
m
)
and
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
m
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
m
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
m
)
end
function
cm
.
aclimit
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
IsOnField
()
...
...
expansions/script/c29027255.lua
View file @
2bb5f11e
...
...
@@ -48,7 +48,7 @@ function c29027255.valcheck(e,c)
end
end
function
c29027255
.
thfilter
(
c
)
return
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
and
c
:
IsAbleToHand
()
and
(
c
:
IsType
(
TYPE_SPELL
)
or
c
:
IsType
(
TYPE_MONSTER
)
)
and
c
:
IsType
(
TYPE_RITUAL
)
return
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
and
c
:
IsAbleToHand
()
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsType
(
TYPE_RITUAL
)
end
function
c29027255
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
and
e
:
GetLabel
()
==
1
...
...
expansions/script/c29065500.lua
View file @
2bb5f11e
...
...
@@ -18,7 +18,10 @@ function c29065500.initial_effect(c)
e1
:
SetCountLimit
(
1
,
29065500
)
e1
:
SetTarget
(
c29065500
.
thtg
)
e1
:
SetOperation
(
c29065500
.
thop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
--copy
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
29065500
,
0
))
...
...
@@ -30,12 +33,45 @@ function c29065500.initial_effect(c)
e2
:
SetOperation
(
c29065500
.
coop
)
--c:RegisterEffect(e2)
--direct attack
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
c
:
RegisterEffect
(
e4
)
--to hand
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCategory
(
CATEGORY_TOHAND
)
e5
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCountLimit
(
1
)
e5
:
SetCondition
(
c29065500
.
thandcon
)
e5
:
SetOperation
(
c29065500
.
thandop
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e6
:
SetCategory
(
CATEGORY_TOHAND
)
e6
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetCountLimit
(
1
)
e6
:
SetCondition
(
c29065500
.
thandcon2
)
e6
:
SetOperation
(
c29065500
.
thandop2
)
c
:
RegisterEffect
(
e6
)
end
function
c29065500
.
thandcon
(
e
)
local
c
=
e
:
GetHandler
()
return
e
:
GetHandler
():
IsAbleToHand
()
and
e
:
GetHandler
():
GetFlagEffect
(
29065500
)
>
0
end
function
c29065500
.
thandop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_EFFECT
)
end
function
c29065500
.
thandcon2
(
e
)
local
c
=
e
:
GetHandler
()
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
GetAttackTarget
()
==
nil
and
c
:
GetEffectCount
(
EFFECT_DIRECT_ATTACK
)
<
2
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
end
function
c29065500
.
thandop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
29065500
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_BATTLE
,
0
,
1
)
end
function
c29065500
.
ntcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
...
...
expansions/script/c29083691.lua
View file @
2bb5f11e
...
...
@@ -71,7 +71,7 @@ function cm.initial_effect(c)
end
end
function
cm
.
spfilter
(
c
)
return
c
:
IsSetCard
(
0x87af
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsAbleToHand
()
return
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsAbleToHand
()
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c33201358.lua
View file @
2bb5f11e
...
...
@@ -51,18 +51,21 @@ function cm.atktg(e,c)
end
--e0
function
cm
.
tgfilter
(
c
)
return
c
:
IsAbleToGrave
()
and
not
c
:
IsLocation
(
LOCATION_FZONE
)
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
0
,
LOCATION_SZONE
)
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGrave
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
1
,
nil
)
if
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tgfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
if
Duel
.
SendtoGrave
(
g
,
nil
,
REASON_EFFECT
)
>
0
then
if
Duel
.
SendtoGrave
(
g
,
nil
,
REASON_EFFECT
)
>
0
and
g
:
GetFirst
():
IsLocation
(
LOCATION_GRAVE
)
then
Duel
.
BreakEffect
()
local
tc
=
g
:
GetFirst
()
local
typ
=
tc
:
GetOriginalType
()
...
...
expansions/script/c67200610.lua
View file @
2bb5f11e
...
...
@@ -64,15 +64,15 @@ function c67200610.teop(e,tp,eg,ep,ev,re,r,rp)
end
----
function
c67200610
.
refilter
(
c
)
return
c
:
Is
Type
(
TYPE_PENDULUM
)
and
c
:
IsReleasable
()
return
c
:
Is
Faceup
()
and
c
:
GetOriginalType
()
&
TYPE_PENDULUM
~=
0
end
function
c67200610
.
stcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_PZONE
)
local
b
=
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
local
loc
=
LOCATION_ONFIELD
if
ft
==
0
then
loc
=
LOCATION_PZONE
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c67200610
.
refilter
,
tp
,
loc
,
0
,
1
,
e
:
GetHandler
(),
e
,
tp
)
end
if
not
b
then
loc
=
LOCATION_PZONE
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c67200610
.
refilter
,
tp
,
loc
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c67200610
.
refilter
,
tp
,
loc
,
0
,
1
,
1
,
e
:
GetHandler
()
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c67200610
.
refilter
,
tp
,
loc
,
0
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c67200610
.
thfilter
(
c
)
...
...
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