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
4198ffb5
Commit
4198ffb5
authored
Nov 20, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5be5db68
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
35 additions
and
979 deletions
+35
-979
expansions/lflist.conf
expansions/lflist.conf
+0
-1
expansions/no81.cdb
expansions/no81.cdb
+0
-0
expansions/pics/35399326.jpg
expansions/pics/35399326.jpg
+0
-0
expansions/pics/35399327.jpg
expansions/pics/35399327.jpg
+0
-0
expansions/pics/35399328.jpg
expansions/pics/35399328.jpg
+0
-0
expansions/pics/35399329.jpg
expansions/pics/35399329.jpg
+0
-0
expansions/pics/35399330.jpg
expansions/pics/35399330.jpg
+0
-0
expansions/pics/35399331.jpg
expansions/pics/35399331.jpg
+0
-0
expansions/pics/35399333.jpg
expansions/pics/35399333.jpg
+0
-0
expansions/pics/35399335.jpg
expansions/pics/35399335.jpg
+0
-0
expansions/script/c11451776.lua
expansions/script/c11451776.lua
+7
-7
expansions/script/c35399326.lua
expansions/script/c35399326.lua
+0
-110
expansions/script/c35399327.lua
expansions/script/c35399327.lua
+0
-91
expansions/script/c35399328.lua
expansions/script/c35399328.lua
+0
-123
expansions/script/c35399329.lua
expansions/script/c35399329.lua
+0
-102
expansions/script/c35399330.lua
expansions/script/c35399330.lua
+0
-151
expansions/script/c35399331.lua
expansions/script/c35399331.lua
+0
-109
expansions/script/c35399333.lua
expansions/script/c35399333.lua
+0
-129
expansions/script/c35399335.lua
expansions/script/c35399335.lua
+0
-148
expansions/script/c9911435.lua
expansions/script/c9911435.lua
+4
-5
expansions/script/c9911552.lua
expansions/script/c9911552.lua
+12
-1
expansions/script/c9911664.lua
expansions/script/c9911664.lua
+12
-2
No files found.
expansions/lflist.conf
View file @
4198ffb5
...
@@ -2582,7 +2582,6 @@
...
@@ -2582,7 +2582,6 @@
60159943
1
60159943
1
98920192
1
98920192
1
35399325
2
35399325
2
35399330
2
#230618
#230618
53796103
0
53796103
0
#230611
#230611
...
...
expansions/no81.cdb
View file @
4198ffb5
No preview for this file type
expansions/pics/35399326.jpg
deleted
100644 → 0
View file @
5be5db68
54.2 KB
expansions/pics/35399327.jpg
deleted
100644 → 0
View file @
5be5db68
48.4 KB
expansions/pics/35399328.jpg
deleted
100644 → 0
View file @
5be5db68
47.7 KB
expansions/pics/35399329.jpg
deleted
100644 → 0
View file @
5be5db68
51.6 KB
expansions/pics/35399330.jpg
deleted
100644 → 0
View file @
5be5db68
51.3 KB
expansions/pics/35399331.jpg
deleted
100644 → 0
View file @
5be5db68
197 KB
expansions/pics/35399333.jpg
deleted
100644 → 0
View file @
5be5db68
196 KB
expansions/pics/35399335.jpg
deleted
100644 → 0
View file @
5be5db68
190 KB
expansions/script/c11451776.lua
View file @
4198ffb5
...
@@ -3,7 +3,7 @@ local cm,m=GetID()
...
@@ -3,7 +3,7 @@ local cm,m=GetID()
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--spsummon
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_REMOVE
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_REMOVE
+
CATEGORY_GRAVE_ACTION
)
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
)
...
...
expansions/script/c35399326.lua
deleted
100644 → 0
View file @
5be5db68
--疾 行 机 人 水 陆 船
local
m
=
35399326
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--link summon
aux
.
AddLinkProcedure
(
c
,
c35399326
.
matfilter
,
1
,
1
)
c
:
EnableReviveLimit
()
--tohand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
35399326
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
35399326
+
EFFECT_COUNT_CODE_DUEL
)
e1
:
SetOperation
(
c35399326
.
operation
)
c
:
RegisterEffect
(
e1
)
--cannot be target
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e2
:
SetTarget
(
c35399326
.
tgtg
)
e2
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e2
)
--atk limit
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetValue
(
c35399326
.
tgtg
)
c
:
RegisterEffect
(
e3
)
--special summon
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
35399326
,
1
))
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetRange
(
LOCATION_GRAVE
)
e4
:
SetCountLimit
(
1
,
35398326
)
e4
:
SetCost
(
c35399326
.
spcost
)
e4
:
SetTarget
(
c35399326
.
sptg
)
e4
:
SetOperation
(
c35399326
.
spop
)
c
:
RegisterEffect
(
e4
)
end
function
c35399326
.
matfilter
(
c
)
return
(
c
:
IsLinkRace
(
RACE_DRAGON
)
or
c
:
IsLinkRace
(
RACE_MACHINE
))
and
c
:
IsLinkAttribute
(
ATTRIBUTE_WIND
)
and
not
c
:
IsLinkType
(
TYPE_LINK
)
end
function
c35399326
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetTurnCount
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabel
(
ac
)
e1
:
SetCondition
(
c35399326
.
epcon
)
e1
:
SetOperation
(
c35399326
.
epop
)
e1
:
SetValue
(
ct
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c35399326
.
epcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
e
:
GetValue
()
return
Duel
.
GetTurnCount
()
~=
ct
end
function
c35399326
.
spfilter1
(
c
)
return
c
:
IsAbleToHand
()
and
c
:
IsSetCard
(
0x2016
)
end
function
c35399326
.
epop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c35399326
.
spfilter1
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_CARD
,
0
,
35399326
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c35399326
.
spfilter1
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
function
c35399326
.
tgtg
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
end
function
c35399326
.
cfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
end
function
c35399326
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c35399326
.
cfilter
,
1
,
nil
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c35399326
.
cfilter
,
1
,
1
,
nil
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c35399326
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c35399326
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
end
end
expansions/script/c35399327.lua
deleted
100644 → 0
View file @
5be5db68
--疾 行 机 人 变 形 钢 笔
local
m
=
35399327
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--sp
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
35399327
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCountLimit
(
1
,
35399327
)
e1
:
SetCondition
(
c35399327
.
spcon
)
e1
:
SetTarget
(
c35399327
.
sptg
)
e1
:
SetOperation
(
c35399327
.
spop
)
c
:
RegisterEffect
(
e1
)
--tohand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
35399327
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_DAMAGE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
35398327
)
e2
:
SetCondition
(
c35399327
.
thcon
)
e2
:
SetCost
(
aux
.
bfgcost
)
e2
:
SetTarget
(
c35399327
.
thtg
)
e2
:
SetOperation
(
c35399327
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
c35399327
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SYNCHRO
)
end
function
c35399327
.
spconf
(
c
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsPreviousControler
(
tp
)
end
function
c35399327
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
spconf
,
1
,
nil
,
tp
)
and
not
Duel
.
IsExistingMatchingCard
(
c35399327
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
end
function
c35399327
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c35399327
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
c
:
IsLocation
(
LOCATION_MZONE
)
then
local
lv
=
c
:
GetLevel
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINGMSG_LVRANK
)
Duel
.
BreakEffect
()
lv
=
Duel
.
AnnounceLevel
(
tp
,
1
,
6
,
lv
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e1
:
SetValue
(
lv
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
end
end
function
c35399327
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
(
c
:
IsType
(
TYPE_SYNCHRO
)
or
c
:
IsType
(
TYPE_LINK
))
end
function
c35399327
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
IsExistingMatchingCard
(
c35399327
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c35399327
.
thfilter1
(
c
)
return
c
:
IsAbleToHand
()
end
function
c35399327
.
thfilter2
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
end
function
c35399327
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g1
=
Duel
.
GetMatchingGroup
(
c35399327
.
thfilter1
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
c35399327
.
thfilter2
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
chk
==
0
then
return
g1
:
GetCount
()
>
0
and
g2
:
GetCount
()
>
0
end
g1
:
Merge
(
g2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
LOCATION_ONFIELD
)
end
function
c35399327
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c35399327
.
thfilter1
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c35399327
.
thfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
g1
:
Merge
(
g2
)
if
g1
:
GetCount
()
>
0
and
Duel
.
SendtoHand
(
g1
,
nil
,
REASON_EFFECT
)
~=
0
then
Duel
.
Damage
(
1
-
tp
,
1000
,
REASON_EFFECT
)
end
end
expansions/script/c35399328.lua
deleted
100644 → 0
View file @
5be5db68
--疾 行 机 人 玩 具 坦 克
local
m
=
35399328
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
35399328
,
1
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
35399328
)
e1
:
SetCost
(
c35399328
.
spcost
)
e1
:
SetTarget
(
c35399328
.
sptg
)
e1
:
SetOperation
(
c35399328
.
spop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
--special summon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
35399328
,
0
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCountLimit
(
1
,
35398328
)
e3
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_MAIN_END
)
e3
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e3
:
SetCondition
(
c35399328
.
sppcon
)
e3
:
SetTarget
(
c35399328
.
spptg
)
e3
:
SetOperation
(
c35399328
.
sppop
)
c
:
RegisterEffect
(
e3
)
end
function
c35399328
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
return
true
end
function
c35399328
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x2016
)
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c35399328
.
spfilter2
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
c
,
e
,
tp
)
end
function
c35399328
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
GetFlagEffect
(
35399328
)
==
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c35399328
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
1
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
IsExistingMatchingCard
(
c35399328
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
e
:
SetLabel
(
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c35399328
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
tc
:
RegisterFlagEffect
(
35399328
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
end
function
c35399328
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c35399328
.
spfilter2
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
c35399328
.
splimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c35399328
.
splimit
(
e
,
c
)
return
not
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
end
function
c35399328
.
sppcon
(
e
)
local
tp
=
e
:
GetHandler
():
GetControler
()
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_ONFIELD
)
-
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
>
1
end
function
c35399328
.
spptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c35399328
.
synfilter
(
c
,
tc
)
return
c
:
IsSynchroSummonable
(
tc
)
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
end
function
c35399328
.
sppop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
e1
:
SetValue
(
LOCATION_DECKSHF
)
c
:
RegisterEffect
(
e1
,
true
)
if
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
then
local
lv
=
0
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINGMSG_LVRANK
)
lv
=
Duel
.
AnnounceLevel
(
tp
,
1
,
5
,
lv
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_UPDATE_LEVEL
)
e2
:
SetValue
(
lv
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
c
:
RegisterEffect
(
e2
)
Duel
.
BreakEffect
()
if
not
c
:
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
IsExistingMatchingCard
(
c35399328
.
synfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
c
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
35399328
,
1
))
then
local
g
=
Duel
.
GetMatchingGroup
(
c35399328
.
synfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
c
)
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SynchroSummon
(
tp
,
sg
:
GetFirst
(),
c
)
end
end
end
end
end
expansions/script/c35399329.lua
deleted
100644 → 0
View file @
5be5db68
--疾 行 机 人 出 击
local
m
=
35399329
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TODECK
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
35399329
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetTarget
(
c35399329
.
target
)
e1
:
SetOperation
(
c35399329
.
activate
)
c
:
RegisterEffect
(
e1
)
--shuffle and draw
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetCountLimit
(
1
,
35399329
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCost
(
aux
.
bfgcost
)
e2
:
SetTarget
(
c35399329
.
lvtg
)
e2
:
SetOperation
(
c35399329
.
lvop
)
c
:
RegisterEffect
(
e2
)
end
function
c35399329
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
GetLevel
()
>
0
end
function
c35399329
.
lvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c35399329
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c35399329
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c35399329
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c35399329
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
lv
=
tc
:
GetLevel
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINGMSG_LVRANK
)
lv
=
Duel
.
AnnounceLevel
(
tp
,
1
,
7
,
lv
)
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
e0
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e0
:
SetCode
(
EFFECT_CHANGE_CODE
)
e0
:
SetValue
(
82044279
)
tc
:
RegisterEffect
(
e0
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e1
:
SetValue
(
lv
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_ADD_TYPE
)
e2
:
SetValue
(
TYPE_SYNCHRO
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
end
end
function
c35399329
.
thfilter1
(
c
,
tp
)
return
((
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsType
(
TYPE_SYNCHRO
))
or
c
:
IsSetCard
(
0x2016
))
and
c
:
IsAbleToHand
()
and
(
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
c
)
or
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
)
and
c
:
IsFaceup
()
end
function
c35399329
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c35399329
.
thfilter1
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c35399329
.
thfilter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c35399329
.
thfilter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(
1
),
0
,
0
)
end
function
c35399329
.
spfilter1
(
c
,
e
,
tp
,
dd
)
return
c
:
IsSetCard
(
0x2016
)
and
c
:
IsLevelBelow
(
dd
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c35399329
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
~=
0
then
local
hg
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
local
fg
=
Group
.
Filter
(
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
),
aux
.
NecroValleyFilter
(),
nil
)
local
g
if
#
hg
>
0
and
(
#
fg
==
0
or
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
35399329
,
1
),
aux
.
Stringid
(
35399329
,
2
))
==
0
)
then
g
=
hg
:
RandomSelect
(
tp
,
1
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
1
,
nil
)
end
if
g
:
GetCount
()
~=
0
then
Duel
.
HintSelection
(
g
)
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
then
Duel
.
BreakEffect
()
local
dd
=
Duel
.
TossDice
(
tp
,
1
)
if
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c35399329
.
spfilter1
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
,
dd
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
35399329
,
3
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c35399329
.
spfilter1
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
,
dd
)
if
tg
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
tg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
end
end
expansions/script/c35399330.lua
deleted
100644 → 0
View file @
5be5db68
--疾 行 机 人 变 形 飞 机
local
m
=
35399330
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--特 殊 召 唤
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
35399330
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
+
TIMING_MAIN_END
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCountLimit
(
1
,
35399330
)
e1
:
SetCondition
(
c35399330
.
spon
)
e1
:
SetCost
(
c35399330
.
spcost
)
e1
:
SetTarget
(
c35399330
.
sptg
)
e1
:
SetOperation
(
c35399330
.
spop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
35399325
,
2
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
35398330
)
e2
:
SetCost
(
c35399330
.
lvcost
)
e2
:
SetOperation
(
c35399330
.
lvop
)
c
:
RegisterEffect
(
e2
)
Duel
.
AddCustomActivityCounter
(
35399330
,
ACTIVITY_SPSUMMON
,
c35399330
.
counterfilter
)
end
function
c35399330
.
lvcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
35399330
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
c35399330
.
splimit
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c35399330
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
()
local
lv
=
tc
:
GetLevel
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINGMSG_LVRANK
)
lv
=
Duel
.
AnnounceLevel
(
tp
,
1
,
5
,
lv
)
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e1
:
SetValue
(
lv
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_ADD_TYPE
)
e2
:
SetValue
(
TYPE_SYNCHRO
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_FUSION_MATERIAL
)
e3
:
SetValue
(
1
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
e4
:
SetValue
(
1
)
e4
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_XYZ_MATERIAL
)
e5
:
SetValue
(
1
)
e5
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e5
)
end
end
function
c35399330
.
counterfilter
(
c
)
return
not
c
:
IsSummonLocation
(
LOCATION_EXTRA
)
or
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
end
function
c35399330
.
spon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
end
function
c35399330
.
cfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsReleasable
()
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
end
function
c35399330
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
35399330
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
and
Duel
.
IsExistingMatchingCard
(
c35399330
.
cfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c35399330
.
cfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
(),
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
c35399330
.
splimit
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c35399330
.
splimit
(
e
,
c
)
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
not
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
end
function
c35399330
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c35399330
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
e1
:
SetValue
(
LOCATION_DECKSHF
)
c
:
RegisterEffect
(
e1
,
true
)
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
35399330
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
local
rc
=
tg
:
GetFirst
()
if
Duel
.
Remove
(
rc
,
0
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
then
rc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetLabelObject
(
rc
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c35399330
.
retcon
)
e1
:
SetOperation
(
c35399330
.
retop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
end
end
function
c35399330
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetLabelObject
():
GetFlagEffect
(
id
)
~=
0
end
function
c35399330
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ReturnToField
(
e
:
GetLabelObject
())
end
expansions/script/c35399331.lua
deleted
100644 → 0
View file @
5be5db68
--幻 透 翼 疾 风 龙
local
m
=
35399331
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
Card
.
IsAttribute
,
ATTRIBUTE_WIND
),
1
)
c
:
EnableReviveLimit
()
--
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c35399331
.
atkcon
)
e1
:
SetOperation
(
c35399331
.
atkop
)
c
:
RegisterEffect
(
e1
)
--Negate
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
35399331
,
0
))
e2
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_ATKCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
35399331
)
e2
:
SetCondition
(
c35399331
.
ngcon
)
e2
:
SetTarget
(
c35399331
.
ngtg
)
e2
:
SetOperation
(
c35399331
.
ngop
)
c
:
RegisterEffect
(
e2
)
--spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
35399331
,
0
))
e3
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
+
CATEGORY_TODECK
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_LEAVE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetCountLimit
(
1
,
35399331
)
e3
:
SetCondition
(
c35399331
.
thcon
)
e3
:
SetTarget
(
c35399331
.
thtg
)
e3
:
SetOperation
(
c35399331
.
thop
)
c
:
RegisterEffect
(
e3
)
end
function
c35399331
.
thfilter
(
c
,
tp
)
return
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
end
function
c35399331
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c35399331
.
thfilter
,
1
,
nil
,
tp
)
end
function
c35399331
.
filter
(
c
)
return
c
:
IsSetCard
(
0x2016
)
and
c
:
IsAbleToHand
()
end
function
c35399331
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c35399331
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
)
end
function
c35399331
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c35399331
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
function
c35399331
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
return
bc
and
bc
:
IsControler
(
1
-
tp
)
end
function
c35399331
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
if
c
:
IsRelateToBattle
()
and
c
:
IsFaceup
()
and
bc
:
IsRelateToBattle
()
and
bc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
e1
:
SetValue
(
bc
:
GetAttack
())
c
:
RegisterEffect
(
e1
)
end
end
function
c35399331
.
ngcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ex2
=
re
:
IsHasCategory
(
CATEGORY_DESTROY
)
local
ex3
=
re
:
IsHasCategory
(
CATEGORY_REMOVE
)
return
(
ex2
or
ex3
)
and
Duel
.
IsChainDisablable
(
ev
)
end
function
c35399331
.
ngtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
end
function
c35399331
.
ngop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
NegateActivation
(
ev
)
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
300
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
c
:
RegisterEffect
(
e2
)
end
end
expansions/script/c35399333.lua
deleted
100644 → 0
View file @
5be5db68
--幻 透 翼 疾 风 龙
local
m
=
35399333
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_WIND
),
aux
.
NonTuner
(
Card
.
IsAttribute
,
ATTRIBUTE_WIND
),
1
)
c
:
EnableReviveLimit
()
--indestructable
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c35399333
.
indcon
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
--indestructable
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCode
(
EFFECT_CANNOT_REMOVE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
1
,
1
)
e3
:
SetTarget
(
c35399333
.
rmlimit
)
e3
:
SetCondition
(
c35399333
.
indcon
)
c
:
RegisterEffect
(
e3
)
--[[local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetCode(EFFECT_CANNOT_REMOVE)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c35399333.indcon)
e2:SetValue(c35399333.efilter)
c:RegisterEffect(e2)--]]
--tog
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_ATKCHANGE
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCountLimit
(
1
,
35399333
)
e3
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_MAIN_END
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCondition
(
c35399333
.
tgcon
)
e3
:
SetTarget
(
c35399333
.
tgtg
)
e3
:
SetOperation
(
c35399333
.
tgop
)
c
:
RegisterEffect
(
e3
)
--atk
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetRange
(
LOCATION_GRAVE
)
e4
:
SetCountLimit
(
1
,
35399333
)
e4
:
SetCost
(
aux
.
bfgcost
)
e4
:
SetTarget
(
c35399333
.
atktg
)
e4
:
SetOperation
(
c35399333
.
atkop
)
c
:
RegisterEffect
(
e4
)
--count
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetOperation
(
c35399333
.
checkop
)
c
:
RegisterEffect
(
e0
)
end
function
c35399333
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
end
function
c35399333
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c35399333
.
atkfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c35399333
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c35399333
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c35399333
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
2500
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e2
:
SetValue
(
2500
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
end
end
function
c35399333
.
tgcon
(
e
)
local
tp
=
e
:
GetHandler
():
GetControler
()
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_ONFIELD
)
>
1
end
function
c35399333
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
end
function
c35399333
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
g
:
GetCount
()
>
0
then
tg
=
g
:
RandomSelect
(
tp
,
1
)
Duel
.
HintSelection
(
tg
)
Duel
.
SendtoGrave
(
tg
,
REASON_EFFECT
)
end
end
function
c35399333
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
c
:
RegisterFlagEffect
(
35399333
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
35399333
,
5
))
end
function
c35399333
.
indcon
(
e
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
e
:
GetHandler
():
GetFlagEffect
(
35399333
)
>
0
end
function
c35399333
.
efilter
(
e
,
re
)
return
re
:
IsActiveType
(
TYPE_EFFECT
)
end
function
c35399333
.
rmlimit
(
e
,
c
,
tp
,
r
)
return
c
==
e
:
GetHandler
()
and
r
==
REASON_EFFECT
end
expansions/script/c35399335.lua
deleted
100644 → 0
View file @
5be5db68
--水 晶 风 魔 女
local
m
=
35399335
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--hand synchro
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EXTRA_SYNCHRO_MATERIAL
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
35399335
)
e1
:
SetValue
(
c35399335
.
matval
)
c
:
RegisterEffect
(
e1
)
--特 殊 召 唤
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOHAND
+
CATEGORY_ATKCHANGE
+
CATEGORY_HANDES
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetHintTiming
(
0
,
TIMING_END_PHASE
+
TIMING_MAIN_END
)
e2
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
35399335
)
e2
:
SetTarget
(
c35399335
.
sptg
)
e2
:
SetOperation
(
c35399335
.
spop
)
c
:
RegisterEffect
(
e2
)
--effect gain
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_BE_MATERIAL
)
e3
:
SetProperty
(
EFFECT_FLAG_EVENT_PLAYER
)
e3
:
SetCondition
(
c35399335
.
efcon
)
e3
:
SetOperation
(
c35399335
.
efop
)
c
:
RegisterEffect
(
e3
)
end
function
c35399335
.
efcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
r
&
REASON_SYNCHRO
>
0
end
function
c35399335
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
rc
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
500
)
rc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
rc
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e2
:
SetValue
(
500
)
rc
:
RegisterEffect
(
e2
,
true
)
--double
local
e3
=
Effect
.
CreateEffect
(
rc
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_CHANGE_BATTLE_DAMAGE
)
e3
:
SetCondition
(
c35399335
.
damcon
)
e3
:
SetValue
(
aux
.
ChangeBattleDamage
(
1
,
DOUBLE_DAMAGE
))
rc
:
RegisterEffect
(
e3
)
if
not
rc
:
IsType
(
TYPE_EFFECT
)
then
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_ADD_TYPE
)
e4
:
SetValue
(
TYPE_EFFECT
)
e4
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e4
,
true
)
end
end
function
c35399335
.
damcon
(
e
)
return
e
:
GetHandler
():
GetBattleTarget
()
~=
nil
end
function
c35399335
.
matval
(
e
,
c
)
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
end
function
c35399335
.
spfilter
(
c
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsFaceup
()
and
c
:
IsAbleToHand
()
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
end
function
c35399335
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c35399335
.
spfilter
(
chkc
,
tp
)
end
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingTarget
(
c35399335
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c35399335
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c35399335
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
==
0
then
return
end
if
c
:
IsRelateToChain
()
and
Duel
.
DiscardHand
(
tp
,
nil
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
~=
0
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
e1
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e1
,
true
)
if
tc
:
IsRelateToChain
()
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
>
0
and
(
tc
:
IsLocation
(
LOCATION_HAND
)
or
tc
:
IsLocation
(
LOCATION_EXTRA
))
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
35399335
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
ttg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
2
,
nil
)
Duel
.
HintSelection
(
ttg
)
local
ttc
=
ttg
:
GetFirst
()
while
ttc
do
local
atk
=
ttc
:
GetAttack
()
local
def
=
ttc
:
GetDefense
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
math.ceil
(
atk
/
2
))
ttc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_SET_DEFENSE_FINAL
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e3
:
SetValue
(
math.ceil
(
def
/
2
))
ttc
:
RegisterEffect
(
e3
)
ttc
=
ttg
:
GetNext
()
end
end
end
end
expansions/script/c9911435.lua
View file @
4198ffb5
...
@@ -3,7 +3,6 @@ function c9911435.initial_effect(c)
...
@@ -3,7 +3,6 @@ function c9911435.initial_effect(c)
aux
.
AddCodeList
(
c
,
9910871
)
aux
.
AddCodeList
(
c
,
9910871
)
--special summon itself
--special summon itself
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
...
@@ -52,16 +51,16 @@ end
...
@@ -52,16 +51,16 @@ end
function
c9911435
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c9911435
.
sptg1
(
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
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
local
g
=
Group
.
CreateGroup
()
local
cate
=
0
for
i
=
1
,
ev
do
for
i
=
1
,
ev
do
local
te
=
Duel
.
GetChainInfo
(
i
,
CHAININFO_TRIGGERING_EFFECT
)
local
te
=
Duel
.
GetChainInfo
(
i
,
CHAININFO_TRIGGERING_EFFECT
)
local
tc
=
te
:
GetHandler
()
local
tc
=
te
:
GetHandler
()
if
tc
:
IsRelateToEffect
(
te
)
and
tc
:
IsAbleToRemove
()
and
tc
~=
e
:
GetHandler
()
then
if
tc
:
IsRelateToEffect
(
te
)
and
tc
:
IsAbleToRemove
()
and
tc
~=
e
:
GetHandler
()
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
g
:
AddCard
(
tc
)
cate
=
CATEGORY_GRAVE_ACTION
end
end
end
end
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_REMOVE
+
cate
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
end
end
function
c9911435
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9911435
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c9911552.lua
View file @
4198ffb5
...
@@ -26,7 +26,6 @@ function c9911552.initial_effect(c)
...
@@ -26,7 +26,6 @@ function c9911552.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--spsummon
--spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOGRAVE
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_CHAINING
)
e3
:
SetCode
(
EVENT_CHAINING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
...
@@ -133,6 +132,18 @@ function c9911552.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -133,6 +132,18 @@ function c9911552.spcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c9911552
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c9911552
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
cate
=
0
for
i
=
1
,
ev
do
local
te
=
Duel
.
GetChainInfo
(
i
,
CHAININFO_TRIGGERING_EFFECT
)
local
tc
=
te
:
GetHandler
()
if
tc
:
GetOriginalType
()
&
TYPE_MONSTER
>
0
and
tc
:
IsRelateToEffect
(
te
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
c9911552
.
filter0
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
,
0
,
1
,
tc
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
cate
=
CATEGORY_GRAVE_SPSUMMON
end
end
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOGRAVE
+
cate
)
end
end
function
c9911552
.
filter1
(
c
,
e
,
tp
)
function
c9911552
.
filter1
(
c
,
e
,
tp
)
return
c9911552
.
filter0
(
c
)
and
(
c
:
IsAbleToGrave
()
or
c9911552
.
filter2
(
c
,
e
,
tp
))
return
c9911552
.
filter0
(
c
)
and
(
c
:
IsAbleToGrave
()
or
c9911552
.
filter2
(
c
,
e
,
tp
))
...
...
expansions/script/c9911664.lua
View file @
4198ffb5
...
@@ -105,10 +105,20 @@ function c9911664.target2(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -105,10 +105,20 @@ function c9911664.target2(e,tp,eg,ep,ev,re,r,rp,chk)
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
9911664
,
1
))
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
9911664
,
1
))
end
end
e
:
SetLabel
(
op
)
e
:
SetLabel
(
op
)
local
cate
=
0
for
i
=
1
,
ev
do
local
te
=
Duel
.
GetChainInfo
(
i
,
CHAININFO_TRIGGERING_EFFECT
)
local
tc
=
te
:
GetHandler
()
local
b1
=
tc
:
IsAbleToRemove
(
tp
,
POS_FACEDOWN
)
local
b2
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
if
te
:
IsActiveType
(
TYPE_MONSTER
)
and
tc
:
IsRelateToEffect
(
te
)
and
(
b1
or
b2
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
cate
=
CATEGORY_GRAVE_ACTION
+
CATEGORY_GRAVE_SPSUMMON
end
end
if
op
==
0
then
if
op
==
0
then
e
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_SPECIAL_SUMMON
)
e
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_SPECIAL_SUMMON
+
cate
)
else
else
e
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_TOGRAVE
+
CATEGORY_REMOVE
+
CATEGORY_SPECIAL_SUMMON
)
e
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_TOGRAVE
+
CATEGORY_REMOVE
+
CATEGORY_SPECIAL_SUMMON
+
cate
)
end
end
end
end
function
c9911664
.
activate2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9911664
.
activate2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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