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
c08bef22
Commit
c08bef22
authored
Jul 23, 2022
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
198942d4
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
80 additions
and
60 deletions
+80
-60
expansions/script/c11451531.lua
expansions/script/c11451531.lua
+1
-1
expansions/script/c11451532.lua
expansions/script/c11451532.lua
+1
-1
expansions/script/c11451533.lua
expansions/script/c11451533.lua
+1
-1
expansions/script/c11451534.lua
expansions/script/c11451534.lua
+2
-2
expansions/script/c11451535.lua
expansions/script/c11451535.lua
+1
-1
expansions/script/c11451536.lua
expansions/script/c11451536.lua
+1
-1
expansions/script/c11451583.lua
expansions/script/c11451583.lua
+20
-1
expansions/script/c11451644.lua
expansions/script/c11451644.lua
+1
-1
expansions/script/c11451650.lua
expansions/script/c11451650.lua
+1
-1
expansions/script/c11451717.lua
expansions/script/c11451717.lua
+3
-3
expansions/script/c13254072.lua
expansions/script/c13254072.lua
+4
-1
expansions/script/c13257246.lua
expansions/script/c13257246.lua
+1
-1
expansions/script/c13257360.lua
expansions/script/c13257360.lua
+0
-1
expansions/script/c20220648.lua
expansions/script/c20220648.lua
+1
-1
expansions/script/c20220650.lua
expansions/script/c20220650.lua
+9
-9
expansions/script/c20220651.lua
expansions/script/c20220651.lua
+15
-13
expansions/script/c20220653.lua
expansions/script/c20220653.lua
+2
-2
expansions/script/c20220656.lua
expansions/script/c20220656.lua
+1
-1
expansions/script/c20220657.lua
expansions/script/c20220657.lua
+2
-2
expansions/script/c33200951.lua
expansions/script/c33200951.lua
+1
-1
expansions/script/c33200952.lua
expansions/script/c33200952.lua
+1
-1
expansions/script/c33200953.lua
expansions/script/c33200953.lua
+1
-1
expansions/script/c33200954.lua
expansions/script/c33200954.lua
+1
-1
expansions/script/c33200955.lua
expansions/script/c33200955.lua
+1
-1
expansions/script/c33200956.lua
expansions/script/c33200956.lua
+1
-1
expansions/script/c33200959.lua
expansions/script/c33200959.lua
+1
-1
expansions/script/c33711408.lua
expansions/script/c33711408.lua
+6
-9
No files found.
expansions/script/c11451531.lua
View file @
c08bef22
...
@@ -40,7 +40,7 @@ function cm.filter(c)
...
@@ -40,7 +40,7 @@ function cm.filter(c)
return
c
:
IsPreviousLocation
(
LOCATION_DECK
+
LOCATION_GRAVE
)
return
c
:
IsPreviousLocation
(
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
cm
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
filter
,
1
,
nil
)
and
not
e
:
GetHandler
():
IsPublic
()
return
eg
:
IsExists
(
cm
.
filter
,
1
,
nil
)
end
end
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c11451532.lua
View file @
c08bef22
...
@@ -40,7 +40,7 @@ function cm.filter(c)
...
@@ -40,7 +40,7 @@ function cm.filter(c)
return
c
:
IsPreviousLocation
(
LOCATION_HAND
+
LOCATION_ONFIELD
)
return
c
:
IsPreviousLocation
(
LOCATION_HAND
+
LOCATION_ONFIELD
)
end
end
function
cm
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
filter
,
1
,
nil
)
and
not
e
:
GetHandler
():
IsPublic
()
return
eg
:
IsExists
(
cm
.
filter
,
1
,
nil
)
end
end
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c11451533.lua
View file @
c08bef22
...
@@ -49,7 +49,7 @@ function cm.filter(c)
...
@@ -49,7 +49,7 @@ function cm.filter(c)
return
c
:
IsFaceup
()
return
c
:
IsFaceup
()
end
end
function
cm
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
filter
,
1
,
nil
)
and
not
e
:
GetHandler
():
IsPublic
()
return
eg
:
IsExists
(
cm
.
filter
,
1
,
nil
)
end
end
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c11451534.lua
View file @
c08bef22
...
@@ -67,10 +67,10 @@ function cm.initial_effect(c)
...
@@ -67,10 +67,10 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e12
)
c
:
RegisterEffect
(
e12
)
end
end
function
cm
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsPublic
()
return
true
end
end
function
cm
.
adcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
Card
.
IsFacedown
,
1
,
nil
)
and
not
e
:
GetHandler
():
IsPublic
()
return
eg
:
IsExists
(
Card
.
IsFacedown
,
1
,
nil
)
end
end
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c11451535.lua
View file @
c08bef22
...
@@ -35,7 +35,7 @@ function cm.initial_effect(c)
...
@@ -35,7 +35,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
cm
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsPublic
()
return
true
end
end
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c11451536.lua
View file @
c08bef22
...
@@ -35,7 +35,7 @@ function cm.initial_effect(c)
...
@@ -35,7 +35,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
cm
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
not
e
:
GetHandler
():
IsPublic
()
return
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
end
end
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c11451583.lua
View file @
c08bef22
...
@@ -39,6 +39,11 @@ function cm.initial_effect(c)
...
@@ -39,6 +39,11 @@ function cm.initial_effect(c)
e4
:
SetTarget
(
cm
.
drtg
)
e4
:
SetTarget
(
cm
.
drtg
)
e4
:
SetOperation
(
cm
.
drop
)
e4
:
SetOperation
(
cm
.
drop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--act in hand
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_QP_ACT_IN_NTPHAND
)
c
:
RegisterEffect
(
e5
)
end
end
function
cm
.
actarget
(
e
,
te
,
tp
)
function
cm
.
actarget
(
e
,
te
,
tp
)
return
te
:
GetHandler
()
==
e
:
GetHandler
()
and
te
==
e
:
GetLabelObject
()
return
te
:
GetHandler
()
==
e
:
GetHandler
()
and
te
==
e
:
GetLabelObject
()
...
@@ -77,7 +82,21 @@ function cm.condition2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -77,7 +82,21 @@ function cm.condition2(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
and
Duel
.
GetCurrentChain
()
==
0
and
Duel
.
GetTurnPlayer
()
==
1
-
tp
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
and
Duel
.
GetCurrentChain
()
==
0
and
Duel
.
GetTurnPlayer
()
==
1
-
tp
end
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
end
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
local
res
=
true
if
Card
.
SetCardData
then
Duel
.
DisableActionCheck
(
true
)
local
dc
=
Duel
.
CreateToken
(
tp
,
m
)
Duel
.
DisableActionCheck
(
false
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_QUICKPLAY
+
TYPE_SPELL
)
res
=
dc
:
GetActivateEffect
():
IsActivatable
(
tp
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_SPELL
)
else
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
end
return
res
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
end
end
end
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
GetTurnID
()
==
Duel
.
GetTurnCount
()
and
not
c
:
IsReason
(
REASON_RETURN
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
GetTurnID
()
==
Duel
.
GetTurnCount
()
and
not
c
:
IsReason
(
REASON_RETURN
)
and
c
:
IsType
(
TYPE_MONSTER
)
...
...
expansions/script/c11451644.lua
View file @
c08bef22
...
@@ -38,7 +38,7 @@ function cm.matfilter(c)
...
@@ -38,7 +38,7 @@ function cm.matfilter(c)
end
end
function
cm
.
costcon
(
e
)
function
cm
.
costcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_GRAVE
,
0
)
==
0
then
return
false
end
if
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_GRAVE
)
==
0
then
return
false
end
return
true
return
true
end
end
function
cm
.
costchk
(
e
,
te_or_c
,
tp
)
function
cm
.
costchk
(
e
,
te_or_c
,
tp
)
...
...
expansions/script/c11451650.lua
View file @
c08bef22
...
@@ -72,7 +72,7 @@ end
...
@@ -72,7 +72,7 @@ end
function
cm
.
immval
(
e
,
te_or_c
)
function
cm
.
immval
(
e
,
te_or_c
)
local
res
=
aux
.
GetValueType
(
te_or_c
)
~=
"Effect"
or
(
te_or_c
:
IsActivated
()
and
te_or_c
:
GetOwner
()
~=
e
:
GetHandler
())
local
res
=
aux
.
GetValueType
(
te_or_c
)
~=
"Effect"
or
(
te_or_c
:
IsActivated
()
and
te_or_c
:
GetOwner
()
~=
e
:
GetHandler
())
if
res
then
if
res
then
if
te_or_c
:
IsActivated
()
then
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
end
if
aux
.
GetValueType
(
te_or_c
)
==
"Effect"
then
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
flag
=
c
:
GetFlagEffectLabel
(
m
)
local
flag
=
c
:
GetFlagEffectLabel
(
m
)
if
flag
then
if
flag
then
...
...
expansions/script/c11451717.lua
View file @
c08bef22
...
@@ -32,10 +32,10 @@ function cm.retfilter(c)
...
@@ -32,10 +32,10 @@ function cm.retfilter(c)
return
Duel
.
GetLocationCount
(
p
,
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
p
,
LOCATION_MZONE
)
>
0
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
tf
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
tf
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
tf
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
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
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
...
...
expansions/script/c13254072.lua
View file @
c08bef22
...
@@ -26,6 +26,9 @@ function cm.initial_effect(c)
...
@@ -26,6 +26,9 @@ function cm.initial_effect(c)
e2
:
SetOperation
(
cm
.
spop
)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
elements
=
{{
"tama_elements"
,{{
TAMA_ELEMENT_WATER
,
1
},{
TAMA_ELEMENT_LIFE
,
2
}}}}
cm
[
c
]
=
elements
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
aux
.
NegateEffectMonsterFilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
aux
.
NegateEffectMonsterFilter
(
chkc
)
end
...
@@ -42,7 +45,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,7 +45,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
else
else
local
hb
=
true
local
hb
=
true
local
tc1
=
nil
local
tc1
=
nil
if
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
m
,
1
))
then
if
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
and
not
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
m
,
1
))
then
Duel
.
DiscardHand
(
1
-
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
1
-
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
tc1
=
Duel
.
GetOperatedGroup
()
tc1
=
Duel
.
GetOperatedGroup
()
hb
=
false
hb
=
false
...
...
expansions/script/c13257246.lua
View file @
c08bef22
...
@@ -34,7 +34,7 @@ function cm.spcon(e,c)
...
@@ -34,7 +34,7 @@ function cm.spcon(e,c)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
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
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
end
function
cm
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c13257360.lua
View file @
c08bef22
...
@@ -33,7 +33,6 @@ function cm.initial_effect(c)
...
@@ -33,7 +33,6 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
cm
.
accon
)
e1
:
SetCondition
(
cm
.
accon
)
e1
:
SetOperation
(
cm
.
acop
)
e1
:
SetOperation
(
cm
.
acop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c20220648.lua
View file @
c08bef22
...
@@ -76,7 +76,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -76,7 +76,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
local
wg
=
Duel
.
GetMatchingGroup
(
s
.
copfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
c
)
local
wg
=
Duel
.
GetMatchingGroup
(
s
.
copfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
c
)
for
wbc
in
aux
.
Next
(
wg
)
do
for
wbc
in
aux
.
Next
(
wg
)
do
if
c
:
IsFaceup
()
then
if
c
:
IsFaceup
()
then
local
cid
=
c
:
CopyEffect
(
wbc
:
GetOriginalCode
(),
RESET_EVENT
+
RESETS_STANDARD_DISABLE
,
1
)
local
cid
=
c
:
CopyEffect
(
wbc
:
GetOriginalCode
(),
RESET_EVENT
+
RESETS_STANDARD
+
RESET
_DISABLE
,
1
)
wbc
:
RegisterFlagEffect
(
id
,
0
,
0
,
0
,
cid
)
wbc
:
RegisterFlagEffect
(
id
,
0
,
0
,
0
,
cid
)
end
end
end
end
...
...
expansions/script/c20220650.lua
View file @
c08bef22
...
@@ -27,14 +27,14 @@ function s.initial_effect(c)
...
@@ -27,14 +27,14 @@ function s.initial_effect(c)
e3
:
SetCondition
(
s
.
imcon
)
e3
:
SetCondition
(
s
.
imcon
)
e3
:
SetValue
(
s
.
efilter
)
e3
:
SetValue
(
s
.
efilter
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e33
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e
33
:
SetType
(
EFFECT_TYPE_FIELD
)
e
2
:
SetType
(
EFFECT_TYPE_FIELD
)
e
33
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e
2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e
33
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e
2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e
33
:
SetRange
(
LOCATION_MZONE
)
e
2
:
SetRange
(
LOCATION_MZONE
)
e
33
:
SetTargetRange
(
0
,
1
)
e
2
:
SetTargetRange
(
0
,
1
)
e
33
:
SetValue
(
s
.
aclimit
)
e
2
:
SetValue
(
s
.
aclimit
)
c
:
RegisterEffect
(
e
33
)
c
:
RegisterEffect
(
e
2
)
--攻击力上升
--攻击力上升
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
id
,
7
))
e6
:
SetDescription
(
aux
.
Stringid
(
id
,
7
))
...
@@ -85,4 +85,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -85,4 +85,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
aclimit
(
e
,
re
,
tp
)
function
s
.
aclimit
(
e
,
re
,
tp
)
return
re
:
GetActivateLocation
()
==
LOCATION_GRAVE
return
re
:
GetActivateLocation
()
==
LOCATION_GRAVE
end
end
\ No newline at end of file
...
...
expansions/script/c20220651.lua
View file @
c08bef22
...
@@ -9,7 +9,8 @@ function s.initial_effect(c)
...
@@ -9,7 +9,8 @@ function s.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e3
:
SetCategory
(
CATEGORY_REMOVE
)
e3
:
SetCategory
(
CATEGORY_REMOVE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCountLimit
(
1
,
id
)
e3
:
SetCountLimit
(
1
,
id
)
e3
:
SetCondition
(
s
.
remcon
)
e3
:
SetCondition
(
s
.
remcon
)
e3
:
SetTarget
(
s
.
remtg
)
e3
:
SetTarget
(
s
.
remtg
)
...
@@ -19,6 +20,7 @@ function s.initial_effect(c)
...
@@ -19,6 +20,7 @@ function s.initial_effect(c)
e6
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e6
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e6
:
SetCategory
(
CATEGORY_REMOVE
)
e6
:
SetCategory
(
CATEGORY_REMOVE
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e6
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e6
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e6
:
SetCountLimit
(
1
,
id
)
e6
:
SetCountLimit
(
1
,
id
)
e6
:
SetCondition
(
s
.
remcon
)
e6
:
SetCondition
(
s
.
remcon
)
...
@@ -30,6 +32,7 @@ function s.initial_effect(c)
...
@@ -30,6 +32,7 @@ function s.initial_effect(c)
e5
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e5
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e5
:
SetCategory
(
CATEGORY_REMOVE
)
e5
:
SetCategory
(
CATEGORY_REMOVE
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e5
:
SetCountLimit
(
1
,
id
)
e5
:
SetCountLimit
(
1
,
id
)
e5
:
SetCondition
(
s
.
remcon
)
e5
:
SetCondition
(
s
.
remcon
)
...
@@ -45,8 +48,8 @@ function s.initial_effect(c)
...
@@ -45,8 +48,8 @@ function s.initial_effect(c)
e33
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e33
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e33
:
SetCountLimit
(
1
,{
id
,
1
})
e33
:
SetCountLimit
(
1
,{
id
,
1
})
e33
:
SetCondition
(
s
.
sccon
)
e33
:
SetCondition
(
s
.
sccon
)
e33
:
SetTarget
(
s
.
s
c
tg
)
e33
:
SetTarget
(
s
.
s
p
tg
)
e33
:
SetOperation
(
s
.
s
c
op
)
e33
:
SetOperation
(
s
.
s
p
op
)
c
:
RegisterEffect
(
e33
)
c
:
RegisterEffect
(
e33
)
end
end
--Remove
--Remove
...
@@ -97,18 +100,17 @@ function s.filter(c,e,tp)
...
@@ -97,18 +100,17 @@ function s.filter(c,e,tp)
return
c
:
IsSetCard
(
0x20ab
)
and
c
:
IsLevelBelow
(
9
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
return
c
:
IsSetCard
(
0x20ab
)
and
c
:
IsLevelBelow
(
9
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_SYNCHRO
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_SYNCHRO
,
tp
,
false
,
false
)
end
end
function
s
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
pg
=
aux
.
GetMustBeMaterialGroup
(
tp
,
Group
.
CreateGroup
(),
tp
,
nil
,
nil
,
REASON_SYNCHRO
)
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_EXTRA
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
return
#
pg
<=
0
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_EXTRA
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
+
LOCATION_GRAVE
)
end
end
function
s
.
scop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
pg
=
aux
.
GetMustBeMaterialGroup
(
tp
,
Group
.
CreateGroup
(),
tp
,
nil
,
nil
,
REASON_SYNCHRO
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
#
pg
>
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_EXTRA
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_EXTRA
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
tc
and
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_SYNCHRO
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
local
tc
=
g
:
GetFirst
()
tc
:
CompleteProcedure
()
if
tc
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
end
end
end
end
expansions/script/c20220653.lua
View file @
c08bef22
...
@@ -16,13 +16,13 @@ function s.initial_effect(c)
...
@@ -16,13 +16,13 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--特殊召唤
--特殊召唤
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOGRAVE
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOGRAVE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e3
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetTarget
(
s
.
sptg1
)
e3
:
SetTarget
(
s
.
sptg1
)
e3
:
SetCountLimit
(
1
,
id
)
e3
:
SetCountLimit
(
1
,
{
id
,
1
}
)
e3
:
SetOperation
(
s
.
spop1
)
e3
:
SetOperation
(
s
.
spop1
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
local
e4
=
e3
:
Clone
()
...
...
expansions/script/c20220656.lua
View file @
c08bef22
...
@@ -41,7 +41,7 @@ function s.initial_effect(c)
...
@@ -41,7 +41,7 @@ function s.initial_effect(c)
end
end
s
.
listed_series
=
{
0x20ab
}
s
.
listed_series
=
{
0x20ab
}
function
s
.
filter
(
c
)
function
s
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
HasLevel
()
and
c
:
IsSetCard
(
0x20ab
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x20ab
)
end
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
filter
(
chkc
)
end
...
...
expansions/script/c20220657.lua
View file @
c08bef22
...
@@ -50,11 +50,11 @@ function s.setfilter(c)
...
@@ -50,11 +50,11 @@ function s.setfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x20ab
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x20ab
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
end
end
function
s
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
and
Duel
.
Is
TurnPlayer
(
tp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
and
Duel
.
Get
TurnPlayer
(
tp
)
and
Duel
.
IsExistingMatchingCard
(
s
.
setfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
setfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
s
.
costfilter
(
c
)
function
s
.
costfilter
(
c
)
return
c
:
Is
Monster
()
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToRemoveAsCost
()
and
aux
.
SpElimFilter
(
c
,
true
)
return
c
:
Is
Race
(
RACE_WARRIOR
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
function
s
.
setcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
setcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
expansions/script/c33200951.lua
View file @
c08bef22
...
@@ -52,7 +52,7 @@ function c33200951.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -52,7 +52,7 @@ function c33200951.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
c33200951
.
refilter
,
nil
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
c33200951
.
refilter
,
nil
)
local
mg2
=
Duel
.
GetMatchingGroup
(
Card
.
IsReleasable
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
local
mg2
=
Duel
.
GetMatchingGroup
(
Card
.
IsReleasable
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
mg
:
Merge
(
mg2
)
mg
:
Merge
(
mg2
)
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
Get
FieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
and
mg
:
GetCount
()
>
0
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
and
mg
:
GetCount
()
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c33200951
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33200951
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c33200952.lua
View file @
c08bef22
...
@@ -55,7 +55,7 @@ function c33200952.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -55,7 +55,7 @@ function c33200952.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
c33200951
.
refilter
,
nil
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
c33200951
.
refilter
,
nil
)
local
mg2
=
Duel
.
GetMatchingGroup
(
Card
.
IsReleasable
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
local
mg2
=
Duel
.
GetMatchingGroup
(
Card
.
IsReleasable
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
mg
:
Merge
(
mg2
)
mg
:
Merge
(
mg2
)
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
Get
FieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
and
mg
:
GetCount
()
>
0
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
and
mg
:
GetCount
()
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c33200952
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33200952
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c33200953.lua
View file @
c08bef22
...
@@ -55,7 +55,7 @@ function c33200953.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -55,7 +55,7 @@ function c33200953.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
c33200951
.
refilter
,
nil
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
c33200951
.
refilter
,
nil
)
local
mg2
=
Duel
.
GetMatchingGroup
(
Card
.
IsReleasable
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
local
mg2
=
Duel
.
GetMatchingGroup
(
Card
.
IsReleasable
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
mg
:
Merge
(
mg2
)
mg
:
Merge
(
mg2
)
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
Get
FieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
and
mg
:
GetCount
()
>
0
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
and
mg
:
GetCount
()
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c33200953
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33200953
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c33200954.lua
View file @
c08bef22
...
@@ -55,7 +55,7 @@ function c33200954.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -55,7 +55,7 @@ function c33200954.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
c33200951
.
refilter
,
nil
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
c33200951
.
refilter
,
nil
)
local
mg2
=
Duel
.
GetMatchingGroup
(
Card
.
IsReleasable
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
local
mg2
=
Duel
.
GetMatchingGroup
(
Card
.
IsReleasable
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
mg
:
Merge
(
mg2
)
mg
:
Merge
(
mg2
)
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
Get
FieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
and
mg
:
GetCount
()
>
0
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
and
mg
:
GetCount
()
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c33200954
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33200954
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c33200955.lua
View file @
c08bef22
...
@@ -55,7 +55,7 @@ function c33200955.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -55,7 +55,7 @@ function c33200955.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
c33200951
.
refilter
,
nil
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
c33200951
.
refilter
,
nil
)
local
mg2
=
Duel
.
GetMatchingGroup
(
Card
.
IsReleasable
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
local
mg2
=
Duel
.
GetMatchingGroup
(
Card
.
IsReleasable
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
mg
:
Merge
(
mg2
)
mg
:
Merge
(
mg2
)
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
Get
FieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
and
mg
:
GetCount
()
>
0
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
and
mg
:
GetCount
()
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c33200955
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33200955
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c33200956.lua
View file @
c08bef22
...
@@ -54,7 +54,7 @@ function c33200956.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -54,7 +54,7 @@ function c33200956.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
c33200951
.
refilter
,
nil
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
c33200951
.
refilter
,
nil
)
local
mg2
=
Duel
.
GetMatchingGroup
(
Card
.
IsReleasable
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
local
mg2
=
Duel
.
GetMatchingGroup
(
Card
.
IsReleasable
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
mg
:
Merge
(
mg2
)
mg
:
Merge
(
mg2
)
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
Get
FieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
and
mg
:
GetCount
()
>
0
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
and
mg
:
GetCount
()
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c33200956
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33200956
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c33200959.lua
View file @
c08bef22
...
@@ -88,7 +88,7 @@ function c33200959.spop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -88,7 +88,7 @@ function c33200959.spop2(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
5
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
5
)
local
ct
=
g
:
GetCount
()
local
ct
=
g
:
GetCount
()
local
atk
=
c
:
GetAttack
()
local
atk
=
c
:
GetAttack
()
if
ct
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
g
:
FilterCount
(
c33200959
.
dspfilter
,
nil
,
e
,
tp
,
atk
)
>
0
if
ct
>
0
and
g
:
FilterCount
(
c33200959
.
dspfilter
,
nil
,
e
,
tp
,
atk
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
33200959
,
2
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
33200959
,
2
))
then
Duel
.
DisableShuffleCheck
()
Duel
.
DisableShuffleCheck
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
expansions/script/c33711408.lua
View file @
c08bef22
...
@@ -85,23 +85,20 @@ function cm.top(e,tp)
...
@@ -85,23 +85,20 @@ function cm.top(e,tp)
local
g
=
Duel
.
GetOperatedGroup
()
local
g
=
Duel
.
GetOperatedGroup
()
local
sg
=
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
local
sg
=
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
sg
:
GetClassCount
(
Card
.
GetCode
)
==#
sg
then
if
sg
:
GetClassCount
(
Card
.
GetCode
)
==#
sg
and
sg
:
IsExists
(
cm
.
rfilter2
,
1
,
nil
)
then
local
rct
=
sg
:
FilterCount
(
cm
.
rfilter2
,
nil
)
local
rg
=
sg
:
Filter
(
cm
.
rfilter2
,
nil
)
local
num
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
rct
==
0
or
num
==
0
then
return
end
if
rct
>
num
then
rct
=
num
end
if
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
9910024
,
0
))
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg1
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
rct
,
nil
)
local
sg1
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
#
rg
,
nil
)
if
sg1
:
GetCount
()
>
0
then
if
sg1
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
sg1
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
sg1
,
nil
,
REASON_EFFECT
)
end
end
else
else
local
num
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
nil
)
local
num
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
nil
)
if
num
<
1
then
return
end
if
num
<
1
then
return
end
if
num
>#
sg
then
num
=#
sg
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg1
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGrave
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
num
,
num
,
nil
)
local
ct
=
math.min
(
#
sg
,
num
)
local
sg1
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGrave
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
ct
,
ct
,
nil
)
if
sg1
:
GetCount
()
>
0
then
if
sg1
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
sg1
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
sg1
,
REASON_EFFECT
)
end
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