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
ee38b16f
Commit
ee38b16f
authored
Oct 25, 2023
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a2bf35f1
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
47 additions
and
42 deletions
+47
-42
expansions/script/c11451531.lua
expansions/script/c11451531.lua
+2
-1
expansions/script/c11451532.lua
expansions/script/c11451532.lua
+2
-1
expansions/script/c11451533.lua
expansions/script/c11451533.lua
+2
-1
expansions/script/c11451534.lua
expansions/script/c11451534.lua
+2
-1
expansions/script/c11451535.lua
expansions/script/c11451535.lua
+2
-1
expansions/script/c11451536.lua
expansions/script/c11451536.lua
+2
-1
expansions/script/c11451710.lua
expansions/script/c11451710.lua
+3
-3
expansions/script/c11451821.lua
expansions/script/c11451821.lua
+22
-7
expansions/script/c115005.lua
expansions/script/c115005.lua
+2
-2
expansions/script/c13254072.lua
expansions/script/c13254072.lua
+4
-18
expansions/script/c60002008.lua
expansions/script/c60002008.lua
+1
-1
expansions/script/c60159945.lua
expansions/script/c60159945.lua
+2
-4
expansions/script/c9910053.lua
expansions/script/c9910053.lua
+1
-1
No files found.
expansions/script/c11451531.lua
View file @
ee38b16f
...
@@ -57,6 +57,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,6 +57,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetLabel
(
c
:
GetFieldID
())
e2
:
SetCondition
(
cm
.
tgcon
)
e2
:
SetCondition
(
cm
.
tgcon
)
e2
:
SetOperation
(
cm
.
tgop
)
e2
:
SetOperation
(
cm
.
tgop
)
if
1
~=
1
then
if
1
~=
1
then
...
@@ -71,7 +72,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,7 +72,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
not
c
:
IsPublic
()
or
c
:
GetFlagEffectLabel
(
m
)
~=
c
:
GetFieldID
()
then
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
not
c
:
IsPublic
()
or
c
:
GetFlagEffectLabel
(
m
)
~=
e
:
GetLabel
()
then
e
:
Reset
()
e
:
Reset
()
return
false
return
false
else
else
...
...
expansions/script/c11451532.lua
View file @
ee38b16f
...
@@ -57,6 +57,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,6 +57,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetLabel
(
c
:
GetFieldID
())
e2
:
SetCondition
(
cm
.
tgcon
)
e2
:
SetCondition
(
cm
.
tgcon
)
e2
:
SetOperation
(
cm
.
tgop
)
e2
:
SetOperation
(
cm
.
tgop
)
if
1
~=
1
then
if
1
~=
1
then
...
@@ -71,7 +72,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,7 +72,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
not
c
:
IsPublic
()
or
c
:
GetFlagEffectLabel
(
m
)
~=
c
:
GetFieldID
()
then
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
not
c
:
IsPublic
()
or
c
:
GetFlagEffectLabel
(
m
)
~=
e
:
GetLabel
()
then
e
:
Reset
()
e
:
Reset
()
return
false
return
false
else
else
...
...
expansions/script/c11451533.lua
View file @
ee38b16f
...
@@ -66,6 +66,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -66,6 +66,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetLabel
(
c
:
GetFieldID
())
e2
:
SetCondition
(
cm
.
tgcon
)
e2
:
SetCondition
(
cm
.
tgcon
)
e2
:
SetOperation
(
cm
.
tgop
)
e2
:
SetOperation
(
cm
.
tgop
)
if
1
~=
1
then
if
1
~=
1
then
...
@@ -80,7 +81,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -80,7 +81,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
not
c
:
IsPublic
()
or
c
:
GetFlagEffectLabel
(
m
)
~=
c
:
GetFieldID
()
then
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
not
c
:
IsPublic
()
or
c
:
GetFlagEffectLabel
(
m
)
~=
e
:
GetLabel
()
then
e
:
Reset
()
e
:
Reset
()
return
false
return
false
else
else
...
...
expansions/script/c11451534.lua
View file @
ee38b16f
...
@@ -90,6 +90,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -90,6 +90,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetLabel
(
c
:
GetFieldID
())
e2
:
SetCondition
(
cm
.
tgcon
)
e2
:
SetCondition
(
cm
.
tgcon
)
e2
:
SetOperation
(
cm
.
tgop
)
e2
:
SetOperation
(
cm
.
tgop
)
if
1
~=
1
then
if
1
~=
1
then
...
@@ -104,7 +105,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -104,7 +105,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
not
c
:
IsPublic
()
or
c
:
GetFlagEffectLabel
(
m
)
~=
c
:
GetFieldID
()
then
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
not
c
:
IsPublic
()
or
c
:
GetFlagEffectLabel
(
m
)
~=
e
:
GetLabel
()
then
e
:
Reset
()
e
:
Reset
()
return
false
return
false
else
else
...
...
expansions/script/c11451535.lua
View file @
ee38b16f
...
@@ -52,6 +52,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,6 +52,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetLabel
(
c
:
GetFieldID
())
e2
:
SetCondition
(
cm
.
tgcon
)
e2
:
SetCondition
(
cm
.
tgcon
)
e2
:
SetOperation
(
cm
.
tgop
)
e2
:
SetOperation
(
cm
.
tgop
)
if
1
~=
1
then
if
1
~=
1
then
...
@@ -66,7 +67,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -66,7 +67,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
not
c
:
IsPublic
()
or
c
:
GetFlagEffectLabel
(
m
)
~=
c
:
GetFieldID
()
then
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
not
c
:
IsPublic
()
or
c
:
GetFlagEffectLabel
(
m
)
~=
e
:
GetLabel
()
then
e
:
Reset
()
e
:
Reset
()
return
false
return
false
else
else
...
...
expansions/script/c11451536.lua
View file @
ee38b16f
...
@@ -53,6 +53,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,6 +53,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetLabel
(
c
:
GetFieldID
())
e2
:
SetCondition
(
cm
.
tgcon
)
e2
:
SetCondition
(
cm
.
tgcon
)
e2
:
SetOperation
(
cm
.
tgop
)
e2
:
SetOperation
(
cm
.
tgop
)
if
1
~=
1
then
if
1
~=
1
then
...
@@ -67,7 +68,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -67,7 +68,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
not
c
:
IsPublic
()
or
c
:
GetFlagEffectLabel
(
m
)
~=
c
:
GetFieldID
()
then
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
not
c
:
IsPublic
()
or
c
:
GetFlagEffectLabel
(
m
)
~=
e
:
GetLabel
()
then
e
:
Reset
()
e
:
Reset
()
return
false
return
false
else
else
...
...
expansions/script/c11451710.lua
View file @
ee38b16f
...
@@ -50,16 +50,16 @@ function cm.initial_effect(c)
...
@@ -50,16 +50,16 @@ function cm.initial_effect(c)
if
c
:
IsLocation
(
LOCATION_HAND
)
and
e
:
GetCode
()
==
EFFECT_PUBLIC
and
e
:
IsHasType
(
EFFECT_TYPE_SINGLE
)
and
#
extg
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
then
if
c
:
IsLocation
(
LOCATION_HAND
)
and
e
:
GetCode
()
==
EFFECT_PUBLIC
and
e
:
IsHasType
(
EFFECT_TYPE_SINGLE
)
and
#
extg
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
then
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
CONFIRM
)
local
tc
=
extg
:
GetFirst
()
local
tc
=
extg
:
GetFirst
()
if
#
extg
>
1
then
tc
=
extg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
end
if
#
extg
>
1
then
tc
=
extg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
end
if
tc
then
if
tc
then
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
_RegisterEffect
(
tc
,
e
,
bool
)
local
eid
=
_RegisterEffect
(
tc
,
e
,
bool
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
return
return
eid
end
end
end
end
end
end
...
...
expansions/script/c11451821.lua
View file @
ee38b16f
...
@@ -24,17 +24,18 @@ function cm.initial_effect(c)
...
@@ -24,17 +24,18 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
if
not
cm
.
global_check
then
if
not
cm
.
global_check
then
cm
.
global_check
=
true
cm
.
global_check
=
true
--[[
local ge0=Effect.CreateEffect(c)
local
ge0
=
Effect
.
CreateEffect
(
c
)
ge0
:
SetType
(
EFFECT_TYPE_FIELD
)
ge0
:
SetType
(
EFFECT_TYPE_FIELD
)
ge0
:
SetCode
(
EFFECT_ACTIVATE_COST
)
ge0
:
SetCode
(
EFFECT_ACTIVATE_COST
)
ge0
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
ge0
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
ge0
:
SetTargetRange
(
1
,
1
)
ge0
:
SetTargetRange
(
1
,
1
)
ge0:SetOperation(cm.clear0)
ge0
:
SetTarget
(
cm
.
chktg
)
Duel.RegisterEffect(ge0,0)--]]
ge0
:
SetOperation
(
cm
.
check0
)
Duel
.
RegisterEffect
(
ge0
,
0
)
local
ge1
=
Effect
.
CreateEffect
(
c
)
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_CHAINING
)
ge1
:
SetCode
(
EVENT_CHAINING
)
ge1
:
SetOperation
(
cm
.
check
0
)
ge1
:
SetOperation
(
cm
.
check
1
)
Duel
.
RegisterEffect
(
ge1
,
0
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge5
=
Effect
.
CreateEffect
(
c
)
local
ge5
=
Effect
.
CreateEffect
(
c
)
ge5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
@@ -52,15 +53,28 @@ function cm.initial_effect(c)
...
@@ -52,15 +53,28 @@ function cm.initial_effect(c)
ge6
:
SetLabelObject
(
cm
[
0
])
ge6
:
SetLabelObject
(
cm
[
0
])
end
end
end
end
local
_IsCanBeSpecialSummoned
=
Card
.
IsCanBeSpecialSummoned
function
cm
.
chktg
(
e
,
te
,
tp
)
e
:
SetLabelObject
(
te
)
return
true
end
function
cm
.
check0
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
check0
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
re
=
e
:
GetLabelObject
()
local
tg
=
re
:
GetTarget
()
local
tg
=
re
:
GetTarget
()
if
tg
then
if
tg
then
local
_IsCanBeSpecialSummoned
=
Card
.
IsCanBeSpecialSummoned
function
Card
.
IsCanBeSpecialSummoned
(
c
,
e
,
st
,
...
)
function
Card
.
IsCanBeSpecialSummoned
(
c
,
e
,
st
,
...
)
if
st
&
SUMMON_TYPE_RITUAL
>
0
then
cm
[
1
]
=
true
end
if
st
&
SUMMON_TYPE_RITUAL
>
0
then
cm
[
1
]
=
true
end
return
_IsCanBeSpecialSummoned
(
c
,
e
,
st
,
...
)
return
_IsCanBeSpecialSummoned
(
c
,
e
,
st
,
...
)
end
end
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
--tg(e,tp,eg,ep,ev,re,r,rp,0)
--Card.IsCanBeSpecialSummoned=_IsCanBeSpecialSummoned
if
cm
[
1
]
then
cm
[
re
]
=
true
end
cm
[
1
]
=
nil
end
end
function
cm
.
check1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
re
:
GetTarget
()
if
tg
then
Card
.
IsCanBeSpecialSummoned
=
_IsCanBeSpecialSummoned
Card
.
IsCanBeSpecialSummoned
=
_IsCanBeSpecialSummoned
if
cm
[
1
]
then
cm
[
re
]
=
true
end
if
cm
[
1
]
then
cm
[
re
]
=
true
end
cm
[
1
]
=
nil
cm
[
1
]
=
nil
...
@@ -99,7 +113,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -99,7 +113,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
Step
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
local
sg
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
for
tc
in
aux
.
Next
(
cm
[
0
])
do
for
tc
in
aux
.
Next
(
cm
[
0
])
do
local
con
=
tc
.
condition3
local
con
=
tc
.
condition3
...
@@ -109,6 +123,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -109,6 +123,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if
#
sg
==
0
then
return
end
if
#
sg
==
0
then
return
end
local
tc
=
sg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
sg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
tc
.
operation3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
tc
.
operation3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SpecialSummonComplete
()
end
end
end
end
function
cm
.
chcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
chcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c115005.lua
View file @
ee38b16f
...
@@ -56,10 +56,10 @@ function cm.initial_effect(c)
...
@@ -56,10 +56,10 @@ function cm.initial_effect(c)
KDlobal
[
"Effects"
][
"c115002"
]
=
e2
KDlobal
[
"Effects"
][
"c115002"
]
=
e2
end
end
function
cm
.
spfilter1
(
c
,
fc
,
tp
)
function
cm
.
spfilter1
(
c
,
fc
,
tp
)
return
c
:
IsCode
(
15000351
)
and
c
:
IsCanBeFusionMaterial
(
fc
)
and
c
:
IsAbleToDeckAsCost
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter2
,
tp
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
0
,
1
,
nil
,
fc
,
c
:
GetLocation
())
return
c
:
IsCode
(
15000351
)
and
c
:
IsCanBeFusionMaterial
(
fc
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter2
,
tp
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
0
,
1
,
nil
,
fc
,
c
:
GetLocation
())
end
end
function
cm
.
spfilter2
(
c
,
fc
,
loc
)
function
cm
.
spfilter2
(
c
,
fc
,
loc
)
return
c
:
IsCode
(
115001
)
and
c
:
IsCanBeFusionMaterial
(
fc
)
and
c
:
IsAbleToDeckAsCost
()
and
bit
.
band
(
loc
,
c
:
GetLocation
())
==
0
return
c
:
IsCode
(
115001
)
and
c
:
IsCanBeFusionMaterial
(
fc
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
and
bit
.
band
(
loc
,
c
:
GetLocation
())
==
0
end
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
...
...
expansions/script/c13254072.lua
View file @
ee38b16f
--飞球造物·胸寄生球
--飞球造物·胸寄生球
local
m
=
13254072
local
m
=
13254072
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
xpcall
(
function
()
dofile
(
"expansions/script/tama.lua"
)
end
,
function
()
dofile
(
"script/tama.lu
a"
)
end
)
xpcall
(
function
()
require
(
"expansions/script/tama"
)
end
,
function
()
require
(
"script/tam
a"
)
end
)
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetCategory
(
CATEGORY_EQUIP
)
...
@@ -13,11 +12,10 @@ function cm.initial_effect(c)
...
@@ -13,11 +12,10 @@ function cm.initial_effect(c)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_MAIN_END
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_MAIN_END
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e1
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e1
:
SetLabelObject
(
e2
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_FIELD
)
...
@@ -35,9 +33,9 @@ function cm.initial_effect(c)
...
@@ -35,9 +33,9 @@ function cm.initial_effect(c)
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
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISABLE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISABLE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -87,20 +85,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -87,20 +85,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
cm
.
tglimit
)
e1
:
SetValue
(
cm
.
tglimit
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
RegisterEffect
(
e1
,
true
)
end
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetRange
(
LOCATION_ONFIELD
)
e1
:
SetLabelObject
(
e
:
GetLabelObject
())
e1
:
SetValue
(
cm
.
aclimit
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
,
true
)
end
end
end
end
function
cm
.
aclimit
(
e
,
re
,
tp
)
return
re
==
e
:
GetLabelObject
()
end
function
cm
.
tglimit
(
e
,
re
,
tp
)
function
cm
.
tglimit
(
e
,
re
,
tp
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
return
rc
and
rc
:
IsCode
(
e
:
GetLabel
())
return
rc
and
rc
:
IsCode
(
e
:
GetLabel
())
...
...
expansions/script/c60002008.lua
View file @
ee38b16f
...
@@ -41,7 +41,7 @@ function c60002008.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -41,7 +41,7 @@ function c60002008.thop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
SendtoHand
(
tc
,
tp
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
if
(
tc
:
IsSummonable
(
true
,
nil
)
or
tc
:
IsMSetable
(
true
,
nil
))
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60002008
,
2
))
then
if
(
tc
:
IsSummonable
(
true
,
nil
)
or
tc
:
IsMSetable
(
true
,
nil
))
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60002008
,
2
))
then
local
s1
=
tc
:
IsSummonable
(
true
,
nil
)
local
s1
=
tc
:
IsSummonable
(
true
,
nil
)
local
s2
=
tc
:
IsMSetable
(
true
,
nil
)
local
s2
=
tc
:
IsMSetable
(
true
,
nil
)
if
(
s1
and
s2
and
Duel
.
SelectPosition
(
tp
,
tc
,
POS_FACEUP_ATTACK
+
POS_FACEDOWN_DEFENSE
)
==
POS_FACEUP_ATTACK
)
or
not
s2
then
if
(
s1
and
s2
and
Duel
.
SelectPosition
(
tp
,
tc
,
POS_FACEUP_ATTACK
+
POS_FACEDOWN_DEFENSE
)
==
POS_FACEUP_ATTACK
)
or
not
s2
then
...
...
expansions/script/c60159945.lua
View file @
ee38b16f
...
@@ -39,15 +39,13 @@ function c60159945.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,15 +39,13 @@ function c60159945.spcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
end
function
c60159945
.
spfilter
(
c
,
e
,
tp
)
function
c60159945
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
end
end
function
c60159945
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60159945
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c60159945
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c60159945
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c60159945
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60159945
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60159945
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60159945
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
...
...
expansions/script/c9910053.lua
View file @
ee38b16f
...
@@ -86,7 +86,7 @@ function c9910053.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -86,7 +86,7 @@ function c9910053.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ShuffleDeck
(
tp
)
Duel
.
ShuffleDeck
(
tp
)
end
end
function
c9910053
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9910053
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsChainNegatable
(
ev
)
and
Duel
.
GetFlagEffect
(
tp
,
9910053
)
<
2
and
ep
~=
tp
return
rp
==
1
-
tp
and
Duel
.
IsChainDisablable
(
ev
)
and
Duel
.
GetFlagEffect
(
tp
,
9910053
)
<
2
end
end
function
c9910053
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9910053
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
9910053
)
Duel
.
Hint
(
HINT_CARD
,
0
,
9910053
)
...
...
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