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
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-scripts
Commits
e55fde3f
Commit
e55fde3f
authored
Jan 04, 2021
by
mercury233
Committed by
GitHub
Jan 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 妖神-不知火
parent
0a135f06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
c52711246.lua
c52711246.lua
+15
-11
No files found.
c52711246.lua
View file @
e55fde3f
...
...
@@ -27,12 +27,16 @@ function c52711246.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c52711246
.
filter
),
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
then
local
b1
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
b2
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
local
b3
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
tc
:
IsRace
(
RACE_ZOMBIE
)
and
#
b1
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
52711246
,
1
))
then
local
t1
=
b1
:
GetFirst
()
if
not
tc
then
return
end
local
b1
=
tc
:
IsRace
(
RACE_ZOMBIE
)
local
b2
=
tc
:
IsAttribute
(
ATTRIBUTE_FIRE
)
local
b3
=
tc
:
IsType
(
TYPE_SYNCHRO
)
if
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
then
local
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
local
g3
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
b1
and
#
g1
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
52711246
,
1
))
then
local
t1
=
g1
:
GetFirst
()
while
t1
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -41,20 +45,20 @@ function c52711246.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
300
)
t1
:
RegisterEffect
(
e1
)
t1
=
b
1
:
GetNext
()
t1
=
g
1
:
GetNext
()
end
end
if
tc
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
#
b
2
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
52711246
,
2
))
then
if
b2
and
#
g
2
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
52711246
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
t2
=
b
2
:
Select
(
tp
,
1
,
1
,
nil
)
local
t2
=
g
2
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
t2
)
Duel
.
Destroy
(
t2
,
REASON_EFFECT
)
end
if
tc
:
IsType
(
TYPE_SYNCHRO
)
and
#
b
3
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
52711246
,
3
))
then
if
b3
and
#
g
3
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
52711246
,
3
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
t3
=
b
3
:
Select
(
tp
,
1
,
1
,
nil
)
local
t3
=
g
3
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
t3
)
Duel
.
Destroy
(
t3
,
REASON_EFFECT
)
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