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
33dd8e02
Commit
33dd8e02
authored
Oct 16, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
39063c86
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
119 additions
and
111 deletions
+119
-111
script/c101007001.lua
script/c101007001.lua
+1
-1
script/c101007003.lua
script/c101007003.lua
+2
-2
script/c101007005.lua
script/c101007005.lua
+3
-3
script/c101007020.lua
script/c101007020.lua
+2
-2
script/c101007021.lua
script/c101007021.lua
+7
-6
script/c101007023.lua
script/c101007023.lua
+1
-1
script/c101007030.lua
script/c101007030.lua
+79
-79
script/c101007031.lua
script/c101007031.lua
+1
-1
script/c101007044.lua
script/c101007044.lua
+2
-2
script/c101007045.lua
script/c101007045.lua
+12
-10
script/c101007046.lua
script/c101007046.lua
+1
-1
script/c101007068.lua
script/c101007068.lua
+4
-0
script/c101007070.lua
script/c101007070.lua
+1
-1
script/c101007100.lua
script/c101007100.lua
+3
-2
No files found.
script/c101007001.lua
View file @
33dd8e02
--キャシー・イヴ
L2
--キャシー・イヴ
L2
--Catche Eve L2
--scripted by Larry126
function
c101007001
.
initial_effect
(
c
)
...
...
script/c101007003.lua
View file @
33dd8e02
...
...
@@ -59,9 +59,9 @@ function c101007003.thfilter(c)
end
function
c101007003
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c101007003
.
thfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101007003
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
()
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101007003
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101007003
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
()
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101007003
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
function
c101007003
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101007005.lua
View file @
33dd8e02
...
...
@@ -55,14 +55,14 @@ function c101007005.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101007005
.
filter
,
tp
,
0
,
LOCATION_SZONE
,
1
,
1
,
nil
)
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
1
-
tp
,
LOCATION_SZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
lg
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
lg
,
1
,
tp
,
LOCATION_GRAVE
)
end
function
c101007005
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sc
=
e
:
GetLabelObject
()
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
lc
=
g
:
GetFirst
()
if
lc
==
sc
then
lc
=
g
:
GetNext
()
end
if
lc
and
lc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoDeck
(
lc
,
nil
,
2
,
REASON_EFFECT
)
>
0
and
sc
and
sc
:
IsRelateToEffect
(
e
)
then
if
lc
and
lc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoDeck
(
lc
,
nil
,
2
,
REASON_EFFECT
)
>
0
and
lc
:
IsLocation
(
LOCATION_EXTRA
)
and
sc
and
sc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
sc
,
REASON_EFFECT
)
end
end
...
...
@@ -75,7 +75,7 @@ function c101007005.spcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c101007005
.
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
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_GRAVE
)
end
function
c101007005
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101007020.lua
View file @
33dd8e02
...
...
@@ -5,7 +5,7 @@ function c101007020.initial_effect(c)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101007020
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DRAW
+
CATEGORY_TODECK
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
...
@@ -46,7 +46,7 @@ function c101007020.spop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
Duel
.
BreakEffect
()
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
TYPE_LINK
)
Duel
.
Draw
(
tp
,
ct
+
1
,
REASON_EFFECT
)
if
Duel
.
Draw
(
tp
,
ct
+
1
,
REASON_EFFECT
)
==
0
then
return
end
Duel
.
ShuffleHand
(
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
ct
,
ct
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
...
...
script/c101007021.lua
View file @
33dd8e02
...
...
@@ -18,10 +18,11 @@ function c101007021.initial_effect(c)
e2
:
SetTarget
(
c101007021
.
atktg
)
e2
:
SetOperation
(
c101007021
.
atkop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e
1
:
Clone
()
local
e3
=
e
2
:
Clone
()
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e3
:
SetHintTiming
(
TIMING_DAMAGE_STEP
,
TIMING_DAMAGE_STEP
+
TIMING_END_PHASE
)
e3
:
SetCondition
(
c101007021
.
atkcon2
)
c
:
RegisterEffect
(
e3
)
end
...
...
@@ -29,10 +30,10 @@ function c101007021.indval(e,c)
return
c
:
IsType
(
TYPE_LINK
)
end
function
c101007021
.
atkcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
10100702
1
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9035198
1
)
end
function
c101007021
.
atkcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
10100702
1
)
return
(
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
())
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9035198
1
)
end
function
c101007021
.
tgfilter
(
c
)
return
c
:
IsFaceup
()
...
...
@@ -43,7 +44,7 @@ end
function
c101007021
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c101007021
.
tgfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101007021
.
tgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c101007021
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c101007021
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c101007021
.
tgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
...
...
@@ -51,7 +52,7 @@ function c101007021.atkop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101007021
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101007021
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
local
gc
=
g
:
GetFirst
()
if
Duel
.
SendtoGrave
(
gc
,
REASON_EFFECT
)
~=
0
and
gc
:
IsLocation
(
LOCATION_GRAVE
)
...
...
script/c101007023.lua
View file @
33dd8e02
...
...
@@ -50,7 +50,7 @@ function c101007023.spop1(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c101007023
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x71
)
and
not
c
:
IsCode
(
101007023
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
return
c
:
IsSetCard
(
0x71
)
and
not
c
:
IsCode
(
101007023
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c101007023
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
script/c101007030.lua
View file @
33dd8e02
--孤高除獣
--
--Script by mercury233
function
c101007030
.
initial_effect
(
c
)
--banish
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101007030
,
0
))
e1
:
SetCategory
(
CATEGORY_
TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
101007030
)
e1
:
SetCost
(
c101007030
.
cost
)
e1
:
SetTarget
(
c101007030
.
target
)
e1
:
SetOperation
(
c101007030
.
operation
)
c
:
RegisterEffect
(
e1
)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_DESTROYED
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
101007030
+
100
)
e2
:
SetCondition
(
c101007030
.
thcon
)
e2
:
SetTarget
(
c101007030
.
thtg
)
e2
:
SetOperation
(
c101007030
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
c101007030
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
100
)
return
true
end
function
c101007030
.
cfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c101007030
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
end
function
c101007030
.
tgfilter
(
c
,
rc
)
return
c
:
IsAbleToRemove
()
and
c
:
IsRace
(
rc
:
GetRace
())
end
function
c101007030
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
IsExistingMatchingCard
(
c101007030
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101007030
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tp
)
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c101007030
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
rc
=
e
:
GetLabelObject
()
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101007030
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
rc
)
if
g
:
GetCount
()
>
0
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
c101007030
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_BATTLE
)
or
(
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetPreviousControler
()
==
tp
)
end
function
c101007030
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c101007030
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c101007030
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101007030
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101007030
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
function
c101007030
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
end
--孤高除獣
--
--Script by mercury233
function
c101007030
.
initial_effect
(
c
)
--banish
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101007030
,
0
))
e1
:
SetCategory
(
CATEGORY_
REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
101007030
)
e1
:
SetCost
(
c101007030
.
cost
)
e1
:
SetTarget
(
c101007030
.
target
)
e1
:
SetOperation
(
c101007030
.
operation
)
c
:
RegisterEffect
(
e1
)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_DESTROYED
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
101007030
+
100
)
e2
:
SetCondition
(
c101007030
.
thcon
)
e2
:
SetTarget
(
c101007030
.
thtg
)
e2
:
SetOperation
(
c101007030
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
c101007030
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
100
)
return
true
end
function
c101007030
.
cfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c101007030
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
end
function
c101007030
.
tgfilter
(
c
,
rc
)
return
c
:
IsAbleToRemove
()
and
c
:
IsRace
(
rc
:
GetRace
())
end
function
c101007030
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
IsExistingMatchingCard
(
c101007030
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101007030
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tp
)
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c101007030
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
rc
=
e
:
GetLabelObject
()
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101007030
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
rc
)
if
g
:
GetCount
()
>
0
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
c101007030
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_BATTLE
)
or
(
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetPreviousControler
()
==
tp
)
end
function
c101007030
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c101007030
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c101007030
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101007030
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101007030
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
function
c101007030
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
end
script/c101007031.lua
View file @
33dd8e02
...
...
@@ -30,7 +30,7 @@ function c101007031.cfilter(c)
return
d
:
IsRelateToBattle
()
and
d
:
GetSequence
()
<=
5
or
not
d
:
IsRelateToBattle
()
and
d
:
GetPreviousSequence
()
<=
5
end
function
c101007031
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
()
return
eg
:
IsExists
(
c101007031
.
cfilter
,
1
,
nil
)
end
function
c101007031
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
eg
:
Filter
(
c101007031
.
cfilter
,
nil
):
GetFirst
()
...
...
script/c101007044.lua
View file @
33dd8e02
...
...
@@ -71,12 +71,12 @@ function c101007044.thfilter(c)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToHand
()
end
function
c101007044
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101007044
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101007044
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c101007044
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101007044
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101007044
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
script/c101007045.lua
View file @
33dd8e02
...
...
@@ -37,17 +37,17 @@ end
function
c101007045
.
mfilter
(
c
)
return
c
:
IsLevelAbove
(
2
)
and
c
:
IsLinkRace
(
RACE_CYBERSE
)
end
function
c101007045
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
GetFlagEffect
(
101007045
)
==
0
end
c
:
RegisterFlagEffect
(
101007045
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE_CAL
,
0
,
1
)
end
function
c101007045
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
return
a
:
GetControler
()
==
tp
and
a
:
IsRace
(
RACE_CYBERSE
)
or
d
and
d
:
GetControler
()
==
tp
and
d
:
IsRace
(
RACE_CYBERSE
)
end
function
c101007045
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
GetFlagEffect
(
101007045
)
==
0
end
c
:
RegisterFlagEffect
(
101007045
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE_CAL
,
0
,
1
)
end
function
c101007045
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
a
=
Duel
.
GetAttacker
()
...
...
@@ -78,7 +78,8 @@ function c101007045.atkop(e,tp,eg,ep,ev,re,r,rp)
local
ad
=
a
:
GetTextDefense
()
if
a
:
IsImmuneToEffect
(
e
)
then
aa
=
a
:
GetBaseAttack
()
ad
=
a
:
GetBaseDefense
()
end
ad
=
a
:
GetBaseDefense
()
end
if
aa
<
0
then
aa
=
0
end
if
ad
<
0
then
ad
=
0
end
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -101,9 +102,10 @@ function c101007045.atkop(e,tp,eg,ep,ev,re,r,rp)
if
d
and
d
:
IsRelateToBattle
()
then
local
da
=
d
:
GetTextAttack
()
local
dd
=
d
:
GetTextDefense
()
if
d
:
IsImmuneToEffect
(
e
)
then
if
d
:
IsImmuneToEffect
(
e
)
then
da
=
d
:
GetBaseAttack
()
dd
=
d
:
GetBaseDefense
()
end
dd
=
d
:
GetBaseDefense
()
end
if
da
<
0
then
da
=
0
end
if
dd
<
0
then
dd
=
0
end
local
e6
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -156,12 +158,12 @@ function c101007045.efcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
r
==
REASON_LINK
end
function
c101007045
.
eftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetReasonCard
():
GetFlagEffect
(
101007045
)
~
=
0
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetReasonCard
():
GetFlagEffect
(
101007045
)
=
=
0
end
end
function
c101007045
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
if
rc
:
GetFlagEffect
(
101007045
)
=
=
0
then
return
end
if
rc
:
GetFlagEffect
(
101007045
)
~
=
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101007045
,
2
))
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
...
...
script/c101007046.lua
View file @
33dd8e02
...
...
@@ -38,7 +38,7 @@ function c101007046.desop1(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c101007046
.
cfilter
(
c
,
g
)
return
g
:
IsContains
(
c
)
and
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
return
g
:
IsContains
(
c
)
end
function
c101007046
.
descost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lg
=
e
:
GetHandler
():
GetLinkedGroup
()
...
...
script/c101007068.lua
View file @
33dd8e02
...
...
@@ -8,10 +8,14 @@ function c101007068.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
c101007068
.
condition
)
e1
:
SetTarget
(
c101007068
.
target
)
e1
:
SetOperation
(
c101007068
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c101007068
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
end
function
c101007068
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetBaseAttack
()
>
0
end
...
...
script/c101007070.lua
View file @
33dd8e02
...
...
@@ -12,7 +12,7 @@ function c101007070.initial_effect(c)
--counter
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_S
PS
UMMON_SUCCESS
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetOperation
(
c101007070
.
ctop
)
c
:
RegisterEffect
(
e2
)
...
...
script/c101007100.lua
View file @
33dd8e02
--
--card name cant be recognized
--封狼雷坊
--Script by mercury233
function
c101007100
.
initial_effect
(
c
)
--Negate
...
...
@@ -9,6 +8,7 @@ function c101007100.initial_effect(c)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
101007100
)
e1
:
SetCondition
(
c101007100
.
condition
)
e1
:
SetCost
(
c101007100
.
cost
)
e1
:
SetTarget
(
c101007100
.
target
)
...
...
@@ -20,6 +20,7 @@ function c101007100.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCountLimit
(
1
,
101007200
)
e2
:
SetCondition
(
c101007100
.
spcon
)
e2
:
SetTarget
(
c101007100
.
sptg
)
e2
:
SetOperation
(
c101007100
.
spop
)
...
...
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