Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
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
MyCard
ygopro-scripts
Commits
2f551790
Commit
2f551790
authored
Apr 08, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9ddefd57
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
25 additions
and
57 deletions
+25
-57
c22200403.lua
c22200403.lua
+1
-1
c2359348.lua
c2359348.lua
+2
-5
c31531170.lua
c31531170.lua
+2
-4
c39024589.lua
c39024589.lua
+1
-3
c45383307.lua
c45383307.lua
+2
-2
c46500985.lua
c46500985.lua
+1
-4
c54941203.lua
c54941203.lua
+1
-3
c57554544.lua
c57554544.lua
+1
-1
c59057953.lua
c59057953.lua
+1
-3
c62681049.lua
c62681049.lua
+1
-4
c65646587.lua
c65646587.lua
+2
-2
c67237709.lua
c67237709.lua
+1
-2
c67754901.lua
c67754901.lua
+1
-3
c7241272.lua
c7241272.lua
+3
-6
c72772445.lua
c72772445.lua
+1
-1
c78949372.lua
c78949372.lua
+1
-4
c9030160.lua
c9030160.lua
+1
-4
c96073342.lua
c96073342.lua
+1
-4
c9989792.lua
c9989792.lua
+1
-1
No files found.
c22200403.lua
View file @
2f551790
...
@@ -69,7 +69,7 @@ function c22200403.initial_effect(c)
...
@@ -69,7 +69,7 @@ function c22200403.initial_effect(c)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
end
end
function
c22200403
.
effcon
(
e
)
function
c22200403
.
effcon
(
e
)
return
Duel
.
GetFieldGroup
(
0
,
LOCATION_PZONE
,
LOCATION_PZONE
)
>=
e
:
GetLabel
()
return
Duel
.
GetFieldGroup
Count
(
0
,
LOCATION_PZONE
,
LOCATION_PZONE
)
>=
e
:
GetLabel
()
end
end
function
c22200403
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c22200403
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
...
...
c2359348.lua
View file @
2f551790
...
@@ -19,11 +19,8 @@ function c2359348.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -19,11 +19,8 @@ function c2359348.condition(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c2359348
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c2359348
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
2
,
nil
)
end
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
if
chk
==
0
then
return
tc1
and
tc2
and
tc1
:
IsCanBeEffectTarget
(
e
)
and
tc2
:
IsCanBeEffectTarget
(
e
)
end
local
g
=
Group
.
FromCards
(
tc1
,
tc2
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
end
end
...
...
c31531170.lua
View file @
2f551790
...
@@ -11,10 +11,8 @@ function c31531170.initial_effect(c)
...
@@ -11,10 +11,8 @@ function c31531170.initial_effect(c)
end
end
function
c31531170
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c31531170
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
local
tc1
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_PZONE
,
0
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
0
,
LOCATION_PZONE
,
2
,
nil
)
end
local
tc2
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_PZONE
,
1
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_PZONE
)
if
chk
==
0
then
return
tc1
and
tc2
and
tc1
:
IsCanBeEffectTarget
(
e
)
and
tc2
:
IsCanBeEffectTarget
(
e
)
end
local
g
=
Group
.
FromCards
(
tc1
,
tc2
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetTargetCard
(
g
)
end
end
function
c31531170
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31531170
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c39024589.lua
View file @
2f551790
...
@@ -50,9 +50,7 @@ function c39024589.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,9 +50,7 @@ function c39024589.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c39024589
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c39024589
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_PZONE
,
0
,
2
,
nil
,
0x10ec
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
return
tc1
and
tc1
:
IsSetCard
(
0x10ec
)
and
tc2
and
tc2
:
IsSetCard
(
0x10ec
)
end
end
function
c39024589
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c39024589
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
...
...
c45383307.lua
View file @
2f551790
...
@@ -70,9 +70,9 @@ function c45383307.thfilter(c)
...
@@ -70,9 +70,9 @@ function c45383307.thfilter(c)
end
end
function
c45383307
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c45383307
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_
SZONE
)
and
c
:
GetPreviousSequence
()
==
5
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
return
c
:
IsPreviousLocation
(
LOCATION_
FZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
end
function
c45383307
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c45383307
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c45383307
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c45383307
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
...
...
c46500985.lua
View file @
2f551790
...
@@ -29,10 +29,7 @@ function c46500985.initial_effect(c)
...
@@ -29,10 +29,7 @@ function c46500985.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c46500985
.
immcon
(
e
)
function
c46500985
.
immcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
1
,
nil
,
0xe1
)
local
c1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
local
c2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
return
(
c1
and
c1
:
IsSetCard
(
0xe1
))
or
(
c2
and
c2
:
IsSetCard
(
0xe1
))
end
end
function
c46500985
.
etarget
(
e
,
c
)
function
c46500985
.
etarget
(
e
,
c
)
return
c
:
IsSetCard
(
0xe1
)
and
not
c
:
IsType
(
TYPE_EFFECT
)
return
c
:
IsSetCard
(
0xe1
)
and
not
c
:
IsType
(
TYPE_EFFECT
)
...
...
c54941203.lua
View file @
2f551790
...
@@ -25,9 +25,7 @@ function c54941203.initial_effect(c)
...
@@ -25,9 +25,7 @@ function c54941203.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c54941203
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c54941203
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_PZONE
,
0
,
2
,
nil
,
0x98
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
return
tc1
and
tc1
:
IsSetCard
(
0x98
)
and
tc2
and
tc2
:
IsSetCard
(
0x98
)
end
end
function
c54941203
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c54941203
.
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
...
...
c57554544.lua
View file @
2f551790
...
@@ -89,7 +89,7 @@ function c57554544.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -89,7 +89,7 @@ function c57554544.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c57554544
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c57554544
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_
SZONE
)
and
c
:
GetPreviousSequence
()
==
5
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
return
c
:
IsPreviousLocation
(
LOCATION_
FZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
end
function
c57554544
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c57554544
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
c59057953.lua
View file @
2f551790
...
@@ -11,9 +11,7 @@ function c59057953.initial_effect(c)
...
@@ -11,9 +11,7 @@ function c59057953.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c59057953
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c59057953
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_PZONE
,
0
,
2
,
nil
,
0x10ec
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
return
tc1
and
tc1
:
IsSetCard
(
0x10ec
)
and
tc2
and
tc2
:
IsSetCard
(
0x10ec
)
end
end
function
c59057953
.
filter
(
c
)
function
c59057953
.
filter
(
c
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsSetCard
(
0x10ec
)
and
not
c
:
IsForbidden
()
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsSetCard
(
0x10ec
)
and
not
c
:
IsForbidden
()
...
...
c62681049.lua
View file @
2f551790
...
@@ -28,8 +28,5 @@ function c62681049.tdtg(e,c)
...
@@ -28,8 +28,5 @@ function c62681049.tdtg(e,c)
return
(
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0xb3
))
and
c
:
IsReason
(
REASON_EFFECT
)
return
(
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0xb3
))
and
c
:
IsReason
(
REASON_EFFECT
)
end
end
function
c62681049
.
tdcon
(
e
)
function
c62681049
.
tdcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
1
,
nil
,
0xb3
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
return
(
tc1
and
tc1
:
IsSetCard
(
0xb3
))
or
(
tc2
and
tc2
:
IsSetCard
(
0xb3
))
end
end
c65646587.lua
View file @
2f551790
...
@@ -24,7 +24,7 @@ function c65646587.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -24,7 +24,7 @@ function c65646587.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
if
chk
==
0
then
local
chkf
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
PLAYER_NONE
or
tp
local
chkf
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
PLAYER_NONE
or
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
Card
.
IsOnField
,
nil
)
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
Card
.
IsOnField
,
nil
)
if
Duel
.
GetField
Card
(
tp
,
LOCATION_PZONE
,
0
)
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
then
if
Duel
.
GetField
GroupCount
(
tp
,
LOCATION_PZONE
,
0
)
>=
2
then
mg1
:
Merge
(
Duel
.
GetMatchingGroup
(
c65646587
.
filter0
,
tp
,
LOCATION_PZONE
,
0
,
nil
,
e
))
mg1
:
Merge
(
Duel
.
GetMatchingGroup
(
c65646587
.
filter0
,
tp
,
LOCATION_PZONE
,
0
,
nil
,
e
))
end
end
local
res
=
Duel
.
IsExistingMatchingCard
(
c65646587
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
res
=
Duel
.
IsExistingMatchingCard
(
c65646587
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
...
@@ -44,7 +44,7 @@ end
...
@@ -44,7 +44,7 @@ end
function
c65646587
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65646587
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
chkf
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
PLAYER_NONE
or
tp
local
chkf
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
PLAYER_NONE
or
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
c65646587
.
filter1
,
nil
,
e
)
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
c65646587
.
filter1
,
nil
,
e
)
if
Duel
.
GetField
Card
(
tp
,
LOCATION_PZONE
,
0
)
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
then
if
Duel
.
GetField
GroupCount
(
tp
,
LOCATION_PZONE
,
0
)
>=
2
then
mg1
:
Merge
(
Duel
.
GetMatchingGroup
(
c65646587
.
filter0
,
tp
,
LOCATION_PZONE
,
0
,
nil
,
e
))
mg1
:
Merge
(
Duel
.
GetMatchingGroup
(
c65646587
.
filter0
,
tp
,
LOCATION_PZONE
,
0
,
nil
,
e
))
end
end
local
sg1
=
Duel
.
GetMatchingGroup
(
c65646587
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
sg1
=
Duel
.
GetMatchingGroup
(
c65646587
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
...
...
c67237709.lua
View file @
2f551790
...
@@ -83,8 +83,7 @@ function c67237709.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -83,8 +83,7 @@ function c67237709.drop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c67237709
.
thcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67237709
.
thcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_EFFECT
)
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_FZONE
)
and
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
c
:
GetPreviousSequence
()
==
5
end
end
function
c67237709
.
thfilter2
(
c
)
function
c67237709
.
thfilter2
(
c
)
return
c
:
IsSetCard
(
0xd2
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xd2
)
and
c
:
IsAbleToHand
()
...
...
c67754901.lua
View file @
2f551790
...
@@ -31,9 +31,7 @@ function c67754901.indfilter(c)
...
@@ -31,9 +31,7 @@ function c67754901.indfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x99
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x99
)
end
end
function
c67754901
.
indcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67754901
.
indcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_PZONE
,
0
,
1
,
nil
,
0x99
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
return
(
tc1
and
tc1
:
IsSetCard
(
0x99
))
or
(
tc2
and
tc2
:
IsSetCard
(
0x99
))
end
end
function
c67754901
.
indtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c67754901
.
indtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c67754901
.
indfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c67754901
.
indfilter
(
chkc
)
end
...
...
c7241272.lua
View file @
2f551790
...
@@ -24,14 +24,11 @@ function c7241272.initial_effect(c)
...
@@ -24,14 +24,11 @@ function c7241272.initial_effect(c)
e3
:
SetOperation
(
c7241272
.
spop
)
e3
:
SetOperation
(
c7241272
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c7241272
.
desfilter
(
c
)
return
c
:
GetSequence
()
==
5
end
function
c7241272
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c7241272
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
SZONE
)
and
c7241272
.
desfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
FZONE
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c7241272
.
desfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_S
ZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_FZONE
,
LOCATION_F
ZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c7241272
.
desfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_S
ZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_FZONE
,
LOCATION_F
ZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c7241272
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c7241272
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c72772445.lua
View file @
2f551790
...
@@ -48,7 +48,7 @@ function c72772445.actcon(e)
...
@@ -48,7 +48,7 @@ function c72772445.actcon(e)
end
end
function
c72772445
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c72772445
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_
SZONE
)
and
c
:
GetPreviousSequence
()
==
5
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
return
c
:
IsPreviousLocation
(
LOCATION_
FZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
end
function
c72772445
.
spfilter
(
c
,
e
,
tp
)
function
c72772445
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xe2
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xe2
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c78949372.lua
View file @
2f551790
...
@@ -78,10 +78,7 @@ function c78949372.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -78,10 +78,7 @@ function c78949372.drop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c78949372
.
tgcon
(
e
)
function
c78949372
.
tgcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
1
,
nil
,
0xd0
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
return
(
tc1
and
tc1
:
IsSetCard
(
0xd0
))
or
(
tc2
and
tc2
:
IsSetCard
(
0xd0
))
end
end
function
c78949372
.
effectfilter
(
e
,
ct
)
function
c78949372
.
effectfilter
(
e
,
ct
)
local
p
=
e
:
GetHandlerPlayer
()
local
p
=
e
:
GetHandlerPlayer
()
...
...
c9030160.lua
View file @
2f551790
...
@@ -48,10 +48,7 @@ function c9030160.initial_effect(c)
...
@@ -48,10 +48,7 @@ function c9030160.initial_effect(c)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
end
end
function
c9030160
.
condition
(
e
)
function
c9030160
.
condition
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
2
,
nil
,
0xaf
)
local
pc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
local
pc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
return
pc1
and
pc2
and
pc1
:
IsSetCard
(
0xaf
)
and
pc2
:
IsSetCard
(
0xaf
)
end
end
function
c9030160
.
sumlimit
(
e
,
c
)
function
c9030160
.
sumlimit
(
e
,
c
)
if
not
c
then
return
false
end
if
not
c
then
return
false
end
...
...
c96073342.lua
View file @
2f551790
...
@@ -40,8 +40,5 @@ function c96073342.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,8 +40,5 @@ function c96073342.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c96073342
.
handcon
(
e
)
function
c96073342
.
handcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
2
,
nil
,
0xc4
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
return
tc1
and
tc1
:
IsSetCard
(
0xc4
)
and
tc2
and
tc2
:
IsSetCard
(
0xc4
)
end
end
c9989792.lua
View file @
2f551790
...
@@ -38,7 +38,7 @@ function c9989792.initial_effect(c)
...
@@ -38,7 +38,7 @@ function c9989792.initial_effect(c)
end
end
function
c9989792
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9989792
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_
SZONE
)
and
c
:
GetPreviousSequence
()
==
5
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
return
c
:
IsPreviousLocation
(
LOCATION_
FZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
end
function
c9989792
.
thfilter
(
c
)
function
c9989792
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xe2
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xe2
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
...
...
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