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
5f78dee7
Commit
5f78dee7
authored
May 01, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1295 from DailyShana/patch-4
errata
parents
4a3616ef
e6a7c63c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
29 deletions
+3
-29
script/c65458948.lua
script/c65458948.lua
+3
-29
No files found.
script/c65458948.lua
View file @
5f78dee7
--トゥーン・マーメイド
--トゥーン・マーメイド
function
c65458948
.
initial_effect
(
c
)
function
c65458948
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--cannot special summon
--special summon rule
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c65458948
.
splimit
)
c
:
RegisterEffect
(
e1
)
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCondition
(
c65458948
.
spcon
)
e2
:
SetCondition
(
c65458948
.
spcon
)
e2
:
SetOperation
(
c65458948
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--destroy
--destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -56,32 +48,14 @@ function c65458948.initial_effect(c)
...
@@ -56,32 +48,14 @@ function c65458948.initial_effect(c)
e8
:
SetOperation
(
c65458948
.
atop
)
e8
:
SetOperation
(
c65458948
.
atop
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
end
end
function
c65458948
.
splimit
(
e
,
se
,
sp
,
st
,
spos
,
tgp
)
return
Duel
.
IsExistingMatchingCard
(
c65458948
.
cfilter
,
tgp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
c65458948
.
cfilter
(
c
)
function
c65458948
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
15259703
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
15259703
)
end
end
function
c65458948
.
spcon
(
e
,
c
)
function
c65458948
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
if
not
Duel
.
IsExistingMatchingCard
(
c65458948
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
return
false
end
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
lv
=
c
:
GetLevel
()
and
Duel
.
IsExistingMatchingCard
(
c65458948
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
if
lv
<
5
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
elseif
lv
<
7
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
1
,
nil
)
else
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
2
and
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
2
,
nil
)
end
end
function
c65458948
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
lv
=
c
:
GetLevel
()
local
tp
=
c
:
GetControler
()
if
lv
<
5
then
elseif
lv
<
7
then
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
nil
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
else
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
nil
,
2
,
2
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
end
function
c65458948
.
sfilter
(
c
)
function
c65458948
.
sfilter
(
c
)
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
GetPreviousCodeOnField
()
==
15259703
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
GetPreviousCodeOnField
()
==
15259703
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
...
...
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