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
ce21c584
Commit
ce21c584
authored
Dec 29, 2022
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
625f2ec1
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
10 deletions
+20
-10
expansions/script/c10173077.lua
expansions/script/c10173077.lua
+2
-3
expansions/script/c22070190.lua
expansions/script/c22070190.lua
+1
-1
expansions/script/c31406029.lua
expansions/script/c31406029.lua
+1
-1
expansions/script/c31406047.lua
expansions/script/c31406047.lua
+1
-1
expansions/script/c40009635.lua
expansions/script/c40009635.lua
+11
-1
expansions/script/c53799251.lua
expansions/script/c53799251.lua
+1
-1
expansions/script/c60000091.lua
expansions/script/c60000091.lua
+1
-0
expansions/script/c72100051.lua
expansions/script/c72100051.lua
+2
-2
No files found.
expansions/script/c10173077.lua
View file @
ce21c584
...
@@ -17,11 +17,10 @@ function c10173077.initial_effect(c)
...
@@ -17,11 +17,10 @@ function c10173077.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c10173077
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10173077
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
bool
=
e
:
GetHandler
():
IsStatus
(
STATUS_ACT_FROM_HAND
)
local
bool
=
e
:
GetHandler
():
IsStatus
(
STATUS_ACT_FROM_HAND
)
if
chk
==
0
then
return
not
bool
or
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
end
if
chk
==
0
then
return
not
bool
or
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
()
)
end
if
bool
then
if
bool
then
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
c
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
end
end
end
function
c10173077
.
cfilter
(
c
,
tp
)
function
c10173077
.
cfilter
(
c
,
tp
)
...
...
expansions/script/c22070190.lua
View file @
ce21c584
...
@@ -58,7 +58,7 @@ function c22070190.retop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,7 +58,7 @@ function c22070190.retop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c22070190
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c22070190
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
Get
MZoneCount
(
tp
,
e
:
GetHandler
(),
tp
,
LOCATION_REASON_TOFIELD
,
0x1f
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
22070131
,
0xa3
,
0x4011
,
2500
,
2000
,
8
,
RACE_DRAGON
,
ATTRIBUTE_WIND
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
22070131
,
0xa3
,
0x4011
,
2500
,
2000
,
8
,
RACE_DRAGON
,
ATTRIBUTE_WIND
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsDestructable
()
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
re
:
GetHandler
():
IsDestructable
()
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
...
...
expansions/script/c31406029.lua
View file @
ce21c584
...
@@ -96,7 +96,7 @@ end
...
@@ -96,7 +96,7 @@ end
function
cm
.
spcon
(
e
,
c
)
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
c
:
IsPosition
(
POS_FACEUP_DEFENSE
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
return
c
:
IsPosition
(
POS_FACEUP_DEFENSE
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
2
,
nil
)
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
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
2
,
2
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
2
,
2
,
REASON_COST
+
REASON_DISCARD
)
...
...
expansions/script/c31406047.lua
View file @
ce21c584
...
@@ -100,7 +100,7 @@ end
...
@@ -100,7 +100,7 @@ end
function
cm
.
spcon
(
e
,
c
)
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
c
:
IsPosition
(
POS_FACEUP_DEFENSE
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
return
c
:
IsPosition
(
POS_FACEUP_DEFENSE
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
2
,
nil
)
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
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
2
,
2
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
2
,
2
,
REASON_COST
+
REASON_DISCARD
)
...
...
expansions/script/c40009635.lua
View file @
ce21c584
...
@@ -9,7 +9,6 @@ end
...
@@ -9,7 +9,6 @@ end
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_TODECK
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetCost
(
cm
.
cost
)
...
@@ -55,6 +54,17 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -55,6 +54,17 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
1
))
+
1
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
1
))
+
1
end
end
e
:
SetLabel
(
op
)
e
:
SetLabel
(
op
)
if
op
==
0
then
e
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOGRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
elseif
op
==
1
then
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
elseif
op
==
2
then
e
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOGRAVE
+
CATEGORY_SPECIAL_SUMMON
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
op
=
e
:
GetLabel
()
local
op
=
e
:
GetLabel
()
...
...
expansions/script/c53799251.lua
View file @
ce21c584
...
@@ -18,7 +18,7 @@ function cm.initial_effect(c)
...
@@ -18,7 +18,7 @@ function cm.initial_effect(c)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_SUMMON_COST
)
e3
:
SetCode
(
EFFECT_SUMMON_COST
)
e3
:
SetProperty
(
0
)
e3
:
SetProperty
(
0
)
e3
:
SetTargetRange
(
0xff
,
0
xff
)
e3
:
SetTargetRange
(
0xff
,
0
)
e3
:
SetTarget
(
cm
.
costtg
)
e3
:
SetTarget
(
cm
.
costtg
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
local
e4
=
e3
:
Clone
()
...
...
expansions/script/c60000091.lua
View file @
ce21c584
...
@@ -76,6 +76,7 @@ end
...
@@ -76,6 +76,7 @@ end
function
cm
.
sprcon
(
e
,
c
)
function
cm
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
getfusionfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
tp
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
getfusionfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
tp
,
c
)
return
g
:
GetCount
()
>
0
return
g
:
GetCount
()
>
0
end
end
...
...
expansions/script/c72100051.lua
View file @
ce21c584
...
@@ -14,8 +14,8 @@ function c72100051.initial_effect(c)
...
@@ -14,8 +14,8 @@ function c72100051.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c72100051
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c72100051
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
Is
AbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
Is
Discardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
end
function
c72100051
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c72100051
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
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