Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
369eb1c0
You need to sign in or sign up before continuing.
Commit
369eb1c0
authored
Mar 28, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
82bf9f75
Pipeline
#11314
passed with stages
in 1 minute and 11 seconds
Changes
20
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
60 additions
and
57 deletions
+60
-57
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100200213.lua
script/c100200213.lua
+2
-2
script/c100200214.lua
script/c100200214.lua
+1
-1
script/c100200216.lua
script/c100200216.lua
+4
-3
script/c100289001.lua
script/c100289001.lua
+3
-1
script/c100418011.lua
script/c100418011.lua
+4
-2
script/c100418014.lua
script/c100418014.lua
+5
-6
script/c100418016.lua
script/c100418016.lua
+3
-4
script/c100418017.lua
script/c100418017.lua
+3
-4
script/c100418018.lua
script/c100418018.lua
+4
-4
script/c100418019.lua
script/c100418019.lua
+7
-7
script/c100418020.lua
script/c100418020.lua
+7
-6
script/c100418026.lua
script/c100418026.lua
+1
-0
script/c100418027.lua
script/c100418027.lua
+1
-1
script/c100418028.lua
script/c100418028.lua
+1
-0
script/c100418202.lua
script/c100418202.lua
+10
-12
script/c100418207.lua
script/c100418207.lua
+1
-1
script/c100418211.lua
script/c100418211.lua
+1
-1
script/c100418212.lua
script/c100418212.lua
+1
-1
script/c101109029.lua
script/c101109029.lua
+1
-1
No files found.
expansions/pre-release.cdb
View file @
369eb1c0
No preview for this file type
script/c100200213.lua
View file @
369eb1c0
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
function
c100200213
.
initial_effect
(
c
)
function
c100200213
.
initial_effect
(
c
)
--to hand
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetTarget
(
c100200213
.
thtg
)
e1
:
SetTarget
(
c100200213
.
thtg
)
...
@@ -30,7 +30,6 @@ function c100200213.initial_effect(c)
...
@@ -30,7 +30,6 @@ function c100200213.initial_effect(c)
end
end
function
c100200213
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100200213
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
3
and
Duel
.
IsPlayerCanRemove
(
tp
)
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
3
and
Duel
.
IsPlayerCanRemove
(
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
)
end
end
function
c100200213
.
rmfilter
(
c
,
g
)
function
c100200213
.
rmfilter
(
c
,
g
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
and
g
:
IsExists
(
c100200213
.
thfilter
,
1
,
c
,
c
:
GetCode
())
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
and
g
:
IsExists
(
c100200213
.
thfilter
,
1
,
c
,
c
:
GetCode
())
...
@@ -51,6 +50,7 @@ function c100200213.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,6 +50,7 @@ function c100200213.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tc
=
dg
:
FilterSelect
(
tp
,
c100200213
.
thfilter
,
1
,
1
,
rc
,
rc
:
GetCode
())
local
tc
=
dg
:
FilterSelect
(
tp
,
c100200213
.
thfilter
,
1
,
1
,
rc
,
rc
:
GetCode
())
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
Duel
.
ShuffleDeck
(
tp
)
Duel
.
ShuffleDeck
(
tp
)
end
end
...
...
script/c100200214.lua
View file @
369eb1c0
...
@@ -30,7 +30,7 @@ end
...
@@ -30,7 +30,7 @@ end
function
c100200214
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100200214
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
:
Is
Faceup
()
and
tc
:
Is
RelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
script/c100200216.lua
View file @
369eb1c0
...
@@ -28,15 +28,16 @@ function c100200216.initial_effect(c)
...
@@ -28,15 +28,16 @@ function c100200216.initial_effect(c)
e3
:
SetCondition
(
c100200216
.
stcon2
)
e3
:
SetCondition
(
c100200216
.
stcon2
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c100200216
.
tdfilter
(
c
)
function
c100200216
.
tdfilter
(
c
,
e
)
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsAbleToDeck
()
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsAbleToDeck
()
and
c
:
IsCanBeEffectTarget
(
e
)
end
end
function
c100200216
.
fselect
(
sg
)
function
c100200216
.
fselect
(
sg
)
return
sg
:
GetCount
()
==
3
or
sg
:
GetCount
()
==
6
return
sg
:
GetCount
()
==
3
or
sg
:
GetCount
()
==
6
end
end
function
c100200216
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c100200216
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
local
g
=
Duel
.
GetMatchingGroup
(
c100200216
.
tdfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c100200216
.
tdfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
,
e
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
#
g
>=
3
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
#
g
>=
3
end
local
max
=
3
local
max
=
3
if
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
then
max
=
6
end
if
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
then
max
=
6
end
...
...
script/c100289001.lua
View file @
369eb1c0
...
@@ -68,6 +68,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -68,6 +68,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
gfilter
(
c
,
att
)
function
s
.
gfilter
(
c
,
att
)
return
c
:
IsAttribute
(
att
)
and
(
c
:
IsType
(
TYPE_NORMAL
)
or
c
:
IsSetCard
(
0x165
))
return
c
:
IsAttribute
(
att
)
and
(
c
:
IsType
(
TYPE_NORMAL
)
or
c
:
IsSetCard
(
0x165
))
and
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_GRAVE
))
end
end
function
s
.
filter
(
c
,
tp
)
function
s
.
filter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToRemove
()
return
c
:
IsFaceup
()
and
c
:
IsAbleToRemove
()
...
@@ -75,7 +76,8 @@ function s.filter(c,tp)
...
@@ -75,7 +76,8 @@ function s.filter(c,tp)
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
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
s
.
filter
(
chkc
,
tp
)
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
s
.
filter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
and
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
...
...
script/c100418011.lua
View file @
369eb1c0
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
function
c100418011
.
initial_effect
(
c
)
function
c100418011
.
initial_effect
(
c
)
--to hand
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetDescription
(
aux
.
Stringid
(
100418011
,
0
))
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
100418011
)
e1
:
SetCountLimit
(
1
,
100418011
)
...
@@ -13,6 +14,7 @@ function c100418011.initial_effect(c)
...
@@ -13,6 +14,7 @@ function c100418011.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--pzone set
--pzone set
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
100418011
,
1
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
100418011
+
100
)
e2
:
SetCountLimit
(
1
,
100418011
+
100
)
...
@@ -42,7 +44,7 @@ function c100418011.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,7 +44,7 @@ function c100418011.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
local
dg
=
Duel
.
GetMatchingGroup
(
c100418011
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
local
dg
=
Duel
.
GetMatchingGroup
(
c100418011
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
local
sg
=
Duel
.
GetMatchingGroup
(
c100418011
.
sfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
sg
=
Duel
.
GetMatchingGroup
(
c100418011
.
sfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
dg
:
GetCount
()
>
0
and
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100418011
,
0
))
then
if
dg
:
GetCount
()
>
0
and
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100418011
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dc
=
dg
:
Select
(
tp
,
1
,
1
,
nil
)
local
dc
=
dg
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
script/c100418014.lua
View file @
369eb1c0
...
@@ -42,7 +42,7 @@ function c100418014.chainlm(e,rp,tp)
...
@@ -42,7 +42,7 @@ function c100418014.chainlm(e,rp,tp)
return
tp
==
rp
or
not
e
:
IsActiveType
(
TYPE_MONSTER
)
return
tp
==
rp
or
not
e
:
IsActiveType
(
TYPE_MONSTER
)
end
end
function
c100418014
.
stfilter
(
c
)
function
c100418014
.
stfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSSetable
()
return
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSSetable
()
end
end
function
c100418014
.
sttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c100418014
.
sttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c100418014
.
stfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c100418014
.
stfilter
(
chkc
)
end
...
@@ -67,17 +67,16 @@ end
...
@@ -67,17 +67,16 @@ end
function
c100418014
.
actfilter
(
c
)
function
c100418014
.
actfilter
(
c
)
return
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsFaceup
()
return
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsFaceup
()
end
end
function
c100418014
.
actcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100418014
.
actcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_EFFECT_ENABLED
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_EFFECT_ENABLED
)
and
not
Duel
.
IsExistingMatchingCard
(
c100418014
.
actfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c100418014
.
actfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c100418014
.
cfilter
(
c
,
tp
,
re
,
r
,
rp
)
function
c100418014
.
cfilter
(
c
)
return
bit
.
band
(
c
:
GetPreviousTypeOnField
(),
TYPE_MONSTER
)
~=
0
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
rp
==
tp
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
re
:
GetHandler
():
GetType
()
==
TYPE_TRAP
and
re
:
IsActiveType
(
TYPE_TRAP
)
end
end
function
c100418014
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100418014
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c100418014
.
cfilter
,
1
,
nil
,
tp
,
re
,
r
,
rp
)
and
not
eg
:
IsContains
(
e
:
GetHandler
()
)
return
re
and
rp
==
tp
and
re
:
GetHandler
():
GetType
()
==
TYPE_TRAP
and
eg
:
IsExists
(
c100418014
.
cfilter
,
1
,
nil
)
end
end
function
c100418014
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100418014
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_HAND
)
>
0
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_HAND
)
>
0
end
...
...
script/c100418016.lua
View file @
369eb1c0
...
@@ -53,12 +53,11 @@ function c100418016.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,12 +53,11 @@ function c100418016.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
end
end
function
c100418016
.
cfilter
(
c
,
tp
,
re
,
r
,
rp
)
function
c100418016
.
cfilter
(
c
)
return
bit
.
band
(
c
:
GetPreviousTypeOnField
(),
TYPE_MONSTER
)
~=
0
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
rp
==
tp
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
re
:
GetHandler
():
GetType
()
==
TYPE_TRAP
and
re
:
IsActiveType
(
TYPE_TRAP
)
end
end
function
c100418016
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100418016
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c100418016
.
cfilter
,
1
,
nil
,
tp
,
re
,
r
,
rp
)
return
re
and
rp
==
tp
and
re
:
GetHandler
():
GetType
()
==
TYPE_TRAP
and
eg
:
IsExists
(
c100418016
.
cfilter
,
1
,
nil
)
end
end
function
c100418016
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100418016
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
...
...
script/c100418017.lua
View file @
369eb1c0
...
@@ -45,12 +45,11 @@ function c100418017.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,12 +45,11 @@ function c100418017.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
function
c100418017
.
cfilter
(
c
,
tp
,
re
,
r
,
rp
)
function
c100418017
.
cfilter
(
c
)
return
bit
.
band
(
c
:
GetPreviousTypeOnField
(),
TYPE_MONSTER
)
~=
0
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
rp
==
tp
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
re
:
GetHandler
():
GetType
()
==
TYPE_TRAP
and
re
:
IsActiveType
(
TYPE_TRAP
)
end
end
function
c100418017
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100418017
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c100418017
.
cfilter
,
1
,
nil
,
tp
,
re
,
r
,
rp
)
return
re
and
rp
==
tp
and
re
:
GetHandler
():
GetType
()
==
TYPE_TRAP
and
eg
:
IsExists
(
c100418017
.
cfilter
,
1
,
nil
)
end
end
function
c100418017
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100418017
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
...
...
script/c100418018.lua
View file @
369eb1c0
...
@@ -47,12 +47,12 @@ function c100418018.stop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,12 +47,12 @@ function c100418018.stop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SSet
(
tp
,
g
:
GetFirst
())
Duel
.
SSet
(
tp
,
g
:
GetFirst
())
end
end
end
end
function
c100418018
.
cfilter
(
c
,
tp
,
re
,
r
,
rp
)
function
c100418018
.
cfilter
(
c
)
return
bit
.
band
(
c
:
GetPreviousTypeOnField
(),
TYPE_MONSTER
)
~=
0
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
rp
==
tp
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
re
:
GetHandler
():
GetType
()
==
TYPE_TRAP
and
re
:
IsActiveType
(
TYPE_TRAP
)
end
end
function
c100418018
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100418018
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c100418018
.
cfilter
,
1
,
nil
,
tp
,
re
,
r
,
rp
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
return
re
and
rp
==
tp
and
re
:
GetHandler
():
GetType
()
==
TYPE_TRAP
and
eg
:
IsExists
(
c100418018
.
cfilter
,
1
,
nil
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
end
end
function
c100418018
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100418018
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
...
...
script/c100418019.lua
View file @
369eb1c0
...
@@ -28,6 +28,9 @@ function c100418019.initial_effect(c)
...
@@ -28,6 +28,9 @@ function c100418019.initial_effect(c)
e2
:
SetOperation
(
c100418019
.
spop
)
e2
:
SetOperation
(
c100418019
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c100418019
.
stfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSetCard
(
0x280
)
and
c
:
IsSSetable
()
end
function
c100418019
.
costfilter
(
c
,
tp
)
function
c100418019
.
costfilter
(
c
,
tp
)
return
c
:
IsDiscardable
()
and
Duel
.
IsExistingMatchingCard
(
c100418019
.
stfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
c
)
return
c
:
IsDiscardable
()
and
Duel
.
IsExistingMatchingCard
(
c100418019
.
stfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
c
)
end
end
...
@@ -38,9 +41,6 @@ function c100418019.stcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -38,9 +41,6 @@ function c100418019.stcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
)
Duel
.
SendtoGrave
(
c
,
REASON_COST
)
Duel
.
DiscardHand
(
tp
,
c100418019
.
costfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
,
tp
)
Duel
.
DiscardHand
(
tp
,
c100418019
.
costfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
,
tp
)
end
end
function
c100418019
.
stfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSetCard
(
0x280
)
and
c
:
IsSSetable
()
end
function
c100418019
.
sttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100418019
.
sttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100418019
.
stfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100418019
.
stfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
end
...
@@ -51,12 +51,12 @@ function c100418019.stop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,12 +51,12 @@ function c100418019.stop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SSet
(
tp
,
g
:
GetFirst
())
Duel
.
SSet
(
tp
,
g
:
GetFirst
())
end
end
end
end
function
c100418019
.
cfilter
(
c
,
tp
,
re
,
r
,
rp
)
function
c100418019
.
cfilter
(
c
)
return
bit
.
band
(
c
:
GetPreviousTypeOnField
(),
TYPE_MONSTER
)
~=
0
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
rp
==
tp
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
re
:
GetHandler
():
GetType
()
==
TYPE_TRAP
and
re
:
IsActiveType
(
TYPE_TRAP
)
end
end
function
c100418019
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100418019
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c100418019
.
cfilter
,
1
,
nil
,
tp
,
re
,
r
,
rp
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
return
re
and
rp
==
tp
and
re
:
GetHandler
():
GetType
()
==
TYPE_TRAP
and
eg
:
IsExists
(
c100418019
.
cfilter
,
1
,
nil
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
end
end
function
c100418019
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100418019
.
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
...
...
script/c100418020.lua
View file @
369eb1c0
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
function
c100418020
.
initial_effect
(
c
)
function
c100418020
.
initial_effect
(
c
)
--Trap activate in set turn
--Trap activate in set turn
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100418020
,
0
))
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
...
@@ -13,6 +14,7 @@ function c100418020.initial_effect(c)
...
@@ -13,6 +14,7 @@ function c100418020.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--to hand or spsummon
--to hand or spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
100418020
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
+
CATEGORY_GRAVE_SPSUMMON
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
+
CATEGORY_GRAVE_SPSUMMON
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
...
@@ -50,13 +52,12 @@ function c100418020.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,13 +52,12 @@ function c100418020.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c100418020
.
cfilter
(
c
,
tp
,
re
,
r
,
rp
)
if
not
c
:
IsPreviousLocation
(
LOCATION_HAND
)
or
rp
~=
tp
or
r
&
REASON_COST
==
0
or
not
re
then
return
end
local
rc
=
re
:
GetHandler
()
return
(
rc
:
IsSetCard
(
0x280
)
and
not
rc
:
IsCode
(
100418020
))
or
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
rc
:
GetType
()
==
TYPE_TRAP
)
end
function
c100418020
.
tscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100418020
.
tscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c100418020
.
cfilter
,
1
,
nil
,
tp
,
re
,
r
,
rp
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
if
not
re
then
return
false
end
local
rc
=
re
:
GetHandler
()
return
rp
==
tp
and
r
&
REASON_COST
>
0
and
(
rc
:
IsSetCard
(
0x280
)
and
not
rc
:
IsCode
(
100418020
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
rc
:
GetType
()
==
TYPE_TRAP
)
and
eg
:
IsExists
(
Card
.
IsPreviousLocation
,
1
,
nil
,
LOCATION_HAND
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
end
end
function
c100418020
.
tstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100418020
.
tstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
...
...
script/c100418026.lua
View file @
369eb1c0
...
@@ -8,6 +8,7 @@ function c100418026.initial_effect(c)
...
@@ -8,6 +8,7 @@ function c100418026.initial_effect(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_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetCondition
(
c100418026
.
condition
)
e1
:
SetCondition
(
c100418026
.
condition
)
e1
:
SetTarget
(
c100418026
.
target
)
e1
:
SetTarget
(
c100418026
.
target
)
e1
:
SetOperation
(
c100418026
.
activate
)
e1
:
SetOperation
(
c100418026
.
activate
)
...
...
script/c100418027.lua
View file @
369eb1c0
...
@@ -18,7 +18,7 @@ function s.initial_effect(c)
...
@@ -18,7 +18,7 @@ function s.initial_effect(c)
--control
--control
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e3
:
SetCategory
(
CATEGORY_DRAW
)
e3
:
SetCategory
(
CATEGORY_
TODECK
+
CATEGORY_
DRAW
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_CHAINING
)
e3
:
SetCode
(
EVENT_CHAINING
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
...
...
script/c100418028.lua
View file @
369eb1c0
...
@@ -15,6 +15,7 @@ function c100418028.initial_effect(c)
...
@@ -15,6 +15,7 @@ function c100418028.initial_effect(c)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
c100418028
.
rmcon
)
e2
:
SetCondition
(
c100418028
.
rmcon
)
e2
:
SetTarget
(
c100418028
.
rmtg
)
e2
:
SetOperation
(
c100418028
.
rmop
)
e2
:
SetOperation
(
c100418028
.
rmop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
...
...
script/c100418202.lua
View file @
369eb1c0
...
@@ -30,7 +30,7 @@ function c100418202.initial_effect(c)
...
@@ -30,7 +30,7 @@ function c100418202.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_MOVE
)
e3
:
SetCode
(
EVENT_MOVE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_
DELAY
)
e3
:
SetCountLimit
(
1
,
100418202
+
200
)
e3
:
SetCountLimit
(
1
,
100418202
+
200
)
e3
:
SetCondition
(
c100418202
.
coincon2
)
e3
:
SetCondition
(
c100418202
.
coincon2
)
e3
:
SetTarget
(
c100418202
.
cointg2
)
e3
:
SetTarget
(
c100418202
.
cointg2
)
...
@@ -77,10 +77,10 @@ function c100418202.cointg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -77,10 +77,10 @@ function c100418202.cointg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c100418202
.
coinop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100418202
.
coinop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
not
(
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
)
then
return
end
local
coin
=
Duel
.
TossCoin
(
tp
,
1
)
local
coin
=
Duel
.
TossCoin
(
tp
,
1
)
if
coin
==
1
then
if
coin
==
1
then
if
tc
:
IsFaceup
()
and
not
tc
:
IsDisabled
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
not
tc
:
IsDisabled
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -94,15 +94,13 @@ function c100418202.coinop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -94,15 +94,13 @@ function c100418202.coinop1(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
end
end
else
else
if
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
math.ceil
(
tc
:
GetAttack
()
/
2
))
e1
:
SetValue
(
math.ceil
(
tc
:
GetAttack
()
/
2
))
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
end
end
end
function
c100418202
.
coincon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100418202
.
coincon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c100418207.lua
View file @
369eb1c0
...
@@ -16,7 +16,7 @@ function c100418207.initial_effect(c)
...
@@ -16,7 +16,7 @@ function c100418207.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--dice
--dice
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DICE
+
CATEGORY_TOHAND
)
e2
:
SetCategory
(
CATEGORY_DICE
+
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
100418207
+
100
)
e2
:
SetCountLimit
(
1
,
100418207
+
100
)
...
...
script/c100418211.lua
View file @
369eb1c0
...
@@ -40,7 +40,7 @@ function c100418211.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,7 +40,7 @@ function c100418211.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c100418211
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100418211
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
Get
MatchingGroupCount
(
Card
.
IsLocation
,
tp
,
LOCATION_FZONE
,
LOCATION_FZONE
,
nil
,
LOCATION_FZONE
)
==
2
return
Duel
.
Get
FieldGroupCount
(
tp
,
LOCATION_FZONE
,
LOCATION_FZONE
)
==
2
end
end
function
c100418211
.
spfilter
(
c
,
e
,
tp
)
function
c100418211
.
spfilter
(
c
,
e
,
tp
)
local
zone
=
1
<<
c
:
GetSequence
()
local
zone
=
1
<<
c
:
GetSequence
()
...
...
script/c100418212.lua
View file @
369eb1c0
...
@@ -39,7 +39,7 @@ function c100418212.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,7 +39,7 @@ function c100418212.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c100418212
.
stcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100418212
.
stcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
Get
MatchingGroupCount
(
Card
.
IsLocation
,
tp
,
LOCATION_FZONE
,
LOCATION_FZONE
,
nil
,
LOCATION_FZONE
)
==
2
return
Duel
.
Get
FieldGroupCount
(
tp
,
LOCATION_FZONE
,
LOCATION_FZONE
)
==
2
end
end
function
c100418212
.
stfilter
(
c
,
tp
)
function
c100418212
.
stfilter
(
c
,
tp
)
local
seq
=
c
:
GetSequence
()
local
seq
=
c
:
GetSequence
()
...
...
script/c101109029.lua
View file @
369eb1c0
...
@@ -84,7 +84,7 @@ end
...
@@ -84,7 +84,7 @@ end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
clv
=
c
:
GetLevel
()
local
clv
=
c
:
GetLevel
()
if
clv
<=
2
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
clv
<=
2
or
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
<=
0
then
return
end
if
ft
<=
0
then
return
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
...
...
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