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
66a28443
Commit
66a28443
authored
Oct 25, 2022
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
77ace7c9
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
81 additions
and
51 deletions
+81
-51
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
+1
-1
expansions/script/c11451535.lua
expansions/script/c11451535.lua
+1
-1
expansions/script/c11451536.lua
expansions/script/c11451536.lua
+1
-1
expansions/script/c11451538.lua
expansions/script/c11451538.lua
+2
-1
expansions/script/c11451751.lua
expansions/script/c11451751.lua
+4
-4
expansions/script/c11451752.lua
expansions/script/c11451752.lua
+4
-4
expansions/script/c11451753.lua
expansions/script/c11451753.lua
+4
-4
expansions/script/c11451754.lua
expansions/script/c11451754.lua
+5
-5
expansions/script/c11451755.lua
expansions/script/c11451755.lua
+4
-4
expansions/script/c11451756.lua
expansions/script/c11451756.lua
+4
-4
expansions/script/c14000220.lua
expansions/script/c14000220.lua
+2
-3
expansions/script/c14000223.lua
expansions/script/c14000223.lua
+18
-6
expansions/script/c25000001.lua
expansions/script/c25000001.lua
+5
-2
expansions/script/c33331712.lua
expansions/script/c33331712.lua
+2
-2
expansions/script/c40009401.lua
expansions/script/c40009401.lua
+11
-0
expansions/script/c40009423.lua
expansions/script/c40009423.lua
+1
-1
expansions/script/c53737010.lua
expansions/script/c53737010.lua
+1
-1
expansions/script/c53737012.lua
expansions/script/c53737012.lua
+2
-2
expansions/script/c64800173.lua
expansions/script/c64800173.lua
+1
-1
expansions/script/c72411740.lua
expansions/script/c72411740.lua
+5
-1
No files found.
expansions/script/c11451531.lua
View file @
66a28443
...
...
@@ -45,7 +45,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
>
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
11451
461
,
6
))
e1
:
SetDescription
(
aux
.
Stringid
(
11451
531
,
3
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetCode
(
EFFECT_PUBLIC
)
...
...
expansions/script/c11451532.lua
View file @
66a28443
...
...
@@ -45,7 +45,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
>
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
11451
461
,
6
))
e1
:
SetDescription
(
aux
.
Stringid
(
11451
531
,
3
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetCode
(
EFFECT_PUBLIC
)
...
...
expansions/script/c11451533.lua
View file @
66a28443
...
...
@@ -54,7 +54,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
>
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
11451
461
,
6
))
e1
:
SetDescription
(
aux
.
Stringid
(
11451
531
,
3
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetCode
(
EFFECT_PUBLIC
)
...
...
expansions/script/c11451534.lua
View file @
66a28443
...
...
@@ -78,7 +78,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
>
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
11451
461
,
6
))
e1
:
SetDescription
(
aux
.
Stringid
(
11451
531
,
3
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetCode
(
EFFECT_PUBLIC
)
...
...
expansions/script/c11451535.lua
View file @
66a28443
...
...
@@ -40,7 +40,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
>
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
11451
461
,
6
))
e1
:
SetDescription
(
aux
.
Stringid
(
11451
531
,
3
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetCode
(
EFFECT_PUBLIC
)
...
...
expansions/script/c11451536.lua
View file @
66a28443
...
...
@@ -41,7 +41,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
>
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
11451
461
,
6
))
e1
:
SetDescription
(
aux
.
Stringid
(
11451
531
,
3
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetCode
(
EFFECT_PUBLIC
)
...
...
expansions/script/c11451538.lua
View file @
66a28443
...
...
@@ -87,7 +87,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if
#
og
>
0
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
if
Duel
.
SendtoHand
(
ag
-
og
,
1
-
tp
,
REASON_EFFECT
)
and
og
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
)
==#
sg
then
if
Duel
.
SendtoHand
(
ag
-
og
,
1
-
tp
,
REASON_EFFECT
)
then
Duel
.
ShuffleHand
(
1
-
tp
)
end
if
og
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
)
==#
sg
then
local
tg
=
Duel
.
GetMatchingGroup
(
cm
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
og
,
tp
)
if
#
tg
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
expansions/script/c11451751.lua
View file @
66a28443
...
...
@@ -35,9 +35,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
sb
=
c
:
IsLocation
(
LOCATION_REMOVED
)
and
Duel
.
GetFlagEffect
(
tp
,
m
+
10
)
==
0
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
,
0
,
2
,
nil
)
and
(
sa
or
sb
)
end
if
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
elseif
c
:
IsLocation
(
LOCATION_REMOVED
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
2
,
tp
,
LOCATION_HAND
)
...
...
@@ -69,9 +69,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
sb
=
c
:
IsLocation
(
LOCATION_REMOVED
)
and
Duel
.
GetFlagEffect
(
tp
,
m
+
10
)
==
0
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
(
sa
or
sb
)
end
if
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
elseif
c
:
IsLocation
(
LOCATION_REMOVED
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
1
-
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
...
...
expansions/script/c11451752.lua
View file @
66a28443
...
...
@@ -34,9 +34,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
tp
)
and
cm
.
desfilter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingTarget
(
cm
.
thfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
and
(
sa
or
sb
)
end
if
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
elseif
c
:
IsLocation
(
LOCATION_REMOVED
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
tp
)
...
...
@@ -66,9 +66,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
tp
)
and
cm
.
desfilter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingTarget
(
cm
.
refilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
(
sa
or
sb
)
end
if
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
elseif
c
:
IsLocation
(
LOCATION_REMOVED
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
refilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
...
...
expansions/script/c11451753.lua
View file @
66a28443
...
...
@@ -35,9 +35,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
sb
=
c
:
IsLocation
(
LOCATION_REMOVED
)
and
Duel
.
GetFlagEffect
(
tp
,
m
+
10
)
==
0
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
,
0
,
2
,
nil
)
and
(
sa
or
sb
)
end
if
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
elseif
c
:
IsLocation
(
LOCATION_REMOVED
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
2
,
tp
,
LOCATION_HAND
)
...
...
@@ -69,9 +69,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
sb
=
c
:
IsLocation
(
LOCATION_REMOVED
)
and
Duel
.
GetFlagEffect
(
tp
,
m
+
10
)
==
0
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
(
sa
or
sb
)
end
if
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
elseif
c
:
IsLocation
(
LOCATION_REMOVED
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
PLAYER_ALL
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
...
...
expansions/script/c11451754.lua
View file @
66a28443
...
...
@@ -35,9 +35,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
tp
)
and
cm
.
desfilter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingTarget
(
cm
.
thfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
and
(
sa
or
sb
)
end
if
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
elseif
c
:
IsLocation
(
LOCATION_REMOVED
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
tp
)
...
...
@@ -75,9 +75,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
sb
=
c
:
IsLocation
(
LOCATION_REMOVED
)
and
Duel
.
GetFlagEffect
(
tp
,
m
+
10
)
==
0
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
(
sa
or
sb
)
end
if
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
elseif
c
:
IsLocation
(
LOCATION_REMOVED
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
...
...
@@ -85,7 +85,7 @@ end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
c
:
IsRelateToEffect
(
e
)
then
...
...
expansions/script/c11451755.lua
View file @
66a28443
...
...
@@ -35,9 +35,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
sb
=
c
:
IsLocation
(
LOCATION_REMOVED
)
and
Duel
.
GetFlagEffect
(
tp
,
m
+
10
)
==
0
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
,
0
,
2
,
nil
)
and
(
sa
or
sb
)
end
if
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
elseif
c
:
IsLocation
(
LOCATION_REMOVED
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
2
,
tp
,
LOCATION_HAND
)
...
...
@@ -70,9 +70,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
rg
=
Duel
.
GetDecktopGroup
(
tp
,
3
)
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
rg
:
FilterCount
(
Card
.
IsAbleToRemove
,
nil
)
==
3
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
(
sa
or
sb
)
end
if
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
elseif
c
:
IsLocation
(
LOCATION_REMOVED
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
rg
,
3
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
...
...
expansions/script/c11451756.lua
View file @
66a28443
...
...
@@ -35,9 +35,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
tp
)
and
cm
.
desfilter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingTarget
(
cm
.
thfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
and
(
sa
or
sb
)
end
if
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
elseif
c
:
IsLocation
(
LOCATION_REMOVED
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
tp
)
...
...
@@ -72,9 +72,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
sb
=
c
:
IsLocation
(
LOCATION_REMOVED
)
and
Duel
.
GetFlagEffect
(
tp
,
m
+
10
)
==
0
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
(
sa
or
sb
)
end
if
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
1
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
elseif
c
:
IsLocation
(
LOCATION_REMOVED
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
0
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
10
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
...
...
expansions/script/c14000220.lua
View file @
66a28443
...
...
@@ -103,9 +103,8 @@ end
function
cm
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
2
,
REASON_EFFECT
)
end
function
cm
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
function
cm
.
thcon
(
e
)
return
e
:
GetHandler
():
GetOriginalRace
()
==
RACE_MACHINE
end
function
cm
.
thfilter
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAbleToHand
()
...
...
expansions/script/c14000223.lua
View file @
66a28443
...
...
@@ -15,7 +15,6 @@ function cm.initial_effect(c)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -25,6 +24,7 @@ function cm.initial_effect(c)
e2
:
SetLabel
(
1
)
c
:
RegisterEffect
(
e2
)
local
e2_1
=
e2
:
Clone
()
e2_1
:
SetCategory
(
CATEGORY_TOHAND
)
e2_1
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2_1
:
SetLabel
(
2
)
c
:
RegisterEffect
(
e2_1
)
...
...
@@ -111,30 +111,42 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_ADJUST
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
cm
.
adjustcon
)
e2
:
SetOperation
(
cm
.
adjustop
)
e2
:
SetLabelObject
(
c
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e2
)
end
end
function
cm
.
filter
(
c
,
e
)
return
c
:
IsCanOverlay
()
and
not
tc
:
IsImmuneToEffect
(
e
)
return
c
:
IsCanOverlay
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
cm
.
adjustcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g1
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
(),
e
)
return
g1
and
#
g1
>
0
end
function
cm
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
phase
=
Duel
.
GetCurrentPhase
()
if
(
phase
==
PHASE_DAMAGE
and
not
Duel
.
IsDamageCalculated
())
or
phase
==
PHASE_DAMAGE_CAL
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetLabelObject
()
if
not
c
:
IsLocation
(
LOCATION_MZONE
)
then
return
end
local
g1
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c
,
e
)
if
#
g1
>
0
then
local
tc
=
g1
:
GetFirst
()
local
xg
=
Group
.
CreateGroup
()
while
tc
do
tc
:
CancelToGrave
()
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
xg
.
Merge
(
og
)
end
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
tc
=
g1
:
GetNext
()
end
Duel
.
Readjust
()
if
#
g1
>
0
then
Duel
.
SendtoGrave
(
xg
,
REASON_RULE
)
Duel
.
Overlay
(
c
,
g1
)
Duel
.
Readjust
()
end
end
end
function
cm
.
efilter
(
e
,
te
)
...
...
expansions/script/c25000001.lua
View file @
66a28443
...
...
@@ -31,8 +31,11 @@ function cm.op(e,tp)
EFFECT_USE_EXTRA_MZONE
=
0
EFFECT_USE_EXTRA_SZONE
=
0
for
tc
in
aux
.
Next
(
Duel
.
GetMatchingGroup
(
nil
,
tp
,
0x1ff
,
0x1ff
,
nil
))
do
local
code
=
tc
:
GetOriginalCode
()
Card
.
ReplaceEffect
(
tc
,
code
,
nil
)
local
ini
=
cm
.
initial_effect
cm
.
initial_effect
=
function
()
end
tc
:
ReplaceEffect
(
m
,
0
)
cm
.
initial_effect
=
ini
tc
.
initial_effect
(
tc
)
end
function
Duel
.
SetChainLimit
(
...
)
return
...
...
expansions/script/c33331712.lua
View file @
66a28443
...
...
@@ -57,8 +57,8 @@ function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsOnField
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
NegateAnyFilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
2
,
0
,
0
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
NegateAnyFilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
3
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
3
,
0
,
0
)
local
tc
=
g
:
GetFirst
()
while
tc
do
Duel
.
SetChainLimit
(
cm
.
limit
(
tc
))
...
...
expansions/script/c40009401.lua
View file @
66a28443
...
...
@@ -47,6 +47,17 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local
tg1
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
2
,
2
)
Duel
.
SendtoHand
(
tg1
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tg1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
splimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
cm
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
cm
.
CosmosHero
(
c
)
...
...
expansions/script/c40009423.lua
View file @
66a28443
...
...
@@ -44,7 +44,7 @@ function c40009423.setcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c40009423
.
tgfilter
,
1
,
nil
,
tp
)
end
function
c40009423
.
setfilter
(
c
)
return
c
:
Is
SetCard
(
0x137
)
and
c
:
Is
Type
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
()
and
c
:
IsType
(
TYPE_CONTINUOUS
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
()
and
c
:
IsType
(
TYPE_CONTINUOUS
)
end
function
c40009423
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c40009423
.
setfilter
(
chkc
)
end
...
...
expansions/script/c53737010.lua
View file @
66a28443
...
...
@@ -63,7 +63,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
res
=
Duel
.
IsPlayerCanRelease
(
tp
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
penfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
res
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
penfilter
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
res
):
GetFirst
()
if
tc
and
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
and
tc
:
IsLocation
(
LOCATION_PZONE
)
then
local
b1
=
tc
:
IsReleasableByEffect
()
local
b2
=
tc
:
IsCanAddCounter
(
0x1
,
1
)
...
...
expansions/script/c53737012.lua
View file @
66a28443
...
...
@@ -128,7 +128,7 @@ function cm.nameop(e,tp,eg,ep,ev,re,r,rp)
e5
:
SetCode
(
EFFECT_ACTIVATE_COST
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetTargetRange
(
1
,
1
)
e5
:
SetTargetRange
(
1
,
0
)
e5
:
SetLabelObject
(
e1
)
e5
:
SetCondition
(
cm
.
efcon
)
e5
:
SetTarget
(
cm
.
costtg
)
...
...
@@ -210,7 +210,7 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
costtg
(
e
,
te
,
tp
)
e
:
SetLabelObject
(
te
)
return
te
==
e
:
GetLabelObject
()
return
te
==
e
:
GetLabelObject
()
and
te
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
function
cm
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
te
=
e
:
GetLabelObject
()
...
...
expansions/script/c64800173.lua
View file @
66a28443
...
...
@@ -82,7 +82,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
CompleteProcedure
()
else
local
mg
=
mg1
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
mg
:
AddCard
(
mg2
)
mg
:
Merge
(
mg2
)
if
tc
.
mat_filter
then
mg
=
mg
:
Filter
(
tc
.
mat_filter
,
tc
,
tp
)
else
...
...
expansions/script/c72411740.lua
View file @
66a28443
...
...
@@ -36,9 +36,12 @@ function c72411740.operation(e,tp,eg,ep,ev,re,r,rp)
local
sg2
=
Group
.
Filter
(
sg
,
Card
.
IsType
,
nil
,
TYPE_TRAP
):
GetCount
()
local
sg3
=
Group
.
Filter
(
sg
,
Card
.
IsType
,
nil
,
TYPE_MONSTER
):
GetCount
()
local
ct
=
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
+
REASON_DISCARD
)
if
sg1
>
1
then
Duel
.
Draw
(
tp
,
3
,
REASON_EFFECT
)
end
if
sg1
>
1
then
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
3
,
REASON_EFFECT
)
end
if
sg2
>
1
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsExistingMatchingCard
(
c72411740
.
filter
,
tp
,
LOCATION_DECK
,
0
,
2
,
nil
,
e
,
tp
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72411740
.
filter
,
tp
,
LOCATION_DECK
,
0
,
2
,
2
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
==
2
then
...
...
@@ -46,6 +49,7 @@ function c72411740.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
if
sg3
>
1
and
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
then
Duel
.
BreakEffect
()
local
dg
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
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