Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
八宫一月
ygopro-scripts
Commits
eb8b36a6
Commit
eb8b36a6
authored
Apr 24, 2019
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8f759fae
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
29 additions
and
26 deletions
+29
-26
c15574615.lua
c15574615.lua
+4
-3
c16306932.lua
c16306932.lua
+2
-1
c22593417.lua
c22593417.lua
+2
-0
c38363525.lua
c38363525.lua
+1
-1
c39185163.lua
c39185163.lua
+1
-1
c40080312.lua
c40080312.lua
+3
-3
c4041838.lua
c4041838.lua
+2
-2
c41933425.lua
c41933425.lua
+1
-1
c50457953.lua
c50457953.lua
+1
-1
c56562619.lua
c56562619.lua
+2
-2
c58054262.lua
c58054262.lua
+2
-2
c63288573.lua
c63288573.lua
+1
-0
c66809920.lua
c66809920.lua
+4
-6
c79985120.lua
c79985120.lua
+1
-1
c88409165.lua
c88409165.lua
+1
-1
c91650245.lua
c91650245.lua
+1
-1
No files found.
c15574615.lua
View file @
eb8b36a6
...
@@ -64,14 +64,14 @@ function c15574615.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -64,14 +64,14 @@ function c15574615.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c15574615
.
spfilter
(
c
,
e
,
tp
)
function
c15574615
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
80208158
,
16796157
,
43791861
,
79185500
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
80208158
,
16796157
,
43791861
,
79185500
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBeEffectTarget
(
e
)
end
end
function
c15574615
.
sptarget_selector
(
c
,
tp
,
g
,
sg
,
i
)
function
c15574615
.
sptarget_selector
(
c
,
tp
,
g
,
sg
,
i
)
if
not
c
:
IsCode
(
c15574615
.
spcost_list
[
i
])
then
return
false
end
if
not
c
:
IsCode
(
c15574615
.
spcost_list
[
i
])
then
return
false
end
if
i
<
4
then
if
i
<
4
then
sg
:
AddCard
(
c
)
sg
:
AddCard
(
c
)
g
:
RemoveCard
(
c
)
g
:
RemoveCard
(
c
)
local
flag
=
g
:
IsExists
(
c
4335427
.
sptarget_selector
,
1
,
nil
,
tp
,
g
,
sg
,
i
+
1
)
local
flag
=
g
:
IsExists
(
c
15574615
.
sptarget_selector
,
1
,
nil
,
tp
,
g
,
sg
,
i
+
1
)
sg
:
RemoveCard
(
c
)
sg
:
RemoveCard
(
c
)
g
:
AddCard
(
c
)
g
:
AddCard
(
c
)
return
flag
return
flag
...
@@ -93,7 +93,8 @@ function c15574615.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -93,7 +93,8 @@ function c15574615.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
sg
:
Merge
(
g1
)
sg
:
Merge
(
g1
)
g
:
Sub
(
g1
)
g
:
Sub
(
g1
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
4
,
0
,
0
)
Duel
.
SetTargetCard
(
sg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
sg
,
4
,
0
,
0
)
end
end
function
c15574615
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c15574615
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
...
...
c16306932.lua
View file @
eb8b36a6
...
@@ -78,7 +78,8 @@ function c16306932.spfilter(c,e,tp)
...
@@ -78,7 +78,8 @@ function c16306932.spfilter(c,e,tp)
end
end
function
c16306932
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c16306932
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c16306932
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c16306932
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c16306932
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c16306932
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c16306932
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c16306932
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
c22593417.lua
View file @
eb8b36a6
...
@@ -49,6 +49,8 @@ function c22593417.hdop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,6 +49,8 @@ function c22593417.hdop(e,tp,eg,ep,ev,re,r,rp)
if
ct
>
1
then
ct2
=
Duel
.
AnnounceNumber
(
tp
,
1
,
2
)
end
if
ct
>
1
then
ct2
=
Duel
.
AnnounceNumber
(
tp
,
1
,
2
)
end
local
g
=
hg
:
RandomSelect
(
tp
,
ct2
)
local
g
=
hg
:
RandomSelect
(
tp
,
ct2
)
local
ct3
=
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_DISCARD
)
local
ct3
=
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_DISCARD
)
if
ct3
<=
0
then
return
false
end
Duel
.
BreakEffect
()
Duel
.
DiscardHand
(
1
-
tp
,
nil
,
ct3
,
ct3
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
1
-
tp
,
nil
,
ct3
,
ct3
,
REASON_EFFECT
+
REASON_DISCARD
)
end
end
function
c22593417
.
hdcon2
(
e
)
function
c22593417
.
hdcon2
(
e
)
...
...
c38363525.lua
View file @
eb8b36a6
...
@@ -62,7 +62,7 @@ function c38363525.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,7 +62,7 @@ function c38363525.setop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x47e0000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
e1
:
SetValue
(
LOCATION_REMOVED
)
e1
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
...
...
c39185163.lua
View file @
eb8b36a6
...
@@ -67,7 +67,7 @@ function c39185163.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -67,7 +67,7 @@ function c39185163.spcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c39185163
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c39185163
.
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
)
>
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
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c39185163
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c39185163
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c40080312.lua
View file @
eb8b36a6
...
@@ -142,21 +142,21 @@ function c40080312.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -142,21 +142,21 @@ function c40080312.drop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e3
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
tc
:
RegisterEffect
(
e3
)
end
end
end
end
...
...
c4041838.lua
View file @
eb8b36a6
...
@@ -12,8 +12,8 @@ function c4041838.initial_effect(c)
...
@@ -12,8 +12,8 @@ function c4041838.initial_effect(c)
end
end
function
c4041838
.
targ
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c4041838
.
targ
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
d
~=
nil
and
d
:
IsFaceup
()
and
d
:
IsDefensePos
()
and
d
:
Is
Faceup
()
and
d
:
Is
RelateToBattle
()
end
and
d
~=
nil
and
d
:
IsFaceup
()
and
d
:
IsDefensePos
()
and
d
:
IsRelateToBattle
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
end
end
function
c4041838
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c4041838
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c41933425.lua
View file @
eb8b36a6
...
@@ -56,7 +56,7 @@ end
...
@@ -56,7 +56,7 @@ end
function
c41933425
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41933425
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
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
+
EFFECT_FLAG_OATH
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
c41933425
.
splimit
)
e1
:
SetTarget
(
c41933425
.
splimit
)
...
...
c50457953.lua
View file @
eb8b36a6
--幻木
龙
--幻木
龍
function
c50457953
.
initial_effect
(
c
)
function
c50457953
.
initial_effect
(
c
)
--lvchange
--lvchange
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c56562619.lua
View file @
eb8b36a6
...
@@ -92,13 +92,13 @@ function c56562619.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -92,13 +92,13 @@ function c56562619.spcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c56562619
.
spfilter
(
c
,
e
,
tp
)
function
c56562619
.
spfilter
(
c
,
e
,
tp
)
return
c
:
GetFlagEffect
(
56562619
)
~=
0
return
c
:
GetFlagEffect
(
56562619
)
~=
0
and
(
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
1
-
tp
))
and
(
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
1
-
tp
))
end
end
function
c56562619
.
spfilter1
(
c
,
e
,
tp
)
function
c56562619
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
GetFlagEffect
(
56562619
)
~=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
GetOwner
()
==
tp
return
c
:
GetFlagEffect
(
56562619
)
~=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
GetOwner
()
==
tp
end
end
function
c56562619
.
spfilter2
(
c
,
e
,
tp
)
function
c56562619
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
GetFlagEffect
(
56562619
)
~=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
1
-
tp
)
and
c
:
GetOwner
()
==
1
-
tp
return
c
:
GetFlagEffect
(
56562619
)
~=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
1
-
tp
)
and
c
:
GetOwner
()
==
1
-
tp
end
end
function
c56562619
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c56562619
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
c58054262.lua
View file @
eb8b36a6
...
@@ -40,7 +40,7 @@ function c58054262.filter(c,code,e,tp)
...
@@ -40,7 +40,7 @@ function c58054262.filter(c,code,e,tp)
return
c
:
IsCode
(
code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c58054262
.
sptargetfilter
(
c
,
e
,
tp
)
function
c58054262
.
sptargetfilter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCode
(
60999392
,
23782705
,
96384007
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCode
(
60999392
,
23782705
,
96384007
)
and
c
:
IsCanBeEffectTarget
(
e
)
end
end
c58054262
.
sptarget_list
=
{
60999392
,
23782705
,
96384007
}
c58054262
.
sptarget_list
=
{
60999392
,
23782705
,
96384007
}
function
c58054262
.
sptarget_selector
(
c
,
tp
,
g
,
sg
,
i
)
function
c58054262
.
sptarget_selector
(
c
,
tp
,
g
,
sg
,
i
)
...
@@ -61,7 +61,7 @@ function c58054262.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -61,7 +61,7 @@ function c58054262.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
GetMatchingGroup
(
c58054262
.
sptargetfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c58054262
.
sptargetfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
local
sg
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>=
2
and
Duel
.
Get
MZoneCount
(
tp
,
e
:
GetHandler
())
>=
3
and
g
:
IsExists
(
c58054262
.
sptarget_selector
,
1
,
nil
,
tp
,
g
,
sg
,
1
)
and
g
:
IsExists
(
c58054262
.
sptarget_selector
,
1
,
nil
,
tp
,
g
,
sg
,
1
)
end
end
for
i
=
1
,
3
do
for
i
=
1
,
3
do
...
...
c63288573.lua
View file @
eb8b36a6
...
@@ -15,6 +15,7 @@ function c63288573.initial_effect(c)
...
@@ -15,6 +15,7 @@ function c63288573.initial_effect(c)
--search
--search
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
63288573
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
63288573
,
0
))
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
...
...
c66809920.lua
View file @
eb8b36a6
--
ワルキューレ・アルテスト
--
Valkyrie Erste
function
c66809920
.
initial_effect
(
c
)
function
c66809920
.
initial_effect
(
c
)
--damage
--damage
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -25,7 +25,6 @@ function c66809920.initial_effect(c)
...
@@ -25,7 +25,6 @@ function c66809920.initial_effect(c)
e2
:
SetOperation
(
c66809920
.
rmop
)
e2
:
SetOperation
(
c66809920
.
rmop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c66809920
.
listed_names
=
{
92182447
}
function
c66809920
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c66809920
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
and
re
:
GetHandler
():
IsType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_HAND
)
return
re
and
re
:
GetHandler
():
IsType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_HAND
)
end
end
...
@@ -46,7 +45,7 @@ function c66809920.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,7 +45,7 @@ function c66809920.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c66809920
.
cfilter
(
c
)
function
c66809920
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x122
)
and
not
c
:
IsCode
(
66809920
)
return
c
:
Is
Faceup
()
and
c
:
Is
SetCard
(
0x122
)
and
not
c
:
IsCode
(
66809920
)
end
end
function
c66809920
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c66809920
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c66809920
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c66809920
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
@@ -56,7 +55,7 @@ function c66809920.rmfilter(c)
...
@@ -56,7 +55,7 @@ function c66809920.rmfilter(c)
end
end
function
c66809920
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c66809920
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c66809920
.
rmfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c66809920
.
rmfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
1
-
tp
,
LOCATION_GRAVE
)
end
end
function
c66809920
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c66809920
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -66,8 +65,7 @@ function c66809920.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -66,8 +65,7 @@ function c66809920.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetValue
(
rc
:
GetBaseAttack
())
e1
:
SetValue
(
rc
:
GetBaseAttack
())
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
...
c79985120.lua
View file @
eb8b36a6
...
@@ -45,7 +45,7 @@ function c79985120.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -45,7 +45,7 @@ function c79985120.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
g
:
GetFirst
():
GetAttack
()
/
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
g
:
GetFirst
():
GetAttack
())
end
end
function
c79985120
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c79985120
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c88409165.lua
View file @
eb8b36a6
...
@@ -33,7 +33,7 @@ end
...
@@ -33,7 +33,7 @@ end
function
c88409165
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c88409165
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsType
(
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
)
if
tc
:
IsType
(
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
)
or
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
88409165
,
1
),
aux
.
Stringid
(
88409165
,
2
))
==
0
then
or
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
88409165
,
1
),
aux
.
Stringid
(
88409165
,
2
))
==
0
then
Duel
.
SendtoDeck
(
tc
,
nil
,
0
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
tc
,
nil
,
0
,
REASON_EFFECT
)
else
else
...
...
c91650245.lua
View file @
eb8b36a6
...
@@ -55,7 +55,7 @@ function c91650245.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,7 +55,7 @@ function c91650245.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c91650245
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c91650245
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsType
(
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
)
if
c
:
IsType
(
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
)
or
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
91650245
,
0
),
aux
.
Stringid
(
91650245
,
1
))
==
0
then
or
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
91650245
,
0
),
aux
.
Stringid
(
91650245
,
1
))
==
0
then
Duel
.
SendtoDeck
(
c
,
nil
,
0
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
c
,
nil
,
0
,
REASON_EFFECT
)
else
else
...
...
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