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
1ed37c9d
Commit
1ed37c9d
authored
Jan 20, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
01b8db47
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
39 additions
and
22 deletions
+39
-22
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100408026.lua
script/c100408026.lua
+2
-2
script/c101004017.lua
script/c101004017.lua
+1
-1
script/c101004043.lua
script/c101004043.lua
+3
-1
script/c101004044.lua
script/c101004044.lua
+2
-1
script/c101004045.lua
script/c101004045.lua
+3
-1
script/c101004046.lua
script/c101004046.lua
+3
-1
script/c101004047.lua
script/c101004047.lua
+3
-1
script/c101004048.lua
script/c101004048.lua
+3
-1
script/c101004053.lua
script/c101004053.lua
+1
-1
script/c101004070.lua
script/c101004070.lua
+4
-3
script/c101004077.lua
script/c101004077.lua
+13
-8
script/c101004100.lua
script/c101004100.lua
+1
-1
No files found.
expansions/pre-release.cdb
View file @
1ed37c9d
No preview for this file type
script/c100408026.lua
View file @
1ed37c9d
...
@@ -35,13 +35,13 @@ end
...
@@ -35,13 +35,13 @@ end
function
c100408026
.
spfilter1
(
c
,
e
,
tp
)
function
c100408026
.
spfilter1
(
c
,
e
,
tp
)
local
lv
=
c
:
GetLevel
()
local
lv
=
c
:
GetLevel
()
return
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
rp
~=
tp
and
c
:
IsReason
(
REASON_EFFECT
)))
return
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
rp
~=
tp
and
c
:
IsReason
(
REASON_EFFECT
)))
and
c
:
IsPreviousSetCard
(
0x
9e
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsPreviousSetCard
(
0x
214
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
lv
>
0
and
Duel
.
IsExistingMatchingCard
(
c100408026
.
spfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
lv
)
and
lv
>
0
and
Duel
.
IsExistingMatchingCard
(
c100408026
.
spfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
lv
)
end
end
function
c100408026
.
spfilter2
(
c
,
e
,
tp
,
lv
)
function
c100408026
.
spfilter2
(
c
,
e
,
tp
,
lv
)
return
c
:
GetLevel
()
<
lv
and
c
:
IsSetCard
(
0x
9e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
GetLevel
()
<
lv
and
c
:
IsSetCard
(
0x
214
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c100408026
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c100408026
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
eg
:
IsContains
(
chkc
)
and
c100408026
.
spfilter1
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
eg
:
IsContains
(
chkc
)
and
c100408026
.
spfilter1
(
chkc
,
e
,
tp
)
end
...
...
script/c101004017.lua
View file @
1ed37c9d
...
@@ -71,7 +71,7 @@ function c101004017.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,7 +71,7 @@ function c101004017.spop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_
CHANGE_ATTACK_FINAL
)
e3
:
SetCode
(
EFFECT_
SET_ATTACK
)
e3
:
SetValue
(
0
)
e3
:
SetValue
(
0
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e3
)
tc
:
RegisterEffect
(
e3
)
...
...
script/c101004043.lua
View file @
1ed37c9d
...
@@ -8,7 +8,7 @@ function c101004043.initial_effect(c)
...
@@ -8,7 +8,7 @@ function c101004043.initial_effect(c)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101004043
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
101004043
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DRAW
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
101004043
)
e1
:
SetCountLimit
(
1
,
101004043
)
...
@@ -48,8 +48,10 @@ function c101004043.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -48,8 +48,10 @@ function c101004043.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
c101004043
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c101004043
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
if
e
:
GetHandler
():
GetMutualLinkedGroupCount
()
>
0
then
if
e
:
GetHandler
():
GetMutualLinkedGroupCount
()
>
0
then
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DRAW
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
else
else
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
end
end
end
end
...
...
script/c101004044.lua
View file @
1ed37c9d
...
@@ -8,7 +8,6 @@ function c101004044.initial_effect(c)
...
@@ -8,7 +8,6 @@ function c101004044.initial_effect(c)
--extra summon
--extra summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101004044
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
101004044
,
0
))
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
@@ -41,8 +40,10 @@ end
...
@@ -41,8 +40,10 @@ end
function
c101004044
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101004044
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanSummon
(
tp
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanSummon
(
tp
)
end
if
e
:
GetHandler
():
GetMutualLinkedGroupCount
()
>
0
then
if
e
:
GetHandler
():
GetMutualLinkedGroupCount
()
>
0
then
e
:
SetCategory
(
CATEGORY_DRAW
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
else
else
e
:
SetCategory
(
0
)
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
end
end
end
end
...
...
script/c101004045.lua
View file @
1ed37c9d
...
@@ -8,7 +8,7 @@ function c101004045.initial_effect(c)
...
@@ -8,7 +8,7 @@ function c101004045.initial_effect(c)
--destroy
--destroy
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101004045
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
101004045
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DRAW
)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
@@ -48,8 +48,10 @@ function c101004045.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -48,8 +48,10 @@ function c101004045.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101004045
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101004045
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
if
e
:
GetHandler
():
GetMutualLinkedGroupCount
()
>
0
then
if
e
:
GetHandler
():
GetMutualLinkedGroupCount
()
>
0
then
e
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DRAW
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
else
else
e
:
SetCategory
(
CATEGORY_DESTROY
)
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
end
end
end
end
...
...
script/c101004046.lua
View file @
1ed37c9d
...
@@ -8,7 +8,7 @@ function c101004046.initial_effect(c)
...
@@ -8,7 +8,7 @@ function c101004046.initial_effect(c)
--destroy
--destroy
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101004046
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
101004046
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DRAW
)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
@@ -45,8 +45,10 @@ function c101004046.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -45,8 +45,10 @@ function c101004046.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsType
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsType
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
if
e
:
GetHandler
():
GetMutualLinkedGroupCount
()
>
0
then
if
e
:
GetHandler
():
GetMutualLinkedGroupCount
()
>
0
then
e
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DRAW
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
else
else
e
:
SetCategory
(
CATEGORY_DESTROY
)
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
end
end
end
end
...
...
script/c101004047.lua
View file @
1ed37c9d
...
@@ -8,7 +8,7 @@ function c101004047.initial_effect(c)
...
@@ -8,7 +8,7 @@ function c101004047.initial_effect(c)
--todeck
--todeck
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101004047
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
101004047
,
0
))
e1
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_DRAW
)
e1
:
SetCategory
(
CATEGORY_TODECK
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
@@ -45,8 +45,10 @@ function c101004047.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -45,8 +45,10 @@ function c101004047.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
if
e
:
GetHandler
():
GetMutualLinkedGroupCount
()
>
0
then
if
e
:
GetHandler
():
GetMutualLinkedGroupCount
()
>
0
then
e
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_DRAW
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
else
else
e
:
SetCategory
(
CATEGORY_TODECK
)
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
end
end
end
end
...
...
script/c101004048.lua
View file @
1ed37c9d
...
@@ -8,7 +8,7 @@ function c101004048.initial_effect(c)
...
@@ -8,7 +8,7 @@ function c101004048.initial_effect(c)
--set
--set
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101004048
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
101004048
,
0
))
e1
:
SetCategory
(
CATEGORY_
DRAW
)
e1
:
SetCategory
(
CATEGORY_
LEAVE_GRAVE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
@@ -49,8 +49,10 @@ function c101004048.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -49,8 +49,10 @@ function c101004048.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101004048
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101004048
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
if
e
:
GetHandler
():
GetMutualLinkedGroupCount
()
>
0
then
if
e
:
GetHandler
():
GetMutualLinkedGroupCount
()
>
0
then
e
:
SetCategory
(
CATEGORY_LEAVE_GRAVE
+
CATEGORY_DRAW
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
else
else
e
:
SetCategory
(
CATEGORY_LEAVE_GRAVE
)
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
end
end
end
end
...
...
script/c101004053.lua
View file @
1ed37c9d
...
@@ -31,7 +31,7 @@ function c101004053.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,7 +31,7 @@ function c101004053.activate(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
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValle
r
Filter
(
c101004053
.
rmfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tc
:
GetLink
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValle
y
Filter
(
c101004053
.
rmfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tc
:
GetLink
())
local
rc
=
g
:
GetFirst
()
local
rc
=
g
:
GetFirst
()
if
rc
and
Duel
.
Remove
(
rc
,
0
,
REASON_EFFECT
)
~=
0
and
rc
:
IsLocation
(
LOCATION_REMOVED
)
if
rc
and
Duel
.
Remove
(
rc
,
0
,
REASON_EFFECT
)
~=
0
and
rc
:
IsLocation
(
LOCATION_REMOVED
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
...
...
script/c101004070.lua
View file @
1ed37c9d
...
@@ -27,9 +27,9 @@ function c101004070.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -27,9 +27,9 @@ function c101004070.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetRange
(
LOCATION_
S
ZONE
)
e1
:
SetRange
(
LOCATION_
M
ZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetTargetRange
(
LOCATION_
MZONE
,
0
)
e1
:
SetTargetRange
(
LOCATION_
ONFIELD
,
0
)
e1
:
SetTarget
(
c101004070
.
etarget
)
e1
:
SetTarget
(
c101004070
.
etarget
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
...
@@ -37,6 +37,7 @@ function c101004070.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,6 +37,7 @@ function c101004070.activate(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e2
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e2
:
SetTarget
(
c101004070
.
etarget
)
e2
:
SetTarget
(
c101004070
.
etarget
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
...
@@ -45,5 +46,5 @@ function c101004070.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,5 +46,5 @@ function c101004070.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
function
c101004070
.
etarget
(
e
,
c
)
function
c101004070
.
etarget
(
e
,
c
)
return
c
:
IsSetCard
(
0x103
)
and
c
:
IsType
(
TYPE_TRAP
)
and
not
c
=
=
e
:
GetHandler
()
return
c
:
IsSetCard
(
0x103
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
~
=
e
:
GetHandler
()
end
end
script/c101004077.lua
View file @
1ed37c9d
...
@@ -49,34 +49,39 @@ function c101004077.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,34 +49,39 @@ function c101004077.activate(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
tc
:
RegisterEffect
(
e3
)
end
end
if
not
c
:
IsStatus
(
STATUS_ACT_FROM_HAND
)
then
if
not
c
:
IsStatus
(
STATUS_ACT_FROM_HAND
)
and
c
:
IsLocation
(
LOCATION_SZONE
)
then
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_DISABLE
)
e4
:
SetCode
(
EFFECT_DISABLE
)
e4
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e4
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e4
:
SetTarget
(
c101004077
.
distg
)
e4
:
SetTarget
(
c101004077
.
distg
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e4
:
SetLabel
(
c
:
Get
ColumnZone
(
LOCATION_SZONE
))
e4
:
SetLabel
(
c
:
Get
Sequence
(
))
Duel
.
RegisterEffect
(
e4
,
tp
)
Duel
.
RegisterEffect
(
e4
,
tp
)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e5
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e5
:
SetOperation
(
c101004077
.
disop
)
e5
:
SetOperation
(
c101004077
.
disop
)
e5
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e5
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e5
:
SetLabel
(
c
:
Get
ColumnZone
(
LOCATION_SZONE
))
e5
:
SetLabel
(
c
:
Get
Sequence
(
))
Duel
.
RegisterEffect
(
e5
,
tp
)
Duel
.
RegisterEffect
(
e5
,
tp
)
end
end
end
end
end
end
function
c101004077
.
distg
(
e
,
c
)
function
c101004077
.
distg
(
e
,
c
)
local
zone
=
e
:
GetLabel
()
local
seq
=
e
:
GetLabel
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
bit
.
extract
(
zone
,
c
:
GetSequence
())
~=
0
local
p
=
c
:
GetControler
()
local
tp
=
e
:
GetHandlerPlayer
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
((
p
==
tp
and
c
:
GetSequence
()
==
seq
)
or
(
p
==
1
-
tp
and
c
:
GetSequence
()
==
4
-
seq
))
end
end
function
c101004077
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101004077
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
zone
=
e
:
GetLabel
()
local
tseq
=
e
:
GetLabel
()
local
loc
,
seq
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
)
local
loc
,
seq
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
)
local
tpe
=
re
:
GetActiveType
()
local
p
=
re
:
GetHandlerPlayer
()
if
bit
.
band
(
loc
,
LOCATION_SZONE
)
~=
0
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
bit
.
extract
(
zone
,
seq
)
~=
0
then
local
tp
=
e
:
GetHandlerPlayer
()
if
bit
.
band
(
loc
,
LOCATION_SZONE
)
~=
0
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
((
p
==
tp
and
seq
==
tseq
)
or
(
p
==
1
-
tp
and
seq
==
4
-
tseq
))
then
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
end
end
end
...
...
script/c101004100.lua
View file @
1ed37c9d
...
@@ -51,7 +51,7 @@ end
...
@@ -51,7 +51,7 @@ end
function
c101004100
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101004100
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
if
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACE
UP
)
then
if
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACE
DOWN_DEFENSE
)
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_CHANGE_RACE
)
e1
:
SetCode
(
EFFECT_CHANGE_RACE
)
...
...
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