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
5f498f8f
Commit
5f498f8f
authored
Oct 27, 2015
by
Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c4333086.lua
按照神鸟攻击的写法进行了修复
parent
2a47b8c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
11 deletions
+41
-11
c4333086.lua
c4333086.lua
+41
-11
No files found.
c4333086.lua
View file @
5f498f8f
...
...
@@ -13,24 +13,54 @@ function c4333086.initial_effect(c)
e1
:
SetOperation
(
c4333086
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c4333086
.
rfilter
(
c
)
return
c
:
IsRace
(
RACE_ZOMBIE
)
and
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
c
)
end
function
c4333086
.
filter
(
c
)
return
c
:
IsSetCard
(
0xd9
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
end
function
c4333086
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c4333086
.
rfilter
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c4333086
.
rfilter
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
e
:
SetLabel
(
1
)
return
true
end
function
c4333086
.
costfilter
(
c
,
e
,
dg
)
if
not
c
:
IsRace
(
RACE_ZOMBIE
)
then
return
false
end
local
a
=
0
if
dg
:
IsContains
(
c
)
then
a
=
1
end
if
c
:
GetEquipCount
()
==
0
then
return
dg
:
GetCount
()
-
a
>=
2
end
local
eg
=
c
:
GetEquipGroup
()
local
tc
=
eg
:
GetFirst
()
while
tc
do
if
dg
:
IsContains
(
tc
)
then
a
=
a
+
1
end
tc
=
eg
:
GetNext
()
end
return
dg
:
GetCount
()
-
a
>=
2
end
function
c4333086
.
tgfilter
(
c
,
e
)
return
c
:
IsDestructable
()
and
c
:
IsCanBeEffectTarget
(
e
)
end
function
c4333086
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsDestructable
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c4333086
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsDestructable
()
end
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
)
local
dg
=
Duel
.
GetMatchingGroup
(
c4333086
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
(),
e
)
local
res
=
rg
:
IsExists
(
c4333086
.
costfilter
,
1
,
e
:
GetHandler
(),
e
,
dg
)
return
res
and
Duel
.
IsExistingMatchingCard
(
c4333086
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
else
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
e
:
GetHandler
())
and
Duel
.
IsExistingMatchingCard
(
c4333086
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
)
local
dg
=
Duel
.
GetMatchingGroup
(
c4333086
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
(),
e
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
rg
:
FilterSelect
(
tp
,
c4333086
.
costfilter
,
1
,
1
,
e
:
GetHandler
(),
e
,
dg
)
Duel
.
Release
(
sg
,
REASON_COST
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
2
,
e
:
GetHandler
()
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
()
,
0
,
0
)
end
function
c4333086
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
...
...
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