Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
Vee4
ygopro-scripts-888
Commits
2a93f33d
Commit
2a93f33d
authored
Sep 08, 2021
by
salix5
Committed by
GitHub
Sep 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix サンダー・ディスチャージ, リザレクション・ブレス (#1702)
parent
7ac481da
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
18 deletions
+24
-18
c27623932.lua
c27623932.lua
+13
-8
c64018647.lua
c64018647.lua
+11
-10
No files found.
c27623932.lua
View file @
2a93f33d
...
@@ -39,22 +39,27 @@ function c27623932.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -39,22 +39,27 @@ function c27623932.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
dg
=
Duel
.
GetMatchingGroup
(
c27623932
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
g
:
GetFirst
():
GetAttack
())
local
dg
=
Duel
.
GetMatchingGroup
(
c27623932
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
g
:
GetFirst
():
GetAttack
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
dg
,
dg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
dg
,
dg
:
GetCount
(),
0
,
0
)
end
end
function
c27623932
.
efilter
(
c
,
tp
)
function
c27623932
.
CanEquipFilter
(
c
,
eqc
)
return
c
:
IsType
(
TYPE_EQUIP
)
and
aux
.
IsCodeListed
(
c
,
3285552
)
and
c
:
CheckUniqueOnField
(
tp
)
and
not
c
:
IsForbidden
()
return
c
:
IsFaceup
()
and
eqc
:
CheckEquipTarget
(
c
)
end
function
c27623932
.
eqfilter
(
c
,
tp
)
return
aux
.
IsCodeListed
(
c
,
3285552
)
and
c
:
IsType
(
TYPE_EQUIP
)
and
c
:
CheckUniqueOnField
(
tp
)
and
not
c
:
IsForbidden
()
and
Duel
.
IsExistingMatchingCard
(
c27623932
.
CanEquipFilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
c
)
end
end
function
c27623932
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c27623932
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
dg
=
Duel
.
GetMatchingGroup
(
c27623932
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
tc
:
GetAttack
())
local
dg
=
Duel
.
GetMatchingGroup
(
c27623932
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
tc
:
GetAttack
())
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c27623932
.
efilter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c27623932
.
e
q
filter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
27623932
,
0
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
27623932
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
27623932
,
1
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
eg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c27623932
.
efilter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
)
local
eqg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c27623932
.
eqfilter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
27623932
,
2
))
local
eqc
=
eqg
:
GetFirst
()
local
mg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Equip
(
tp
,
eg
:
GetFirst
(),
mg
:
GetFirst
())
local
mg
=
Duel
.
SelectMatchingCard
(
tp
,
c27623932
.
CanEquipFilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
eqc
)
Duel
.
Equip
(
tp
,
eqc
,
mg
:
GetFirst
())
end
end
end
end
end
end
c64018647.lua
View file @
2a93f33d
...
@@ -22,11 +22,12 @@ function c64018647.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -22,11 +22,12 @@ function c64018647.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanBeSpecialSummoned
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanBeSpecialSummoned
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
0
,
tp
,
false
,
false
)
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
function
c64018647
.
filter
(
c
,
tp
)
function
c64018647
.
CanEquipFilter
(
c
,
eqc
)
return
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c64018647
.
eqfilter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
,
c
)
return
c
:
IsFaceup
()
and
eqc
:
CheckEquipTarget
(
c
)
end
end
function
c64018647
.
eqfilter
(
c
,
tp
,
tc
)
function
c64018647
.
eqfilter
(
c
,
tp
)
return
c
:
CheckUniqueOnField
(
tp
)
and
not
c
:
IsForbidden
()
and
c
:
CheckEquipTarget
(
tc
)
and
aux
.
IsCodeListed
(
c
,
3285552
)
return
aux
.
IsCodeListed
(
c
,
3285552
)
and
c
:
IsType
(
TYPE_EQUIP
)
and
c
:
CheckUniqueOnField
(
tp
)
and
not
c
:
IsForbidden
()
and
Duel
.
IsExistingMatchingCard
(
c64018647
.
CanEquipFilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
c
)
end
end
function
c64018647
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c64018647
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -49,13 +50,13 @@ function c64018647.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,13 +50,13 @@ function c64018647.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
local
g2
=
Duel
.
GetMatchingGroup
(
c64018647
.
filter
,
tp
,
LOCATION_MZON
E
,
0
,
1
,
nil
,
tp
)
local
eqg
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c64018647
.
eqfilter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAV
E
,
0
,
1
,
nil
,
tp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
#
g2
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
64018647
,
0
))
then
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
#
eqg
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
64018647
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
sc
=
g2
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
mg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c64018647
.
eqfilter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
,
sc
)
local
eqc
=
eqg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
Equip
(
tp
,
mg
:
GetFirst
(),
sc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
mg
=
Duel
.
SelectMatchingCard
(
tp
,
c64018647
.
CanEquipFilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
eqc
)
Duel
.
Equip
(
tp
,
eqc
,
mg
:
GetFirst
())
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