Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
REIKAI
ygopro
Commits
d84d9890
Commit
d84d9890
authored
Jul 26, 2013
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #585 from VanillaSalt/patch74
fix
parents
ee1b23bb
58d0711d
Changes
30
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
66 additions
and
45 deletions
+66
-45
script/c10060427.lua
script/c10060427.lua
+3
-0
script/c15545291.lua
script/c15545291.lua
+3
-0
script/c15914410.lua
script/c15914410.lua
+1
-1
script/c16259549.lua
script/c16259549.lua
+1
-1
script/c18114794.lua
script/c18114794.lua
+7
-6
script/c1969506.lua
script/c1969506.lua
+1
-1
script/c22900598.lua
script/c22900598.lua
+1
-1
script/c24184846.lua
script/c24184846.lua
+1
-1
script/c28118128.lua
script/c28118128.lua
+0
-1
script/c28553439.lua
script/c28553439.lua
+5
-4
script/c32907538.lua
script/c32907538.lua
+2
-1
script/c37364101.lua
script/c37364101.lua
+1
-1
script/c38180759.lua
script/c38180759.lua
+1
-1
script/c41147577.lua
script/c41147577.lua
+1
-1
script/c41309158.lua
script/c41309158.lua
+1
-1
script/c50527144.lua
script/c50527144.lua
+2
-2
script/c51549976.lua
script/c51549976.lua
+1
-1
script/c53244294.lua
script/c53244294.lua
+1
-1
script/c55204071.lua
script/c55204071.lua
+3
-2
script/c63630268.lua
script/c63630268.lua
+1
-1
script/c74852810.lua
script/c74852810.lua
+1
-1
script/c75367227.lua
script/c75367227.lua
+6
-1
script/c76419637.lua
script/c76419637.lua
+2
-2
script/c76589815.lua
script/c76589815.lua
+4
-3
script/c81587028.lua
script/c81587028.lua
+1
-0
script/c85709845.lua
script/c85709845.lua
+3
-3
script/c88728507.lua
script/c88728507.lua
+1
-1
script/c89516305.lua
script/c89516305.lua
+2
-2
script/c92609670.lua
script/c92609670.lua
+5
-1
script/c99004752.lua
script/c99004752.lua
+4
-3
No files found.
script/c10060427.lua
View file @
d84d9890
...
@@ -19,6 +19,9 @@ function c10060427.initial_effect(c)
...
@@ -19,6 +19,9 @@ function c10060427.initial_effect(c)
e2
:
SetOperation
(
c10060427
.
otop
)
e2
:
SetOperation
(
c10060427
.
otop
)
e2
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
e2
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_SET_PROC
)
c
:
RegisterEffect
(
e3
)
--summon success
--summon success
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
10060427
,
4
))
e3
:
SetDescription
(
aux
.
Stringid
(
10060427
,
4
))
...
...
script/c15545291.lua
View file @
d84d9890
...
@@ -10,6 +10,9 @@ function c15545291.initial_effect(c)
...
@@ -10,6 +10,9 @@ function c15545291.initial_effect(c)
e1
:
SetOperation
(
c15545291
.
otop
)
e1
:
SetOperation
(
c15545291
.
otop
)
e1
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
e1
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_PROC
)
c
:
RegisterEffect
(
e2
)
--destroy
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
15545291
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
15545291
,
1
))
...
...
script/c15914410.lua
View file @
d84d9890
...
@@ -23,7 +23,7 @@ end
...
@@ -23,7 +23,7 @@ end
function
c15914410
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c15914410
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsPosition
(
POS_FACEUP_ATTACK
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsPosition
(
POS_FACEUP_ATTACK
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsPosition
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
POS_FACEUP_ATTACK
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsPosition
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
POS_FACEUP_ATTACK
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
ATTACK
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsPosition
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
POS_FACEUP_ATTACK
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsPosition
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
POS_FACEUP_ATTACK
)
end
end
function
c15914410
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c15914410
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c16259549.lua
View file @
d84d9890
...
@@ -72,7 +72,7 @@ function c16259549.filter(c,e)
...
@@ -72,7 +72,7 @@ function c16259549.filter(c,e)
return
c
:
GetLevel
()
==
3
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsAbleToDeck
()
return
c
:
GetLevel
()
==
3
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsAbleToDeck
()
end
end
function
c16259549
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c16259549
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c16259549
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c16259549
.
filter
(
chkc
,
e
)
end
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetMatchingGroup
(
c16259549
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
)
local
g
=
Duel
.
GetMatchingGroup
(
c16259549
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
)
if
g
:
GetCount
()
>=
2
then
if
g
:
GetCount
()
>=
2
then
...
...
script/c18114794.lua
View file @
d84d9890
...
@@ -42,15 +42,16 @@ function c18114794.checkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,15 +42,16 @@ function c18114794.checkop(e,tp,eg,ep,ev,re,r,rp)
c18114794
[
2
]
=
Duel
.
GetTurnCount
()
c18114794
[
2
]
=
Duel
.
GetTurnCount
()
end
end
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
local
sp
=
tc
:
GetSummonPlayer
()
local
p1
=
false
local
addtime
=
0
while
tc
do
while
tc
do
if
sp
==
turnp
then
addtime
=
1
end
if
tc
:
GetSummonPlayer
()
==
turnp
then
p1
=
true
end
tc
=
eg
:
GetNext
()
tc
=
eg
:
GetNext
()
end
end
c18114794
[
sp
]
=
c18114794
[
sp
]
+
addtime
if
p1
then
if
c18114794
[
sp
]
==
3
and
sp
==
turnp
then
c18114794
[
turnp
]
=
c18114794
[
turnp
]
+
1
Duel
.
RaiseEvent
(
e
:
GetHandler
(),
18114794
,
e
,
0
,
0
,
0
,
0
)
if
c18114794
[
turnp
]
==
3
then
Duel
.
RaiseEvent
(
e
:
GetHandler
(),
18114794
,
e
,
0
,
0
,
0
,
0
)
end
end
end
end
end
function
c18114794
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c18114794
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c1969506.lua
View file @
d84d9890
...
@@ -43,7 +43,7 @@ function c1969506.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,7 +43,7 @@ function c1969506.spop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
sg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
sg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
sg
:
GetCount
()
==
0
then
return
end
if
sg
:
GetCount
()
==
0
then
return
end
if
ft
>=
g
:
GetCount
()
then
if
ft
>=
s
g
:
GetCount
()
then
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
script/c22900598.lua
View file @
d84d9890
...
@@ -32,7 +32,7 @@ function c22900598.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,7 +32,7 @@ function c22900598.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c22900598
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
tp
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c22900598
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
tp
)
if
tc
then
if
tc
then
if
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_SZONE
,
5
)
~=
nil
if
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_SZONE
,
5
)
~=
nil
and
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_SZONE
,
5
):
Is
Faceup
(
)
then
and
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_SZONE
,
5
):
Is
Status
(
STATUS_ACTIVATED
)
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
Duel
.
Destroy
(
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_SZONE
,
5
),
REASON_RULE
)
Duel
.
Destroy
(
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_SZONE
,
5
),
REASON_RULE
)
else
else
...
...
script/c24184846.lua
View file @
d84d9890
...
@@ -14,7 +14,7 @@ function c24184846.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c24184846.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c24184846
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c24184846
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
AsCost
()
end
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
end
function
c24184846
.
filter
(
c
)
function
c24184846
.
filter
(
c
)
...
...
script/c28118128.lua
View file @
d84d9890
...
@@ -23,6 +23,5 @@ function c28118128.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -23,6 +23,5 @@ function c28118128.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c28118128
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c28118128
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
script/c28553439.lua
View file @
d84d9890
...
@@ -22,14 +22,15 @@ function c28553439.filter(c,e,tp)
...
@@ -22,14 +22,15 @@ function c28553439.filter(c,e,tp)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c28553439
.
rfilter
(
c
,
e
)
function
c28553439
.
rfilter
(
c
,
e
)
return
c
:
IsReleasableByEffect
()
return
c
:
IsReleasableByEffect
()
and
c
:
IsCanBeEffectTarget
(
e
)
end
end
function
c28553439
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c28553439
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c28553439
.
rfilter
(
chkc
,
e
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c28553439
.
rfilter
(
chkc
,
e
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c28553439
.
rfilter
,
1
,
nil
,
e
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c28553439
.
rfilter
,
1
,
nil
,
e
)
and
Duel
.
IsExistingMatchingCard
(
c28553439
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c28553439
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c28553439
.
rfilter
,
1
,
1
,
nil
,
e
)
Duel
.
Se
lectTarget
(
tp
,
c28553439
.
rfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
Se
tTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c28553439
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c28553439
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c32907538.lua
View file @
d84d9890
...
@@ -43,8 +43,9 @@ function c32907538.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,8 +43,9 @@ function c32907538.operation(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e2
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e2
:
SetValue
(
1
)
tc
:
RegisterEffect
(
e2
,
true
)
tc
:
RegisterEffect
(
e2
,
true
)
local
e3
=
e
1
:
Clone
()
local
e3
=
e
2
:
Clone
()
e3
:
SetCode
(
EFFECT_UNRELEASABLE_NONSUM
)
e3
:
SetCode
(
EFFECT_UNRELEASABLE_NONSUM
)
tc
:
RegisterEffect
(
e3
,
true
)
tc
:
RegisterEffect
(
e3
,
true
)
end
end
...
...
script/c37364101.lua
View file @
d84d9890
...
@@ -75,7 +75,7 @@ function c37364101.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,7 +75,7 @@ function c37364101.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c37364101
.
atkval
(
e
,
c
)
function
c37364101
.
atkval
(
e
,
c
)
return
Duel
.
GetOverlayCount
(
e
:
GetHandlerPlayer
(),
1
,
1
)
*
600
return
Duel
.
GetOverlayCount
(
e
:
GetHandlerPlayer
(),
1
,
0
)
*
600
end
end
function
c37364101
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c37364101
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
GetFirst
()
==
e
:
GetHandler
():
GetEquipTarget
()
and
ep
~=
tp
and
eg
:
GetFirst
():
GetBattleTarget
()
~=
nil
return
eg
:
GetFirst
()
==
e
:
GetHandler
():
GetEquipTarget
()
and
ep
~=
tp
and
eg
:
GetFirst
():
GetBattleTarget
()
~=
nil
...
...
script/c38180759.lua
View file @
d84d9890
...
@@ -19,7 +19,7 @@ function c38180759.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c38180759.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c38180759
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c38180759
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
end
end
function
c38180759
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c38180759
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
...
...
script/c41147577.lua
View file @
d84d9890
...
@@ -39,7 +39,7 @@ end
...
@@ -39,7 +39,7 @@ end
function
c41147577
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c41147577
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TARGET
)
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
end
function
c41147577
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41147577
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c41309158.lua
View file @
d84d9890
...
@@ -31,7 +31,7 @@ end
...
@@ -31,7 +31,7 @@ end
function
c41309158
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c41309158
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsDefencePos
()
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsDefencePos
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsDefencePos
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsDefencePos
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
DEFENCE
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsDefencePos
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsDefencePos
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
end
function
c41309158
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41309158
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c50527144.lua
View file @
d84d9890
...
@@ -23,7 +23,7 @@ function c50527144.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -23,7 +23,7 @@ function c50527144.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetTargetRange
(
LOCATION_
MZONE
,
0
)
e1
:
SetTargetRange
(
LOCATION_
ONFIELD
,
0
)
e1
:
SetTarget
(
c50527144
.
tgfilter
)
e1
:
SetTarget
(
c50527144
.
tgfilter
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
...
@@ -33,5 +33,5 @@ function c50527144.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,5 +33,5 @@ function c50527144.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c50527144
.
tgfilter
(
e
,
c
)
function
c50527144
.
tgfilter
(
e
,
c
)
return
c
:
IsFacedown
()
or
c
:
IsSetCard
(
0x8d
)
return
(
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x8d
))
or
(
c
:
IsFacedown
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
)
end
end
script/c51549976.lua
View file @
d84d9890
...
@@ -26,7 +26,7 @@ function c51549976.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -26,7 +26,7 @@ function c51549976.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c51549976
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c51549976
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
==
0
then
return
end
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
script/c53244294.lua
View file @
d84d9890
...
@@ -24,7 +24,7 @@ function c53244294.initial_effect(c)
...
@@ -24,7 +24,7 @@ function c53244294.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c53244294
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c53244294
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocati
no
(
LOCATION_GRAV
E
)
and
chkc
:
IsFaceup
()
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocati
on
(
LOCATION_MZON
E
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
...
...
script/c55204071.lua
View file @
d84d9890
...
@@ -33,8 +33,9 @@ function c55204071.cfilter(c)
...
@@ -33,8 +33,9 @@ function c55204071.cfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
end
end
function
c55204071
.
spcon
(
e
,
c
)
function
c55204071
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
Duel
.
GetFlagEffect
(
c
:
GetControler
(),
55204071
)
==
0
end
if
c
==
nil
then
return
true
end
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>-
1
return
Duel
.
GetFlagEffect
(
c
:
GetControler
(),
55204071
)
==
0
and
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>-
1
and
Duel
.
CheckReleaseGroup
(
c
:
GetControler
(),
c55204071
.
cfilter
,
1
,
nil
)
and
Duel
.
CheckReleaseGroup
(
c
:
GetControler
(),
c55204071
.
cfilter
,
1
,
nil
)
end
end
function
c55204071
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c55204071
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
...
...
script/c63630268.lua
View file @
d84d9890
...
@@ -4,7 +4,7 @@ function c63630268.initial_effect(c)
...
@@ -4,7 +4,7 @@ function c63630268.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_POSITION
)
e1
:
SetCategory
(
CATEGORY_POSITION
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_ARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_
C
ARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c63630268
.
target
)
e1
:
SetTarget
(
c63630268
.
target
)
e1
:
SetOperation
(
c63630268
.
operation
)
e1
:
SetOperation
(
c63630268
.
operation
)
...
...
script/c74852810.lua
View file @
d84d9890
...
@@ -3,7 +3,7 @@ function c74852810.initial_effect(c)
...
@@ -3,7 +3,7 @@ function c74852810.initial_effect(c)
--
--
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_ARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_
C
ARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c74852810
.
target
)
e1
:
SetTarget
(
c74852810
.
target
)
e1
:
SetOperation
(
c74852810
.
operation
)
e1
:
SetOperation
(
c74852810
.
operation
)
...
...
script/c75367227.lua
View file @
d84d9890
...
@@ -31,6 +31,7 @@ function c75367227.initial_effect(c)
...
@@ -31,6 +31,7 @@ function c75367227.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetCondition
(
c75367227
.
thcon
)
e3
:
SetTarget
(
c75367227
.
thtg
)
e3
:
SetTarget
(
c75367227
.
thtg
)
e3
:
SetOperation
(
c75367227
.
thop
)
e3
:
SetOperation
(
c75367227
.
thop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
@@ -55,10 +56,13 @@ function c75367227.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -55,10 +56,13 @@ function c75367227.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c75367227
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75367227
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFacedown
()
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
end
end
function
c75367227
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsReason
(
REASON_RETURN
)
end
function
c75367227
.
filter
(
c
)
function
c75367227
.
filter
(
c
)
return
c
:
IsSetCard
(
0x8d
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x8d
)
and
c
:
IsAbleToHand
()
end
end
...
@@ -73,5 +77,6 @@ function c75367227.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,5 +77,6 @@ function c75367227.thop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
end
end
script/c76419637.lua
View file @
d84d9890
...
@@ -51,12 +51,12 @@ function c76419637.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -51,12 +51,12 @@ function c76419637.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c76419637
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c76419637
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_ONFIELD
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
ct
*
300
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
ct
*
300
)
end
end
function
c76419637
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c76419637
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
local
ct
=
Duel
.
GetFieldGroupCount
(
p
,
LOCATION_ONFIELD
,
0
)
local
ct
=
Duel
.
GetFieldGroupCount
(
p
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
Duel
.
Damage
(
p
,
ct
*
300
,
REASON_EFFECT
)
Duel
.
Damage
(
p
,
ct
*
300
,
REASON_EFFECT
)
end
end
script/c76589815.lua
View file @
d84d9890
...
@@ -64,9 +64,9 @@ function c76589815.cffilter(c)
...
@@ -64,9 +64,9 @@ function c76589815.cffilter(c)
end
end
function
c76589815
.
cfop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c76589815
.
cfop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
ConfirmCards
(
tp
,
g
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
then
local
sg
=
g
:
Filter
(
c76589815
.
cffilter
,
nil
)
local
sg
=
g
:
Filter
(
c76589815
.
cffilter
,
nil
)
if
sg
:
GetCount
()
>
0
then
if
sg
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
...
@@ -75,4 +75,5 @@ function c76589815.cfop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,4 +75,5 @@ function c76589815.cfop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
setg
)
Duel
.
ConfirmCards
(
1
-
tp
,
setg
)
end
end
end
end
Duel
.
ShuffleHand
(
1
-
tp
)
end
end
script/c81587028.lua
View file @
d84d9890
...
@@ -56,6 +56,7 @@ function c81587028.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,6 +56,7 @@ function c81587028.spop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc1
:
RegisterEffect
(
e1
)
tc1
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
tc2
:
RegisterEffect
(
e2
)
tc2
:
RegisterEffect
(
e2
)
...
...
script/c85709845.lua
View file @
d84d9890
...
@@ -31,12 +31,12 @@ function c85709845.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,12 +31,12 @@ function c85709845.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c85709845
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c85709845
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
local
tc
=
Duel
.
GetAttacker
()
return
tc
==
Duel
.
GetAttacker
(
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
return
eg
:
IsContains
(
tc
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
end
end
function
c85709845
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c85709845
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
atk
=
eg
:
GetFirst
():
GetBaseAttack
()
local
atk
=
Duel
.
GetAttacker
():
GetBaseAttack
()
if
atk
<
0
then
atk
=
0
end
if
atk
<
0
then
atk
=
0
end
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
atk
)
Duel
.
SetTargetParam
(
atk
)
...
...
script/c88728507.lua
View file @
d84d9890
...
@@ -5,7 +5,7 @@ function c88728507.initial_effect(c)
...
@@ -5,7 +5,7 @@ function c88728507.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
88728507
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
88728507
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCondition
(
c88728507
.
condition
)
e1
:
SetCondition
(
c88728507
.
condition
)
e1
:
SetTarget
(
c88728507
.
target
)
e1
:
SetTarget
(
c88728507
.
target
)
...
...
script/c89516305.lua
View file @
d84d9890
...
@@ -43,7 +43,7 @@ function c89516305.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -43,7 +43,7 @@ function c89516305.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
GetHandler
():
RegisterFlagEffect
(
89516305
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
89516305
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c89516305
.
sttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c89516305
.
sttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_SZONE
)
and
chkc
:
IsFacedown
()
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_SZONE
)
and
chkc
:
IsFacedown
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_SZONE
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_SZONE
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEDOWN
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEDOWN
)
...
@@ -76,7 +76,7 @@ function c89516305.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -76,7 +76,7 @@ function c89516305.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c89516305
.
setfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c89516305
.
setfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c89516305
.
setfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c89516305
.
setfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
CHANGE_
POSITION
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
end
end
function
c89516305
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c89516305
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
...
...
script/c92609670.lua
View file @
d84d9890
...
@@ -7,6 +7,7 @@ function c92609670.initial_effect(c)
...
@@ -7,6 +7,7 @@ function c92609670.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c92609670
.
spcon
)
e1
:
SetCost
(
c92609670
.
spcost
)
e1
:
SetCost
(
c92609670
.
spcost
)
e1
:
SetTarget
(
c92609670
.
sptg
)
e1
:
SetTarget
(
c92609670
.
sptg
)
e1
:
SetOperation
(
c92609670
.
spop
)
e1
:
SetOperation
(
c92609670
.
spop
)
...
@@ -21,6 +22,9 @@ function c92609670.initial_effect(c)
...
@@ -21,6 +22,9 @@ function c92609670.initial_effect(c)
e2
:
SetOperation
(
c92609670
.
lvop
)
e2
:
SetOperation
(
c92609670
.
lvop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c92609670
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
c92609670
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c92609670
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
92609670
)
==
0
and
e
:
GetHandler
():
IsReleasable
()
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
92609670
)
==
0
and
e
:
GetHandler
():
IsReleasable
()
end
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
...
@@ -30,7 +34,7 @@ function c92609670.filter(c,e,tp)
...
@@ -30,7 +34,7 @@ function c92609670.filter(c,e,tp)
return
c
:
GetCode
()
~=
92609670
and
c
:
IsSetCard
(
0x106f
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
c
:
GetCode
()
~=
92609670
and
c
:
IsSetCard
(
0x106f
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
end
end
function
c92609670
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c92609670
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
-
1
and
Duel
.
IsExistingMatchingCard
(
c92609670
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c92609670
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
end
end
...
...
script/c99004752.lua
View file @
d84d9890
...
@@ -46,12 +46,13 @@ function c99004752.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,12 +46,13 @@ function c99004752.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c99004752
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c99004752
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
local
tc
=
e
:
GetLabelObject
()
return
tc
==
e
:
GetLabelObject
()
and
tc
:
GetFlagEffect
(
99004752
)
~=
0
and
tc
:
GetOwner
()
==
1
-
tp
return
eg
:
IsContains
(
tc
)
and
tc
:
GetFlagEffect
(
99004752
)
~=
0
and
tc
:
GetOwner
()
==
1
-
tp
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
end
end
function
c99004752
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c99004752
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
atk
=
e
g
:
GetFirs
t
():
GetBaseAttack
()
local
atk
=
e
:
GetLabelObjec
t
():
GetBaseAttack
()
if
atk
<
0
then
atk
=
0
end
if
atk
<
0
then
atk
=
0
end
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
atk
)
Duel
.
SetTargetParam
(
atk
)
...
...
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