Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
b29671bc
Commit
b29671bc
authored
Aug 13, 2014
by
独孤朲
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #900 from YuGiOhMoDDeR/patch-19
adjust code
parents
91c03539
91117759
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
script/c82140600.lua
script/c82140600.lua
+7
-7
No files found.
script/c82
41
0600.lua
→
script/c82
14
0600.lua
View file @
b29671bc
--Avalon
--Avalon
function
c82
41
0600
.
initial_effect
(
c
)
function
c82
14
0600
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_DESTROY
)
e1
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetTarget
(
c82
41
0600
.
target
)
e1
:
SetTarget
(
c82
14
0600
.
target
)
e1
:
SetOperation
(
c82
41
0600
.
activate
)
e1
:
SetOperation
(
c82
14
0600
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c82
41
0600
.
filter
(
c
,
e
)
function
c82
14
0600
.
filter
(
c
,
e
)
return
c
:
IsSetCard
(
0x107a
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
and
c
:
IsCanBeEffectTarget
(
e
)
return
c
:
IsSetCard
(
0x107a
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
and
c
:
IsCanBeEffectTarget
(
e
)
end
end
function
c82
41
0600
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c82
14
0600
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
local
g
=
Duel
.
GetMatchingGroup
(
c82
41
0600
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
)
local
g
=
Duel
.
GetMatchingGroup
(
c82
14
0600
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
)
if
chk
==
0
then
return
g
:
GetCount
()
>
4
if
chk
==
0
then
return
g
:
GetCount
()
>
4
and
g
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0xa7
)
and
g
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0xa8
)
and
g
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0xa7
)
and
g
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0xa8
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
...
@@ -34,7 +34,7 @@ function c82410600.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -34,7 +34,7 @@ function c82410600.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g1
,
5
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g1
,
5
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
dg
,
dg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
dg
,
dg
:
GetCount
(),
0
,
0
)
end
end
function
c82
41
0600
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c82
14
0600
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
:
GetCount
()
==
5
and
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
>
0
then
if
g
:
GetCount
()
==
5
and
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
>
0
then
...
...
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