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
d241796a
Commit
d241796a
authored
Apr 21, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
01a4ef22
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
97 additions
and
70 deletions
+97
-70
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100425023.lua
script/c100425023.lua
+4
-4
script/c100425036.lua
script/c100425036.lua
+18
-12
script/c100425037.lua
script/c100425037.lua
+13
-12
script/c101105018.lua
script/c101105018.lua
+1
-1
script/c101105044.lua
script/c101105044.lua
+18
-12
script/c101105048.lua
script/c101105048.lua
+33
-23
script/c101105076.lua
script/c101105076.lua
+1
-1
script/c101105080.lua
script/c101105080.lua
+9
-5
No files found.
expansions/pre-release.cdb
View file @
d241796a
No preview for this file type
script/c100425023.lua
View file @
d241796a
...
...
@@ -72,10 +72,10 @@ function c100425023.spfilter(c,e,tp)
return
c
:
IsLevelBelow
(
9
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c100425023
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c100425023
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c
hkc
:
IsControler
(
tp
)
and
c
100425023
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
GetMZoneCount
(
tp
,
e
:
GetHandler
()
)
>
0
and
Duel
.
IsExistingTarget
(
c100425023
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
e
:
GetHandler
():
IsAbleTo
Deck
()
end
and
e
:
GetHandler
():
IsAbleTo
Extra
()
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c100425023
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
@@ -84,7 +84,7 @@ end
function
c100425023
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoDeck
(
c
,
nil
,
2
,
REASON_EFFECT
)
~=
0
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoDeck
(
c
,
nil
,
2
,
REASON_EFFECT
)
~=
0
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
script/c100425036.lua
View file @
d241796a
...
...
@@ -20,6 +20,7 @@ function c100425036.initial_effect(c)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCondition
(
c100425036
.
thcon
)
e2
:
SetCost
(
c100425036
.
thcost
)
e2
:
SetTarget
(
c100425036
.
thtg
)
e2
:
SetOperation
(
c100425036
.
thop
)
...
...
@@ -39,21 +40,26 @@ end
function
c100425036
.
atkval
(
e
,
c
)
return
c
:
GetOverlayCount
()
*
500
end
function
c100425036
.
filter1
(
c
,
e
,
tp
)
return
c
:
IsSummonPlayer
(
1
-
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsAbleToHand
()
function
c100425036
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
Card
.
IsSummonPlayer
,
1
,
nil
,
1
-
tp
)
end
function
c100425036
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
c100425036
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
eg
and
eg
:
IsExists
(
c100425036
.
filter1
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
eg
:
FilterSelect
(
tp
,
c100425036
.
filter1
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
local
g
=
eg
:
Filter
(
Card
.
IsAbleToHand
,
nil
):
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
aux
.
IsInGroup
(
chkc
,
g
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
IsInGroup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
g
)
end
local
sg
if
g
:
GetCount
()
==
1
then
sg
=
g
:
Clone
()
Duel
.
SetTargetCard
(
sg
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
sg
=
Duel
.
SelectTarget
(
tp
,
aux
.
IsInGroup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
g
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
sg
,
1
,
0
,
0
)
end
function
c100425036
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
@@ -66,12 +72,12 @@ function c100425036.recon(e,tp,eg,ep,ev,re,r,rp)
return
rp
==
1
-
tp
and
c
:
IsPreviousControler
(
tp
)
end
function
c100425036
.
filter2
(
c
)
return
c
:
IsSetCard
(
0xf7
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xf7
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToHand
()
end
function
c100425036
.
retg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c100425036
.
filter2
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c100425036
.
filter2
(
chkc
)
and
chkc
~=
e
:
GetHandler
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c100425036
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
R
TOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
A
TOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c100425036
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
...
...
script/c100425037.lua
View file @
d241796a
...
...
@@ -12,13 +12,14 @@ function c100425037.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
c100425037
.
atkval
)
c
:
RegisterEffect
(
e1
)
--
destroy
--
to deck
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
100425037
,
0
))
e2
:
SetCategory
(
CATEGORY_TODECK
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCost
(
c100425037
.
descost
)
e2
:
SetTarget
(
c100425037
.
destg
)
e2
:
SetOperation
(
c100425037
.
desop
)
...
...
@@ -27,7 +28,7 @@ function c100425037.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
100425037
,
1
))
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e3
:
SetType
(
EFFECT_TYPE_
SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_BATTLE_START
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCondition
(
c100425037
.
condition
)
...
...
@@ -59,12 +60,10 @@ function c100425037.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c100425037
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
phase
=
Duel
.
GetCurrentPhase
()
if
phase
~=
PHASE_DAMAGE
or
Duel
.
IsDamageCalculated
()
then
return
false
end
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
return
(
a
:
GetControler
()
==
tp
and
a
~=
e
:
GetHandler
()
and
a
:
IsRelateToBattle
())
or
(
d
and
d
:
GetControler
()
==
tp
and
d
~=
e
:
GetHandler
()
and
d
:
IsRelateToBattle
())
return
(
a
:
IsControler
(
tp
)
and
a
:
IsFaceup
()
and
a
~=
e
:
GetHandler
()
and
a
:
IsRelateToBattle
())
or
(
d
and
d
:
IsControler
(
tp
)
and
d
:
IsFaceup
()
and
d
~=
e
:
GetHandler
()
and
d
:
IsRelateToBattle
())
end
function
c100425037
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -79,10 +78,12 @@ function c100425037.operation(e,tp,eg,ep,ev,re,r,rp,chk)
if
Duel
.
GetTurnPlayer
()
~=
tp
then
a
=
Duel
.
GetAttackTarget
()
end
if
not
a
:
IsRelateToBattle
()
then
return
end
if
a
==
e
:
GetHandler
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
ct
*
300
)
a
:
RegisterEffect
(
e1
)
if
a
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
ct
*
300
)
a
:
RegisterEffect
(
e1
)
end
end
script/c101105018.lua
View file @
d241796a
...
...
@@ -51,7 +51,7 @@ function c101105018.spop(e,tp,eg,ep,ev,re,r,rp)
end
function
c101105018
.
tcfilter
(
c
,
tp
)
local
lv
=
c
:
GetLevel
()
return
c
:
IsFaceup
()
and
lv
>
0
and
aux
.
AtkEqualsDef
(
c
)
return
c
:
IsFaceup
()
and
lv
>
0
and
aux
.
AtkEqualsDef
(
c
)
and
c
:
IsRace
(
RACE_MACHINE
)
and
Duel
.
IsExistingMatchingCard
(
c101105018
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
lv
)
end
function
c101105018
.
tgfilter
(
c
,
lv
)
...
...
script/c101105044.lua
View file @
d241796a
...
...
@@ -11,9 +11,11 @@ function c101105044.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetHintTiming
(
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
+
TIMING_DAMAGE_STEP
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
aux
.
dscon
)
e1
:
SetTarget
(
c101105044
.
atktg
)
e1
:
SetOperation
(
c101105044
.
atkop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -37,7 +39,8 @@ function c101105044.atkfilter(c)
end
function
c101105044
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c101105044
.
atkfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c101105044
.
atkfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
@@ -52,15 +55,18 @@ function c101105044.atkop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
or
not
sc
:
IsRelateToEffect
(
e
)
then
return
end
local
ac
=
e
:
GetLabelObject
()
if
tc
==
ac
then
tc
=
sc
end
local
atk
=
tc
:
GetAttack
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
math.ceil
(
atk
/
2
))
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
ac
:
RegisterEffect
(
e1
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
Duel
.
Overlay
(
e
:
GetHandler
(),
tc
)
if
not
ac
:
IsImmuneToEffect
(
e
)
then
local
atk
=
tc
:
GetAttack
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
math.ceil
(
atk
/
2
))
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
ac
:
RegisterEffect
(
e1
)
if
not
ac
:
IsHasEffect
(
EFFECT_REVERSE_UPDATE
)
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
Duel
.
BreakEffect
()
Duel
.
Overlay
(
e
:
GetHandler
(),
tc
)
end
end
end
function
c101105044
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -77,4 +83,4 @@ function c101105044.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c101105044
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
end
\ No newline at end of file
end
script/c101105048.lua
View file @
d241796a
...
...
@@ -21,45 +21,55 @@ function c101105048.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
101105048
)
e2
:
SetCountLimit
(
1
,
101105048
+
100
)
e2
:
SetCondition
(
c101105048
.
thcon
)
e2
:
SetTarget
(
c101105048
.
thtg
)
e2
:
SetOperation
(
c101105048
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
c101105048
.
tefilter
(
c
)
return
c
:
GetOriginalType
()
&
TYPE_PENDULUM
~=
0
end
function
c101105048
.
chkfilter
(
c
,
odevity
)
return
c
:
GetCurrentScale
()
%
2
==
odevity
end
function
c101105048
.
thfilter
(
c
,
e
,
tp
,
odevity
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
GetCurrentScale
()
%
2
==
odevity
function
c101105048
.
thfilter
(
c
,
odevity
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
GetCurrentScale
()
%
2
==
1
-
odevity
and
c
:
IsAbleToHand
()
end
function
c101105048
.
chkcon
(
g
,
e
,
tp
,
odevity
)
return
g
:
IsExists
(
c101105048
.
chkfilter
,
1
,
nil
,
odevity
)
and
Duel
.
IsExistingMatchingCard
(
c101105048
.
thfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
odevity
)
function
c101105048
.
chkcon
(
g
,
tp
,
odevity
)
return
g
:
IsExists
(
c101105048
.
chkfilter
,
1
,
nil
,
odevity
)
and
Duel
.
IsExistingMatchingCard
(
c101105048
.
thfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
odevity
)
end
function
c101105048
.
tetg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c101105048
.
tefilter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
if
chk
==
0
then
return
c101105048
.
chkcon
(
g
,
e
,
tp
,
0
)
or
c101105048
.
chkcon
(
g
,
e
,
tp
,
1
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_HAND
,
0
,
nil
,
TYPE_PENDULUM
)
if
chk
==
0
then
return
c101105048
.
chkcon
(
g
,
tp
,
0
)
or
c101105048
.
chkcon
(
g
,
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOEXTRA
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c101105048
.
teop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
101105048
,
3
))
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101105048
.
tefilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoExtraP
(
g
,
tp
,
REASON_EFFECT
)
local
odevity
=
g
:
GetFirst
():
GetCurrentScale
()
%
2
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_HAND
,
0
,
nil
,
TYPE_PENDULUM
)
local
b1
=
c101105048
.
chkcon
(
g
,
tp
,
0
)
local
b2
=
c101105048
.
chkcon
(
g
,
tp
,
1
)
local
sg
=
Group
.
CreateGroup
()
if
b1
and
not
b2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
101105048
,
3
))
sg
=
g
:
FilterSelect
(
tp
,
c101105048
.
chkfilter
,
1
,
1
,
nil
,
0
)
end
if
not
b1
and
b2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
101105048
,
3
))
sg
=
g
:
FilterSelect
(
tp
,
c101105048
.
chkfilter
,
1
,
1
,
nil
,
1
)
end
if
b1
and
b2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
101105048
,
3
))
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
end
local
tc
=
sg
:
GetFirst
()
if
tc
and
Duel
.
SendtoExtraP
(
tc
,
tp
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_EXTRA
)
then
local
odevity
=
tc
:
GetCurrentScale
()
%
2
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101105048
.
thfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
odevity
)
if
g
:
GetCount
()
>
0
then
Duel
.
BreakEffect
()
Duel
.
SendtoHand
(
g
,
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c101105048
.
thfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
odevity
)
if
g2
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g2
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g2
)
end
end
end
...
...
@@ -70,10 +80,10 @@ function c101105048.tgfilter(c,tp,g)
return
g
:
IsContains
(
c
)
and
Duel
.
IsExistingMatchingCard
(
c101105048
.
adfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetCode
())
end
function
c101105048
.
adfilter
(
c
,
scale
)
return
c
:
IsSetCard
(
0x162
)
and
c
:
IsType
(
TYPE_
MONSTER
)
and
not
c
:
GetLevel
()
==
scale
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x162
)
and
c
:
IsType
(
TYPE_
PENDULUM
)
and
c
:
IsLevel
(
scale
)
and
c
:
IsAbleToHand
()
end
function
c101105048
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
eg
:
IsExists
(
c101105048
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c101105048
.
cfilter
,
1
,
nil
,
tp
)
end
function
c101105048
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
g
=
eg
:
Filter
(
c101105048
.
cfilter
,
nil
,
tp
)
...
...
script/c101105076.lua
View file @
d241796a
...
...
@@ -109,7 +109,7 @@ function c101105076.naop(e,tp,eg,ep,ev,re,r,rp)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
if
Duel
.
NegateAttack
()
~=
0
and
ec
then
Duel
.
GetControl
(
ec
,
1
-
tp
,
PHASE_BATTLE
,
1
)
Duel
.
GetControl
(
ec
,
1
-
ec
:
GetControler
()
,
PHASE_BATTLE
,
1
)
end
end
function
c101105076
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101105080.lua
View file @
d241796a
...
...
@@ -13,18 +13,22 @@ function c101105080.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c101105080
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
()
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
c101105080
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
local
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
101105080
,
0
),
aux
.
Stringid
(
101105080
,
1
))
if
opt
==
0
then
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_EFFECT
)
else
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
==
0
then
Duel
.
SendtoDeck
(
g
,
nil
,
1
,
REASON_EFFECT
)
else
local
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
101105080
,
0
),
aux
.
Stringid
(
101105080
,
1
))
if
opt
==
0
then
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_EFFECT
)
else
Duel
.
SendtoDeck
(
g
,
nil
,
1
,
REASON_EFFECT
)
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment