Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
17e6ca2c
Commit
17e6ca2c
authored
Aug 11, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a6f6e761
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
22 deletions
+40
-22
script/c57346400.lua
script/c57346400.lua
+18
-0
script/c67757079.lua
script/c67757079.lua
+22
-22
No files found.
script/c57346400.lua
0 → 100644
View file @
17e6ca2c
--ガード·ドッグ
function
c57346400
.
initial_effect
(
c
)
--flip
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
57346400
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_FLIP
)
e1
:
SetOperation
(
c57346400
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c57346400
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
script/c6
2
757079.lua
→
script/c6
7
757079.lua
View file @
17e6ca2c
--キング·オブ·ビースト
function
c6
2
757079
.
initial_effect
(
c
)
function
c6
7
757079
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
6
2
757079
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
6
7
757079
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCost
(
c6
2
757079
.
spcost
)
e1
:
SetTarget
(
c6
2
757079
.
sptg
)
e1
:
SetOperation
(
c6
2
757079
.
spop
)
e1
:
SetCost
(
c6
7
757079
.
spcost
)
e1
:
SetTarget
(
c6
7
757079
.
sptg
)
e1
:
SetOperation
(
c6
7
757079
.
spop
)
c
:
RegisterEffect
(
e1
)
--only 1 can exists
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e2
:
SetCondition
(
c6
2
757079
.
excon
)
e2
:
SetCondition
(
c6
7
757079
.
excon
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
...
...
@@ -24,23 +24,23 @@ function c62757079.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e4
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e4
:
SetValue
(
c6
2
757079
.
splimit
)
e4
:
SetValue
(
c6
7
757079
.
splimit
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_SELF_DESTROY
)
e5
:
SetCondition
(
c6
2
757079
.
descon
)
e5
:
SetCondition
(
c6
7
757079
.
descon
)
c
:
RegisterEffect
(
e5
)
end
function
c6
2
757079
.
cfilter
(
c
)
function
c6
7
757079
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetCode
()
==
94878265
end
function
c6
2
757079
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c6
2
757079
.
cfilter
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c6
2
757079
.
cfilter
,
1
,
1
,
nil
)
function
c6
7
757079
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c6
7
757079
.
cfilter
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c6
7
757079
.
cfilter
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c6
2
757079
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c6
7
757079
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
then
...
...
@@ -49,23 +49,23 @@ function c62757079.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c6
2
757079
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6
7
757079
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
e
:
GetHandler
(),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c6
2
757079
.
exfilter
(
c
,
fid
)
return
c
:
IsFaceup
()
and
c
:
GetCode
()
==
6
2
757079
and
(
fid
==
nil
or
c
:
GetFieldID
()
<
fid
)
function
c6
7
757079
.
exfilter
(
c
,
fid
)
return
c
:
IsFaceup
()
and
c
:
GetCode
()
==
6
7
757079
and
(
fid
==
nil
or
c
:
GetFieldID
()
<
fid
)
end
function
c6
2
757079
.
excon
(
e
)
function
c6
7
757079
.
excon
(
e
)
local
c
=
e
:
GetHandler
()
return
Duel
.
IsExistingMatchingCard
(
c6
2
757079
.
exfilter
,
c
:
GetControler
(),
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c6
7
757079
.
exfilter
,
c
:
GetControler
(),
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
function
c6
2
757079
.
splimit
(
e
,
se
,
sp
,
st
,
spos
,
tgp
)
function
c6
7
757079
.
splimit
(
e
,
se
,
sp
,
st
,
spos
,
tgp
)
if
bit
.
band
(
spos
,
POS_FACEDOWN
)
~=
0
then
return
true
end
return
not
Duel
.
IsExistingMatchingCard
(
c6
2
757079
.
exfilter
,
tgp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
return
not
Duel
.
IsExistingMatchingCard
(
c6
7
757079
.
exfilter
,
tgp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
function
c6
2
757079
.
descon
(
e
)
function
c6
7
757079
.
descon
(
e
)
local
c
=
e
:
GetHandler
()
return
Duel
.
IsExistingMatchingCard
(
c6
2
757079
.
exfilter
,
c
:
GetControler
(),
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
c
:
GetFieldID
())
return
Duel
.
IsExistingMatchingCard
(
c6
7
757079
.
exfilter
,
c
:
GetControler
(),
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
c
:
GetFieldID
())
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