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