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
ff98ea01
Commit
ff98ea01
authored
Aug 01, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ec7c5662
Changes
42
Hide whitespace changes
Inline
Side-by-side
Showing
42 changed files
with
137 additions
and
113 deletions
+137
-113
expansions/script/c11450999.lua
expansions/script/c11450999.lua
+4
-3
expansions/script/c11451011.lua
expansions/script/c11451011.lua
+1
-1
expansions/script/c11451012.lua
expansions/script/c11451012.lua
+2
-1
expansions/script/c11451013.lua
expansions/script/c11451013.lua
+1
-1
expansions/script/c11451014.lua
expansions/script/c11451014.lua
+1
-1
expansions/script/c11451015.lua
expansions/script/c11451015.lua
+3
-3
expansions/script/c11451017.lua
expansions/script/c11451017.lua
+1
-1
expansions/script/c11451022.lua
expansions/script/c11451022.lua
+7
-3
expansions/script/c11451031.lua
expansions/script/c11451031.lua
+1
-1
expansions/script/c11451034.lua
expansions/script/c11451034.lua
+1
-1
expansions/script/c11451410.lua
expansions/script/c11451410.lua
+3
-3
expansions/script/c11451475.lua
expansions/script/c11451475.lua
+1
-1
expansions/script/c11451547.lua
expansions/script/c11451547.lua
+1
-1
expansions/script/c11451583.lua
expansions/script/c11451583.lua
+3
-3
expansions/script/c11451618.lua
expansions/script/c11451618.lua
+5
-3
expansions/script/c11451632.lua
expansions/script/c11451632.lua
+1
-1
expansions/script/c11451633.lua
expansions/script/c11451633.lua
+1
-1
expansions/script/c11451634.lua
expansions/script/c11451634.lua
+1
-1
expansions/script/c11451635.lua
expansions/script/c11451635.lua
+1
-1
expansions/script/c11451636.lua
expansions/script/c11451636.lua
+1
-1
expansions/script/c11451637.lua
expansions/script/c11451637.lua
+1
-1
expansions/script/c11451638.lua
expansions/script/c11451638.lua
+1
-1
expansions/script/c11451725.lua
expansions/script/c11451725.lua
+1
-1
expansions/script/c11451726.lua
expansions/script/c11451726.lua
+1
-1
expansions/script/c11451767.lua
expansions/script/c11451767.lua
+1
-1
expansions/script/c11451779.lua
expansions/script/c11451779.lua
+3
-3
expansions/script/c11451780.lua
expansions/script/c11451780.lua
+3
-3
expansions/script/c11451781.lua
expansions/script/c11451781.lua
+3
-3
expansions/script/c11451782.lua
expansions/script/c11451782.lua
+3
-3
expansions/script/c11451824.lua
expansions/script/c11451824.lua
+1
-1
expansions/script/c11451834.lua
expansions/script/c11451834.lua
+1
-1
expansions/script/c11451837.lua
expansions/script/c11451837.lua
+2
-2
expansions/script/c11451861.lua
expansions/script/c11451861.lua
+3
-3
expansions/script/c11451880.lua
expansions/script/c11451880.lua
+2
-2
expansions/script/c11451906.lua
expansions/script/c11451906.lua
+2
-2
expansions/script/c11451907.lua
expansions/script/c11451907.lua
+2
-2
expansions/script/c11451908.lua
expansions/script/c11451908.lua
+2
-2
expansions/script/c11560305.lua
expansions/script/c11560305.lua
+26
-24
expansions/script/c33201454.lua
expansions/script/c33201454.lua
+1
-1
expansions/script/c53767009.lua
expansions/script/c53767009.lua
+36
-22
expansions/script/c98920369.lua
expansions/script/c98920369.lua
+1
-1
expansions/script/c98940034.lua
expansions/script/c98940034.lua
+1
-1
No files found.
expansions/script/c11450999.lua
View file @
ff98ea01
...
...
@@ -70,7 +70,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
@@ -107,7 +107,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ING
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
ev0
end
)
e1
:
SetOperation
(
cm
.
rsop
)
...
...
@@ -119,7 +119,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ING
and
rc
:
IsRelateToEffect
(
re
)
then
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ED
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
...
...
@@ -140,6 +140,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Debug
.
Message
(
e
:
GetActivateLocation
())
--if e:IsHasType(EFFECT_TYPE_ACTIVATE) then Duel.SetChainLimit(aux.FALSE) end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c11451011.lua
View file @
ff98ea01
...
...
@@ -109,7 +109,7 @@ function cm.initial_effect(c)
end
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_MZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451012.lua
View file @
ff98ea01
...
...
@@ -10,6 +10,7 @@ function cm.initial_effect(c)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_EXTRA
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
--e1:SetProperty(0,EFFECT_FLAG2_SPOSITCH)
e1
:
SetHintTiming
(
TIMING_DRAW_PHASE
,
TIMING_DRAW_PHASE
+
TIMING_TOHAND
)
--e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1
:
SetCost
(
cm
.
cost
)
...
...
@@ -119,7 +120,7 @@ function cm.initial_effect(c)
end
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_MZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451013.lua
View file @
ff98ea01
...
...
@@ -108,7 +108,7 @@ function cm.initial_effect(c)
end
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_MZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451014.lua
View file @
ff98ea01
...
...
@@ -110,7 +110,7 @@ function cm.initial_effect(c)
end
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_MZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451015.lua
View file @
ff98ea01
...
...
@@ -95,7 +95,7 @@ function cm.initial_effect(c)
end
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_MZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
@@ -259,7 +259,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ING
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
ev0
end
)
e1
:
SetOperation
(
cm
.
rsop
)
...
...
@@ -282,7 +282,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ING
and
rc
:
IsRelateToEffect
(
re
)
then
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ED
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
...
...
expansions/script/c11451017.lua
View file @
ff98ea01
...
...
@@ -88,7 +88,7 @@ function cm.initial_effect(c)
end
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_MZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451022.lua
View file @
ff98ea01
...
...
@@ -29,7 +29,8 @@ function cm.initial_effect(c)
e3
:
SetTarget
(
cm
.
sumtg
)
e3
:
SetOperation
(
cm
.
sumop
)
c
:
RegisterEffect
(
e3
)
cm
.
hand_effect
=
e3
cm
.
hand_effect
=
cm
.
hand_effect
or
{}
cm
.
hand_effect
[
c
]
=
e3
end
function
cm
.
filter
(
c
)
return
c
:
GetOriginalType
()
&
TYPE_LINK
==
0
...
...
@@ -80,10 +81,13 @@ function cm.sumcost(e,tp,eg,ep,ev,re,r,rp,chk)
--Debug.Message(Duel.GetMatchingGroupCount(cm.smfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,fg,e,tp,fg))
Duel
.
SendtoHand
(
fg
,
nil
,
REASON_COST
)
end
function
cm
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
IsCostChecked
()
end
--Duel.IsExistingMatchingCard(cm.smfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil,e,tp
) end
function
cm
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
exchk
)
if
chk
==
0
then
return
e
:
IsCostChecked
()
or
(
exchk
==
100
and
Duel
.
IsExistingMatchingCard
(
cm
.
smfilter11
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
cm
.
smfilter11
(
c
)
return
c
:
IsSummonable
(
true
,
nil
)
or
c
:
IsMSetable
(
true
,
nil
)
end
function
cm
.
smfilter
(
c
,
e
,
tp
,
fg
)
local
eset1
=
{
c
:
IsHasEffect
(
EFFECT_LIMIT_SUMMON_PROC
)}
local
eset2
=
{
c
:
IsHasEffect
(
EFFECT_SUMMON_PROC
)}
...
...
expansions/script/c11451031.lua
View file @
ff98ea01
...
...
@@ -31,7 +31,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetHandler
():
GetOriginalCode
()
==
m
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451034.lua
View file @
ff98ea01
...
...
@@ -19,7 +19,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetHandler
():
GetOriginalCode
()
==
m
then
return
LOCATION_SZONE
+
LOCATION_PZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451410.lua
View file @
ff98ea01
...
...
@@ -53,7 +53,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
@@ -130,7 +130,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ING
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ED
)
if
te
:
IsHasType
(
EFFECT_TYPE_QUICK_O
)
then
c
:
CancelToGrave
(
false
)
local
te2
=
te
:
Clone
()
...
...
@@ -150,7 +150,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ING
and
rc
:
IsRelateToEffect
(
re
)
then
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ED
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
...
...
expansions/script/c11451475.lua
View file @
ff98ea01
...
...
@@ -40,7 +40,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451547.lua
View file @
ff98ea01
...
...
@@ -75,7 +75,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451583.lua
View file @
ff98ea01
...
...
@@ -58,7 +58,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
@@ -101,7 +101,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ING
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
ev0
end
)
e1
:
SetOperation
(
cm
.
rsop
)
...
...
@@ -113,7 +113,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ING
and
rc
:
IsRelateToEffect
(
re
)
then
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ED
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
...
...
expansions/script/c11451618.lua
View file @
ff98ea01
...
...
@@ -12,7 +12,8 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
sptg
)
e1
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e1
)
cm
.
hand_effect
=
e1
cm
.
hand_effect
=
cm
.
hand_effect
or
{}
cm
.
hand_effect
[
c
]
=
e1
--search
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
...
...
@@ -102,8 +103,9 @@ function cm.efffilter(c,tp,eg,ep,ev,re,r,rp)
if
not
(
c
:
IsSetCard
(
0x3978
)
and
c
:
IsType
(
TYPE_MONSTER
))
then
return
false
end
local
te
=
c
.
hand_effect
if
not
te
then
return
false
end
te
=
c
.
hand_effect
[
c
]
local
tg
=
te
:
GetTarget
()
return
not
tg
or
(
tg
and
tg
(
te
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
))
return
not
tg
or
(
tg
and
tg
(
te
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
,
100
))
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -117,7 +119,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
GetColumnGroupCount
()
==
0
and
#
hg
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
2
))
local
tc
=
hg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
te
=
tc
.
hand_effect
local
te
=
tc
.
hand_effect
[
tc
]
local
op
=
te
:
GetOperation
()
if
op
then
tc
:
CreateEffectRelation
(
te
)
...
...
expansions/script/c11451632.lua
View file @
ff98ea01
...
...
@@ -59,7 +59,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451633.lua
View file @
ff98ea01
...
...
@@ -59,7 +59,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451634.lua
View file @
ff98ea01
...
...
@@ -59,7 +59,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451635.lua
View file @
ff98ea01
...
...
@@ -59,7 +59,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451636.lua
View file @
ff98ea01
...
...
@@ -59,7 +59,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451637.lua
View file @
ff98ea01
...
...
@@ -59,7 +59,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451638.lua
View file @
ff98ea01
...
...
@@ -45,7 +45,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451725.lua
View file @
ff98ea01
...
...
@@ -59,7 +59,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451726.lua
View file @
ff98ea01
...
...
@@ -86,7 +86,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451767.lua
View file @
ff98ea01
...
...
@@ -57,7 +57,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451779.lua
View file @
ff98ea01
...
...
@@ -58,7 +58,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
@@ -95,7 +95,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ING
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
ev0
end
)
e1
:
SetOperation
(
cm
.
rsop
)
...
...
@@ -107,7 +107,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ING
and
rc
:
IsRelateToEffect
(
re
)
then
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ED
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
...
...
expansions/script/c11451780.lua
View file @
ff98ea01
...
...
@@ -63,7 +63,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
@@ -100,7 +100,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ING
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
ev0
end
)
e1
:
SetOperation
(
cm
.
rsop
)
...
...
@@ -112,7 +112,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ING
and
rc
:
IsRelateToEffect
(
re
)
then
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ED
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
...
...
expansions/script/c11451781.lua
View file @
ff98ea01
...
...
@@ -63,7 +63,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
@@ -100,7 +100,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ING
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
ev0
end
)
e1
:
SetOperation
(
cm
.
rsop
)
...
...
@@ -112,7 +112,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ING
and
rc
:
IsRelateToEffect
(
re
)
then
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ED
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
...
...
expansions/script/c11451782.lua
View file @
ff98ea01
...
...
@@ -61,7 +61,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
@@ -120,7 +120,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ING
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
ev0
end
)
e1
:
SetOperation
(
cm
.
rsop
)
...
...
@@ -132,7 +132,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ING
and
rc
:
IsRelateToEffect
(
re
)
then
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ED
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
...
...
expansions/script/c11451824.lua
View file @
ff98ea01
...
...
@@ -37,7 +37,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_FZONE
+
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451834.lua
View file @
ff98ea01
...
...
@@ -71,7 +71,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451837.lua
View file @
ff98ea01
...
...
@@ -29,8 +29,8 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
if
e
:
GetHandler
():
IsType
(
TYPE_FIELD
)
then
return
LOCATION_FZONE
+
LOCATION_SZONE
end
return
LOCATION_SZONE
if
e
:
GetHandler
():
IsType
(
TYPE_FIELD
)
then
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451861.lua
View file @
ff98ea01
...
...
@@ -62,7 +62,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
@@ -107,7 +107,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ING
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
ev0
end
)
e1
:
SetOperation
(
cm
.
rsop
)
...
...
@@ -119,7 +119,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ING
and
rc
:
IsRelateToEffect
(
re
)
then
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ED
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
...
...
expansions/script/c11451880.lua
View file @
ff98ea01
...
...
@@ -25,7 +25,7 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
>=
aux
.
Stringid
(
m
,
1
)
and
e
:
GetDescription
()
<=
aux
.
Stringid
(
m
,
7
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
@@ -50,7 +50,7 @@ function cm.initial_effect(c)
local
_GetActivateSequence
=
Effect
.
GetActivateSequence
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
>=
aux
.
Stringid
(
m
,
1
)
and
e
:
GetDescription
()
<=
aux
.
Stringid
(
m
,
7
)
then
return
LOCATION_SZONE
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451906.lua
View file @
ff98ea01
...
...
@@ -78,8 +78,8 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
if
e
:
GetHandler
():
IsType
(
TYPE_FIELD
)
then
return
LOCATION_FZONE
end
return
LOCATION_SZONE
if
e
:
GetHandler
():
IsType
(
TYPE_FIELD
)
then
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451907.lua
View file @
ff98ea01
...
...
@@ -80,8 +80,8 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
or
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
1
)
then
if
e
:
GetHandler
():
IsType
(
TYPE_FIELD
)
then
return
LOCATION_FZONE
end
return
LOCATION_SZONE
if
e
:
GetHandler
():
IsType
(
TYPE_FIELD
)
then
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11451908.lua
View file @
ff98ea01
...
...
@@ -47,8 +47,8 @@ function cm.initial_effect(c)
local
_NegateActivation
=
Duel
.
NegateActivation
function
Effect
.
GetActivateLocation
(
e
)
if
e
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
if
e
:
GetHandler
():
IsType
(
TYPE_FIELD
)
then
return
LOCATION_FZONE
end
return
LOCATION_SZONE
if
e
:
GetHandler
():
IsType
(
TYPE_FIELD
)
then
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
return
_GetActivateLocation
(
e
)
end
...
...
expansions/script/c11560305.lua
View file @
ff98ea01
...
...
@@ -64,9 +64,10 @@ function c11560305.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Remove
(
dg
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
c11560305
.
ngcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
te
=
Duel
.
GetChainInfo
(
ev
-
1
,
CHAININFO_TRIGGERING_EFFECT
)
return
rp
==
1
-
tp
and
te
and
te
:
GetHandler
().
SetCard_XdMcy
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
function
c11560305
.
ngcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
n
=
Duel
.
GetCurrentChain
()
local
te
,
p
=
Duel
.
GetChainInfo
(
n
-
1
,
CHAININFO_TRIGGERING_EFFECT
,
CHAININFO_TRIGGERING_PLAYER
)
return
rp
==
1
-
tp
and
p
==
tp
and
te
and
te
:
GetHandler
().
SetCard_XdMcy
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c11560305
.
ngckfil
(
c
,
rtype
)
return
c
:
IsType
(
rtype
)
and
c
:
IsAbleToRemoveAsCost
()
...
...
@@ -86,39 +87,40 @@ function c11560305.ngtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c11560305
.
ngop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--
if Duel.IsChainDisablable(0) then
--
local sel=1
--
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND+LOCATION_ONFIELD,nil)
--
Duel.Hint(HINT_SELECTMSG,1-tp,aux.Stringid(11560305,0))
--
if g:GetCount()>0 then
--
sel=Duel.SelectOption(1-tp,1213,1214)
--
else
--
sel=Duel.SelectOption(1-tp,1214)+1
--
end
--
if sel==0 then
--
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_REMOVE)
--
local sg=g:Select(1-tp,1,1,nil)
--
Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)
--
Duel.NegateEffect(0)
--
return
--
end
--
end
--
if Duel.IsChainDisablable(0) then
--
local sel=1
--
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND+LOCATION_ONFIELD,nil)
--
Duel.Hint(HINT_SELECTMSG,1-tp,aux.Stringid(11560305,0))
--
if g:GetCount()>0 then
--
sel=Duel.SelectOption(1-tp,1213,1214)
--
else
--
sel=Duel.SelectOption(1-tp,1214)+1
--
end
--
if sel==0 then
--
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_REMOVE)
--
local sg=g:Select(1-tp,1,1,nil)
--
Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)
--
Duel.NegateEffect(0)
--
return
--
end
--
end
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
c11560305
.
rspcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
te
=
Duel
.
GetChainInfo
(
ev
-
1
,
CHAININFO_TRIGGERING_EFFECT
)
return
rp
==
1
-
tp
and
te
and
te
:
GetHandler
().
SetCard_XdMcy
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
local
n
=
Duel
.
GetCurrentChain
()
local
te
,
p
=
Duel
.
GetChainInfo
(
n
-
1
,
CHAININFO_TRIGGERING_EFFECT
,
CHAININFO_TRIGGERING_PLAYER
)
return
rp
==
1
-
tp
and
p
==
tp
and
te
and
te
:
GetHandler
().
SetCard_XdMcy
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c11560305
.
rsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
fals
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
tru
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c11560305
.
rspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
SpecialSummon
(
c
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
true
,
fals
e
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
true
,
tru
e
,
POS_FACEUP
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
...
...
expansions/script/c33201454.lua
View file @
ff98ea01
...
...
@@ -56,7 +56,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
2
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
...
...
expansions/script/c53767009.lua
View file @
ff98ea01
...
...
@@ -42,31 +42,45 @@ function s.counterfilter(c)
end
function
s
.
setcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
id
,
tp
,
ACTIVITY_SPSUMMON
)
<
2
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
s
.
splimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetOperation
(
s
.
checkop
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCode
(
92345028
)
e3
:
SetTargetRange
(
1
,
0
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
if
Duel
.
GetCustomActivityCount
(
id
,
tp
,
ACTIVITY_SPSUMMON
)
<
1
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
s
.
splimit1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetOperation
(
s
.
checkop
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCode
(
92345028
)
e3
:
SetTargetRange
(
1
,
0
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
else
local
e4
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetTargetRange
(
1
,
0
)
e4
:
SetTarget
(
s
.
splimit2
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e4
,
tp
)
end
end
function
s
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
s
.
splimit
1
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
not
c
:
IsType
(
TYPE_FUSION
)
and
aux
.
ExtraDeckSummonCountLimit
[
sump
]
<=
0
end
function
s
.
splimit2
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
not
c
:
IsType
(
TYPE_FUSION
)
end
function
s
.
ckfilter
(
c
,
tp
)
return
c
:
IsSummonPlayer
(
tp
)
and
(
c
:
IsPreviousLocation
(
LOCATION_EXTRA
)
and
not
c
:
IsType
(
TYPE_FUSION
))
end
...
...
expansions/script/c98920369.lua
View file @
ff98ea01
...
...
@@ -50,7 +50,7 @@ function c98920369.cfilter1(c,tp)
return
c
:
IsRace
(
RACE_REPTILE
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
end
function
c98920369
.
spcost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
tp
,
c98920369
.
cfilter1
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
tp
,
c98920369
.
cfilter1
,
1
,
nil
,
REASON_COST
,
true
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
c98920369
.
cfilter1
,
1
,
1
,
nil
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
...
...
expansions/script/c98940034.lua
View file @
ff98ea01
--黑羽-顺风之赛克罗
function
c98940034
.
initial_effect
(
c
)
SetSPSummonOnce
(
c
,
98940034
)
c
:
SetSPSummonOnce
(
c
,
98940034
)
--link summon
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkSetCard
,
0x33
),
2
,
2
)
...
...
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