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
8fb637f2
Commit
8fb637f2
authored
Apr 12, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f40ca5b7
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
42 additions
and
37 deletions
+42
-37
expansions/script/c11451687.lua
expansions/script/c11451687.lua
+2
-2
expansions/script/c11451801.lua
expansions/script/c11451801.lua
+1
-0
expansions/script/c11451867.lua
expansions/script/c11451867.lua
+1
-1
expansions/script/c11451884.lua
expansions/script/c11451884.lua
+1
-0
expansions/script/c28315647.lua
expansions/script/c28315647.lua
+1
-1
expansions/script/c28315849.lua
expansions/script/c28315849.lua
+1
-1
expansions/script/c28316144.lua
expansions/script/c28316144.lua
+1
-1
expansions/script/c28398510.lua
expansions/script/c28398510.lua
+3
-3
expansions/script/c53713015.lua
expansions/script/c53713015.lua
+1
-1
expansions/script/c53722008.lua
expansions/script/c53722008.lua
+1
-1
expansions/script/c53739014.lua
expansions/script/c53739014.lua
+2
-2
expansions/script/c53764011.lua
expansions/script/c53764011.lua
+1
-1
expansions/script/c53766010.lua
expansions/script/c53766010.lua
+1
-1
expansions/script/c53766011.lua
expansions/script/c53766011.lua
+1
-1
expansions/script/c53766012.lua
expansions/script/c53766012.lua
+1
-1
expansions/script/c53766014.lua
expansions/script/c53766014.lua
+1
-1
expansions/script/c53766016.lua
expansions/script/c53766016.lua
+1
-1
expansions/script/c53766019.lua
expansions/script/c53766019.lua
+1
-1
expansions/script/c53766022.lua
expansions/script/c53766022.lua
+1
-1
expansions/script/c53796077.lua
expansions/script/c53796077.lua
+15
-11
expansions/script/c53799141.lua
expansions/script/c53799141.lua
+1
-1
expansions/script/c53799182.lua
expansions/script/c53799182.lua
+1
-1
expansions/script/c53799198.lua
expansions/script/c53799198.lua
+1
-1
expansions/script/c53799261.lua
expansions/script/c53799261.lua
+0
-1
expansions/script/c98920184.lua
expansions/script/c98920184.lua
+1
-1
No files found.
expansions/script/c11451687.lua
View file @
8fb637f2
--洗衣龙女呼唤
--洗衣龙女呼唤
local
m
=
11451687
local
cm
,
m
=
GetID
()
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_TODECK
)
e1
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_TODECK
)
...
@@ -76,6 +75,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -76,6 +75,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e3
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e3
)
tc
:
RegisterEffect
(
e3
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
end
end
end
end
...
...
expansions/script/c11451801.lua
View file @
8fb637f2
...
@@ -83,5 +83,6 @@ function cm.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -83,5 +83,6 @@ function cm.drop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_PUBLIC
)
e1
:
SetCode
(
EFFECT_PUBLIC
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
dc
:
RegisterEffect
(
e1
,
true
)
dc
:
RegisterEffect
(
e1
,
true
)
Duel
.
ConfirmCards
(
1
-
tp
,
dc
)
end
end
end
end
\ No newline at end of file
expansions/script/c11451867.lua
View file @
8fb637f2
...
@@ -79,7 +79,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -79,7 +79,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
sc
:
RegisterEffect
(
e1
,
true
)
sc
:
RegisterEffect
(
e1
,
true
)
c
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
c
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
HintSelection
(
Group
.
FromCards
(
sc
)
)
Duel
.
ConfirmCards
(
tp
,
sc
)
--hand
--hand
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
expansions/script/c11451884.lua
View file @
8fb637f2
...
@@ -124,6 +124,7 @@ function cm.costop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -124,6 +124,7 @@ function cm.costop2(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_PUBLIC
)
e1
:
SetCode
(
EFFECT_PUBLIC
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
g
:
GetFirst
():
RegisterEffect
(
e1
)
g
:
GetFirst
():
RegisterEffect
(
e1
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
:
GetFirst
())
else
else
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
end
...
...
expansions/script/c28315647.lua
View file @
8fb637f2
...
@@ -36,7 +36,7 @@ function c28315647.initial_effect(c)
...
@@ -36,7 +36,7 @@ function c28315647.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c28315647
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c28315647
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_REMOVED
)
and
re
:
GetHandler
():
IsSetCard
(
0x283
)
and
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_REMOVED
)
and
(
re
and
re
:
GetHandler
():
IsSetCard
(
0x283
)
)
and
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
end
end
function
c28315647
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c28315647
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
expansions/script/c28315849.lua
View file @
8fb637f2
...
@@ -36,7 +36,7 @@ function c28315849.initial_effect(c)
...
@@ -36,7 +36,7 @@ function c28315849.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c28315849
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c28315849
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_REMOVED
)
and
re
:
GetHandler
():
IsSetCard
(
0x283
)
and
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_REMOVED
)
and
(
re
and
re
:
GetHandler
():
IsSetCard
(
0x283
)
)
and
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
end
end
function
c28315849
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c28315849
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
expansions/script/c28316144.lua
View file @
8fb637f2
...
@@ -49,7 +49,7 @@ function c28316144.initial_effect(c)
...
@@ -49,7 +49,7 @@ function c28316144.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c28316144
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c28316144
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_REMOVED
)
and
re
:
GetHandler
():
IsSetCard
(
0x283
)
and
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_REMOVED
)
and
(
re
and
re
:
GetHandler
():
IsSetCard
(
0x283
)
)
and
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
end
end
function
c28316144
.
cfilter
(
c
)
function
c28316144
.
cfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsSetCard
(
0x283
)
and
c
:
IsFaceup
()
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsSetCard
(
0x283
)
and
c
:
IsFaceup
()
...
...
expansions/script/c28398510.lua
View file @
8fb637f2
...
@@ -47,7 +47,7 @@ function c28398510.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,7 +47,7 @@ function c28398510.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetTarget
(
c28398510
.
sumlimit
)
e1
:
SetTarget
(
c28398510
.
sumlimit
)
e1
:
SetLabel
(
tc
:
GetCode
())
e1
:
SetLabel
(
tc
:
Get
Original
Code
())
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
...
@@ -62,13 +62,13 @@ function c28398510.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,13 +62,13 @@ function c28398510.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c28398510
.
sumlimit
(
e
,
c
)
function
c28398510
.
sumlimit
(
e
,
c
)
return
c
:
Is
Cod
e
(
e
:
GetLabel
())
return
c
:
Is
OriginalCodeRul
e
(
e
:
GetLabel
())
end
end
function
c28398510
.
aclimit
(
e
,
re
,
tp
)
function
c28398510
.
aclimit
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
and
re
:
IsActiveType
(
TYPE_MONSTER
)
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
end
function
c28398510
.
rmfilter
(
c
)
function
c28398510
.
rmfilter
(
c
)
return
c
:
IsSetCard
(
0x283
)
and
c
:
IsAbleToRemove
()
return
c
:
IsSetCard
(
0x283
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToRemove
()
end
end
function
c28398510
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c28398510
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c28398510
.
rmfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c28398510
.
rmfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c53713015.lua
View file @
8fb637f2
...
@@ -17,7 +17,7 @@ function cm.initial_effect(c)
...
@@ -17,7 +17,7 @@ function cm.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetOperation
(
cm
.
operation
)
e2
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c53722008.lua
View file @
8fb637f2
...
@@ -23,7 +23,7 @@ function cm.initial_effect(c)
...
@@ -23,7 +23,7 @@ function cm.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
+
CATEGORY_DAMAGE
)
e2
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
+
CATEGORY_DAMAGE
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
NOT_NEGATE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
_FORBIDDEN
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCost
(
cm
.
cost
)
e2
:
SetCost
(
cm
.
cost
)
e2
:
SetTarget
(
cm
.
tg
)
e2
:
SetTarget
(
cm
.
tg
)
...
...
expansions/script/c53739014.lua
View file @
8fb637f2
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_MUST_ATTACK
)
e2
:
SetCode
(
EFFECT_MUST_ATTACK
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_GRANT
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_GRANT
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
...
@@ -22,7 +22,7 @@ function cm.initial_effect(c)
...
@@ -22,7 +22,7 @@ function cm.initial_effect(c)
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
EVENT_BATTLE_START
)
e4
:
SetCode
(
EVENT_BATTLE_START
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetTarget
(
cm
.
tg
)
e4
:
SetTarget
(
cm
.
tg
)
e4
:
SetOperation
(
cm
.
op
)
e4
:
SetOperation
(
cm
.
op
)
local
e5
=
e3
:
Clone
()
local
e5
=
e3
:
Clone
()
...
...
expansions/script/c53764011.lua
View file @
8fb637f2
...
@@ -5,7 +5,7 @@ function cm.initial_effect(c)
...
@@ -5,7 +5,7 @@ function cm.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
--e1:SetProperty(EFFECT_FLAG_CANNOT_INACTIVATE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CAN
NOT_NEGATE
)
--e1:SetProperty(EFFECT_FLAG_CANNOT_INACTIVATE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CAN
_FORBIDDEN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e1
:
SetOperation
(
cm
.
activate
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c53766010.lua
View file @
8fb637f2
...
@@ -87,7 +87,7 @@ function s.sdtg(chain)
...
@@ -87,7 +87,7 @@ function s.sdtg(chain)
end
end
function
s
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
if
e
:
GetHandler
():
GetFlagEffect
(
53766099
)
>
0
then
e
:
SetProperty
(
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
NOT_NEGATE
)
else
e
:
SetProperty
(
0
)
end
if
e
:
GetHandler
():
GetFlagEffect
(
53766099
)
>
0
then
e
:
SetProperty
(
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
_FORBIDDEN
)
else
e
:
SetProperty
(
0
)
end
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
end
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
...
...
expansions/script/c53766011.lua
View file @
8fb637f2
...
@@ -43,7 +43,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,7 +43,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
regtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
regtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
if
chk
==
0
then
if
e
:
GetHandler
():
GetFlagEffect
(
53766099
)
>
0
then
e
:
SetProperty
(
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
NOT_NEGATE
)
else
e
:
SetProperty
(
0
)
end
if
e
:
GetHandler
():
GetFlagEffect
(
53766099
)
>
0
then
e
:
SetProperty
(
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
_FORBIDDEN
)
else
e
:
SetProperty
(
0
)
end
return
true
return
true
end
end
end
end
...
...
expansions/script/c53766012.lua
View file @
8fb637f2
...
@@ -92,7 +92,7 @@ end
...
@@ -92,7 +92,7 @@ end
function
s
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
tp
)
and
s
.
desfilter
(
chkc
)
and
not
eg
:
IsContains
(
chkc
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
tp
)
and
s
.
desfilter
(
chkc
)
and
not
eg
:
IsContains
(
chkc
)
end
if
chk
==
0
then
if
chk
==
0
then
if
e
:
GetHandler
():
GetFlagEffect
(
53766099
)
>
0
then
e
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
NOT_NEGATE
)
else
e
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_SET_AVAILABLE
)
end
if
e
:
GetHandler
():
GetFlagEffect
(
53766099
)
>
0
then
e
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
_FORBIDDEN
)
else
e
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_SET_AVAILABLE
)
end
return
Duel
.
IsExistingTarget
(
s
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
eg
)
return
Duel
.
IsExistingTarget
(
s
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
eg
)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
...
...
expansions/script/c53766014.lua
View file @
8fb637f2
...
@@ -36,7 +36,7 @@ function s.ctfilter(c)
...
@@ -36,7 +36,7 @@ function s.ctfilter(c)
end
end
function
s
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
if
e
:
GetHandler
():
GetFlagEffect
(
53766099
)
>
0
then
e
:
SetProperty
(
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
NOT_NEGATE
)
else
e
:
SetProperty
(
0
)
end
if
e
:
GetHandler
():
GetFlagEffect
(
53766099
)
>
0
then
e
:
SetProperty
(
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
_FORBIDDEN
)
else
e
:
SetProperty
(
0
)
end
return
Duel
.
IsExistingMatchingCard
(
s
.
desfilter
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
s
.
desfilter
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
)
...
...
expansions/script/c53766016.lua
View file @
8fb637f2
...
@@ -40,7 +40,7 @@ end
...
@@ -40,7 +40,7 @@ end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToHand
()
end
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToHand
()
end
if
chk
==
0
then
if
chk
==
0
then
if
e
:
GetHandler
():
GetFlagEffect
(
53766099
)
>
0
then
e
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
NOT_NEGATE
)
else
e
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_SET_AVAILABLE
)
end
if
e
:
GetHandler
():
GetFlagEffect
(
53766099
)
>
0
then
e
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
_FORBIDDEN
)
else
e
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_SET_AVAILABLE
)
end
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
...
...
expansions/script/c53766019.lua
View file @
8fb637f2
...
@@ -34,7 +34,7 @@ end
...
@@ -34,7 +34,7 @@ end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
tp
)
and
s
.
ctfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
tp
)
and
s
.
ctfilter
(
chkc
)
end
if
chk
==
0
then
if
chk
==
0
then
if
e
:
GetHandler
():
GetFlagEffect
(
53766099
)
>
0
then
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
NOT_NEGATE
)
else
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
end
if
e
:
GetHandler
():
GetFlagEffect
(
53766099
)
>
0
then
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
_FORBIDDEN
)
else
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
end
return
Duel
.
IsExistingTarget
(
s
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
return
Duel
.
IsExistingTarget
(
s
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_COUNTER
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_COUNTER
)
...
...
expansions/script/c53766022.lua
View file @
8fb637f2
...
@@ -29,7 +29,7 @@ function s.initial_effect(c)
...
@@ -29,7 +29,7 @@ function s.initial_effect(c)
end
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
if
chk
==
0
then
if
e
:
GetHandler
():
GetFlagEffect
(
53766099
)
>
0
then
e
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
NOT_NEGATE
)
else
e
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
end
if
e
:
GetHandler
():
GetFlagEffect
(
53766099
)
>
0
then
e
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
_FORBIDDEN
)
else
e
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
end
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
<
6
then
return
false
end
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
<
6
then
return
false
end
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
6
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
6
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
...
...
expansions/script/c53796077.lua
View file @
8fb637f2
...
@@ -91,7 +91,7 @@ function cm.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -91,7 +91,7 @@ function cm.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
remfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
1
,
nil
)
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
remfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
1
,
nil
)
end
end
local
sg
=
e
:
GetLabelObject
():
GetLabelObject
()
local
sg
=
e
:
GetLabelObject
():
GetLabelObject
()
if
sg
:
IsContains
(
g
:
GetFirst
())
then
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
NOT_NEGATE
)
else
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
end
if
sg
:
IsContains
(
g
:
GetFirst
())
then
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
_FORBIDDEN
)
else
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
end
end
function
cm
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -191,7 +191,7 @@ function cm.adjustop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -191,7 +191,7 @@ function cm.adjustop1(e,tp,eg,ep,ev,re,r,rp)
for
_
,
te4
in
pairs
(
re4
)
do
for
_
,
te4
in
pairs
(
re4
)
do
local
tg
=
te4
:
GetTarget
()
local
tg
=
te4
:
GetTarget
()
local
o
,
h
=
te4
:
GetOwner
(),
te4
:
GetHandler
()
local
o
,
h
=
te4
:
GetOwner
(),
te4
:
GetHandler
()
if
tg
(
te4
,
c
,
tp
,
tp
,
POS_FACEUP
)
==
true
then
if
tg
(
te4
,
c
,
tp
,
SUMMON_TYPE_SPECIAL
,
POS_FACEUP
,
tp
,
e
)
==
true
then
if
h
then
g
:
AddCard
(
h
)
else
g
:
AddCard
(
o
)
end
if
h
then
g
:
AddCard
(
h
)
else
g
:
AddCard
(
o
)
end
te4
:
SetTarget
(
cm
.
chtg3
(
tg
))
te4
:
SetTarget
(
cm
.
chtg3
(
tg
))
end
end
...
@@ -210,6 +210,7 @@ function cm.adjustop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -210,6 +210,7 @@ function cm.adjustop2(e,tp,eg,ep,ev,re,r,rp)
local
re1
=
{
c
:
IsHasEffect
(
EFFECT_CANNOT_TRIGGER
)}
local
re1
=
{
c
:
IsHasEffect
(
EFFECT_CANNOT_TRIGGER
)}
local
re2
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_CANNOT_ACTIVATE
)}
local
re2
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_CANNOT_ACTIVATE
)}
local
re3
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_ACTIVATE_COST
)}
local
re3
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_ACTIVATE_COST
)}
local
again
=
false
for
_
,
te1
in
pairs
(
re1
)
do
for
_
,
te1
in
pairs
(
re1
)
do
if
te1
:
GetType
()
==
EFFECT_TYPE_SINGLE
then
if
te1
:
GetType
()
==
EFFECT_TYPE_SINGLE
then
local
con
=
te1
:
GetCondition
()
local
con
=
te1
:
GetCondition
()
...
@@ -245,14 +246,17 @@ function cm.adjustop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -245,14 +246,17 @@ function cm.adjustop2(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
for
_
,
te3
in
pairs
(
re3
)
do
for
_
,
te3
in
pairs
(
re3
)
do
local
tg
=
te3
:
GetTarget
()
local
cost
=
te3
:
GetCost
()
local
o
,
h
=
te3
:
GetOwner
(),
te3
:
GetHandler
()
if
cost
and
cost
(
te3
,
e
,
tp
)
==
false
then
if
not
tg
then
local
tg
=
te3
:
GetTarget
()
if
h
then
g
:
AddCard
(
h
)
else
g
:
AddCard
(
o
)
end
local
o
,
h
=
te3
:
GetOwner
(),
te3
:
GetHandler
()
te3
:
SetTarget
(
cm
.
chtg2
(
aux
.
TRUE
))
if
not
tg
then
elseif
tg
(
te3
,
e
,
tp
)
==
true
then
if
h
then
g
:
AddCard
(
h
)
else
g
:
AddCard
(
o
)
end
if
h
then
g
:
AddCard
(
h
)
else
g
:
AddCard
(
o
)
end
te3
:
SetTarget
(
cm
.
chtg2
(
aux
.
TRUE
))
te3
:
SetTarget
(
cm
.
chtg2
(
tg
))
elseif
tg
(
te3
,
e
,
tp
)
==
true
then
if
h
then
g
:
AddCard
(
h
)
else
g
:
AddCard
(
o
)
end
te3
:
SetTarget
(
cm
.
chtg2
(
tg
))
end
end
end
end
end
c
:
ResetFlagEffect
(
m
+
500
)
c
:
ResetFlagEffect
(
m
+
500
)
...
@@ -304,7 +308,7 @@ end
...
@@ -304,7 +308,7 @@ end
function
cm
.
chval
(
_val
)
function
cm
.
chval
(
_val
)
return
function
(
e
,
re
,
...
)
return
function
(
e
,
re
,
...
)
local
x
=
re
:
GetHandler
()
local
x
=
re
:
GetHandler
()
if
x
:
IsHasEffect
(
m
)
and
x
:
GetFlagEffect
(
m
)
<
1
then
return
false
end
if
x
:
IsHasEffect
(
m
)
and
x
:
GetFlagEffect
(
m
+
500
)
<
1
then
return
false
end
return
_val
(
e
,
re
,
...
)
return
_val
(
e
,
re
,
...
)
end
end
end
end
expansions/script/c53799141.lua
View file @
8fb637f2
...
@@ -24,7 +24,7 @@ end
...
@@ -24,7 +24,7 @@ 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
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
Duel
.
GetCustomActivityCount
(
m
,
1
-
tp
,
ACTIVITY_CHAIN
)
>
0
then
if
Duel
.
GetCustomActivityCount
(
m
,
1
-
tp
,
ACTIVITY_CHAIN
)
>
0
then
e
:
SetProperty
(
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
NOT_NEGATE
)
e
:
SetProperty
(
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
_FORBIDDEN
)
else
else
e
:
SetProperty
(
0
)
e
:
SetProperty
(
0
)
end
end
...
...
expansions/script/c53799182.lua
View file @
8fb637f2
...
@@ -75,7 +75,7 @@ function bgmhandle(c,code,count,bgmid,con,cost,tg,op)
...
@@ -75,7 +75,7 @@ function bgmhandle(c,code,count,bgmid,con,cost,tg,op)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e3
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetTargetRange
(
1
,
0
)
e3
:
SetTargetRange
(
1
,
0
)
e3
:
SetValue
(
function
(
e
,
re
,
tp
)
e3
:
SetValue
(
function
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
IsType
(
TYPE_FIELD
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
)
return
re
:
GetHandler
():
IsType
(
TYPE_FIELD
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
)
...
...
expansions/script/c53799198.lua
View file @
8fb637f2
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
end
end
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
end
if
not
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
then
e
:
SetProperty
(
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
NOT_NEGATE
)
else
e
:
SetProperty
(
0
)
end
if
not
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
then
e
:
SetProperty
(
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
_FORBIDDEN
)
else
e
:
SetProperty
(
0
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
0
,
LOCATION_MZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
0
,
LOCATION_MZONE
)
end
end
function
cm
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c53799261.lua
View file @
8fb637f2
...
@@ -6,7 +6,6 @@ function cm.initial_effect(c)
...
@@ -6,7 +6,6 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_POSITION
+
CATEGORY_TOGRAVE
)
e1
:
SetCategory
(
CATEGORY_POSITION
+
CATEGORY_TOGRAVE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
e1
:
SetOperation
(
cm
.
activate
)
...
...
expansions/script/c98920184.lua
View file @
8fb637f2
...
@@ -43,7 +43,7 @@ function c98920184.initial_effect(c)
...
@@ -43,7 +43,7 @@ function c98920184.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c98920184
.
cfilter
(
c
)
function
c98920184
.
cfilter
(
c
)
return
c
:
GetType
()
~=
TYPE_SPIRIT
return
c
:
IsType
(
TYPE_SPIRIT
)
end
end
function
c98920184
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c98920184
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
TYPE_MONSTER
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
TYPE_MONSTER
)
...
...
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